Skip to content

Commit b1db387

Browse files
enhance(syntax): 名前空間ブロックのハイライト
Fix #17
1 parent 84043ff commit b1db387

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

aiscript/syntaxes/aiscript.tmLanguage.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"AiScript"
99
],
1010
"patterns": [
11+
{
12+
"include": "#namespace"
13+
},
1114
{
1215
"include": "#syntax"
1316
},
@@ -75,6 +78,22 @@
7578
}
7679
]
7780
},
81+
"namespace": {
82+
"patterns": [
83+
{
84+
"name": "meta.namespaceblock.aiscript",
85+
"match": "^(:{2})\\s?([a-zA-Z0-9_]+)\\s?\\{",
86+
"captures": {
87+
"1": {
88+
"name": "storage.type.aiscript"
89+
},
90+
"2": {
91+
"name": "entity.name.class.aiscript"
92+
}
93+
}
94+
}
95+
]
96+
},
7897
"functions": {
7998
"patterns": [
8099
{

0 commit comments

Comments
 (0)