Skip to content

Commit

Permalink
enhance(syntax): 名前空間ブロックのハイライト
Browse files Browse the repository at this point in the history
Fix #17
  • Loading branch information
kakkokari-gtyih committed Dec 4, 2024
1 parent 84043ff commit b1db387
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions aiscript/syntaxes/aiscript.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"AiScript"
],
"patterns": [
{
"include": "#namespace"
},
{
"include": "#syntax"
},
Expand Down Expand Up @@ -75,6 +78,22 @@
}
]
},
"namespace": {
"patterns": [
{
"name": "meta.namespaceblock.aiscript",
"match": "^(:{2})\\s?([a-zA-Z0-9_]+)\\s?\\{",
"captures": {
"1": {
"name": "storage.type.aiscript"
},
"2": {
"name": "entity.name.class.aiscript"
}
}
}
]
},
"functions": {
"patterns": [
{
Expand Down

0 comments on commit b1db387

Please sign in to comment.