Skip to content

Commit 4036f0a

Browse files
committed
Added project configuration and syntax
1 parent b99458e commit 4036f0a

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

minecraft-project/configuration.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"comments": {
3+
"lineComment": "##"
4+
},
5+
"surroundingPairs": [
6+
["\"", "\""],
7+
["'", "'"]
8+
],
9+
"wordPattern": "\b.+\b",
10+
"folding": {
11+
"markers": {
12+
"start": "^\\#[ \t]*region",
13+
"end": "^\\#[ \t]*endregion"
14+
}
15+
}
16+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3+
"name": "Minecraft Project",
4+
"scopeName": "source.bc.minecraft.project",
5+
"patterns": [{ "include": "#keywords" }, { "include": "#operators" }, { "include": "#constants" }],
6+
"repository": {
7+
"keywords": {
8+
"patterns": [{ "name": "entity.name.type", "match": "^[a-z\\_\\.]+" }]
9+
},
10+
"operators": {
11+
"patterns": [
12+
{ "name": "constant.character", "match": "[|!<>=?*;\\/\\-+:&]" },
13+
{ "name": "keyword.operator", "match": "[.,(){}\\[\\]\\=]" }
14+
]
15+
},
16+
"constants": {
17+
"patterns": [
18+
{ "name": "constant.numeric", "match": "\\b-\\d+\\b" },
19+
{ "name": "constant.numeric", "match": "\\b\\d+\\b" },
20+
{ "name": "keyword.control", "match": "(?<==)!" },
21+
{ "name": "keyword.control", "match": "\\.\\." },
22+
{ "name": "constant.character", "match": "\\b[Tt]rue\\b" },
23+
{ "name": "constant.character", "match": "\\b[Ff]alse\\b" },
24+
{ "name": "string.jade", "match": "\\b(?<=function )[a-z0-9/_]+\\b" },
25+
{ "name": "string.quoted.double.minecraft", "match": "'[^']*'" }
26+
]
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)