Skip to content

Commit d79d697

Browse files
committed
Initial VS Code language extension folder source files.
1 parent 376e401 commit d79d697

File tree

5 files changed

+101
-0
lines changed

5 files changed

+101
-0
lines changed

extension/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

extension/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.vscode
2+
node_modules
3+
*.vsix

extension/.vscodeignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.vscode/**
2+
.vscode-test/**
3+
.gitignore
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"comments": {
3+
"lineComment": "#"
4+
},
5+
"brackets": [
6+
["{", "}"],
7+
["[", "]"],
8+
["(", ")"]
9+
],
10+
"autoClosingPairs": [
11+
{ "open": "{", "close": "}" },
12+
{ "open": "[", "close": "]" },
13+
{ "open": "(", "close": ")" },
14+
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
15+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] }
16+
],
17+
"surroundingPairs": [
18+
{ "open": "{", "close": "}" },
19+
{ "open": "[", "close": "]" },
20+
{ "open": "(", "close": ")" },
21+
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
22+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] }
23+
],
24+
"folding": {
25+
"markers": {
26+
"start": "^\\s*//\\s*#?region\\b",
27+
"end": "^\\s*//\\s*#?endregion\\b"
28+
}
29+
},
30+
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)",
31+
"indentationRules": {
32+
"increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$",
33+
"decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$"
34+
}
35+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3+
"name": "Zhivo",
4+
"patterns": [
5+
{ "include": "#keywords" },
6+
{ "include": "#strings" },
7+
{ "include": "#digits" },
8+
{ "include": "#comments" }
9+
],
10+
"repository": {
11+
"keywords": {
12+
"patterns": [{
13+
"name": "keyword.control.zhivo",
14+
"match": "\\b(break|continue|ret|throw|if|else|unless|when|do|while|loop|random|catch|handle|then|func|use|test|render|type|true|false|maybe|nil)\\b"
15+
}]
16+
},
17+
"digits": {
18+
"patterns": [{
19+
"name": "digit.numberic.zhivo",
20+
"match": "\\b(0b[01]+|0t[0-2]+|0c[0-7]+|0x[0-9a-fA-F]+|\\d+(\\.\\d*)?)\\b"
21+
}]
22+
},
23+
"comments": {
24+
"patterns": [{
25+
"name": "comment.line.zhivo",
26+
"begin": "#",
27+
"beginCaptures": {
28+
"0": {
29+
"name": "punctuation.definition.comment.zhivo"
30+
}
31+
},
32+
"end": "$"
33+
}]
34+
},
35+
"strings": {
36+
"name": "string.quoted.double.zhivo",
37+
"begin": "\"",
38+
"end": "\"",
39+
"beginCaptures": {
40+
"0": {
41+
"name": "punctuation.definition.string.begin.zhivo"
42+
}
43+
},
44+
"endCaptures": {
45+
"0": {
46+
"name": "punctuation.definition.string.end.zhivo"
47+
}
48+
},
49+
"patterns": [
50+
{
51+
"name": "constant.character.escape.zhivo",
52+
"match": "\\\\[btnfr\"\\\\]"
53+
}
54+
]
55+
}
56+
},
57+
"fileTypes": ["zhv"],
58+
"scopeName": "source.zhivo"
59+
}

0 commit comments

Comments
 (0)