Fixes
This commit is contained in:
@@ -6,6 +6,9 @@
|
|||||||
{
|
{
|
||||||
"include": "#comments"
|
"include": "#comments"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"include": "#keywords"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"include": "#attributes"
|
"include": "#attributes"
|
||||||
},
|
},
|
||||||
@@ -18,9 +21,6 @@
|
|||||||
{
|
{
|
||||||
"include": "#type_declarations"
|
"include": "#type_declarations"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"include": "#keywords"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"include": "#constants"
|
"include": "#constants"
|
||||||
},
|
},
|
||||||
@@ -129,12 +129,8 @@
|
|||||||
"name": "storage.modifier.mist"
|
"name": "storage.modifier.mist"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"match": "\\b(impl|use|mod|new|void)\\b",
|
"match": "\\b(impl|use|mod|new|void|self)\\b",
|
||||||
"name": "keyword.other.mist"
|
"name": "keyword.other.mist"
|
||||||
},
|
|
||||||
{
|
|
||||||
"match": "\\bself\\b",
|
|
||||||
"name": "variable.language.self.mist"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -157,6 +153,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"comment": "other types",
|
||||||
|
"match": "(?<![A-Za-z])(str|char|bool)\\b",
|
||||||
|
"captures": {
|
||||||
|
"1": {
|
||||||
|
"name": "entity.name.type.other.mist"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"comment": "parameterized types",
|
"comment": "parameterized types",
|
||||||
"begin": "\\b(_?[A-Z][A-Za-z0-9_]*)(<)",
|
"begin": "\\b(_?[A-Z][A-Za-z0-9_]*)(<)",
|
||||||
@@ -173,33 +178,7 @@
|
|||||||
"0": {
|
"0": {
|
||||||
"name": "punctuation.brackets.angle.mist"
|
"name": "punctuation.brackets.angle.mist"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"patterns": [
|
|
||||||
{
|
|
||||||
"include": "#block-comments"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"include": "#comments"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"include": "#keywords"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"include": "#variables"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"include": "#lifetimes"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"include": "#punctuation"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"include": "#types"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"include": "#variables"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"comment": "trait declarations",
|
"comment": "trait declarations",
|
||||||
|
|||||||
Reference in New Issue
Block a user