Added #include and #use

This commit is contained in:
2026-07-09 04:44:55 +02:00
parent 74a621e608
commit 657624e3ec
2 changed files with 58 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "mist-syntax",
"displayName": "Mist Syntax",
"description": "Mist Syntax Highlighting",
"version": "0.0.6",
"version": "0.0.7",
"author": {
"name": "Mist Team"
},
+57
View File
@@ -3,6 +3,9 @@
"name": "mist",
"scopeName": "source.mist",
"patterns": [
{
"include": "#include"
},
{
"include": "#comments"
},
@@ -74,6 +77,60 @@
}
],
"repository": {
"include": {
"patterns": [
{
"begin": "(#)\\s*(include)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.directive.include.mist"
},
"2": {
"name": "keyword.control.directive.include.mist"
}
},
"end": "$",
"name": "meta.preprocessor.include.mist",
"patterns": [
{
"match": "\"[^\"]*\"",
"name": "string.quoted.double.include.mist"
},
{
"match": "<[^>]*>",
"name": "string.quoted.other.lt-gt.include.mist"
}
]
},
{
"begin": "(#)\\s*(use)\\b",
"beginCaptures": {
"1": {
"name": "keyword.control.directive.include.mist"
},
"2": {
"name": "keyword.control.directive.include.mist"
}
},
"end": ";",
"endCaptures": {
"0": {
"name": "punctuation.terminator.statement.mist"
}
},
"name": "meta.preprocessor.include.mist",
"patterns": [
{
"include": "#types"
},
{
"match": "::",
"name": "punctuation.separator.namespace.mist"
}
]
}
]
},
"comments": {
"name": "comment.line.double-slash.mist",
"match": "//.*"