Added #include and #use
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "mist-syntax",
|
"name": "mist-syntax",
|
||||||
"displayName": "Mist Syntax",
|
"displayName": "Mist Syntax",
|
||||||
"description": "Mist Syntax Highlighting",
|
"description": "Mist Syntax Highlighting",
|
||||||
"version": "0.0.6",
|
"version": "0.0.7",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Mist Team"
|
"name": "Mist Team"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
"name": "mist",
|
"name": "mist",
|
||||||
"scopeName": "source.mist",
|
"scopeName": "source.mist",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "#include"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"include": "#comments"
|
"include": "#comments"
|
||||||
},
|
},
|
||||||
@@ -74,6 +77,60 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"repository": {
|
"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": {
|
"comments": {
|
||||||
"name": "comment.line.double-slash.mist",
|
"name": "comment.line.double-slash.mist",
|
||||||
"match": "//.*"
|
"match": "//.*"
|
||||||
|
|||||||
Reference in New Issue
Block a user