Fix
This commit is contained in:
@@ -17,10 +17,12 @@
|
|||||||
{ "include": "#imports" },
|
{ "include": "#imports" },
|
||||||
{ "include": "#modules" },
|
{ "include": "#modules" },
|
||||||
{ "include": "#struct_literals" },
|
{ "include": "#struct_literals" },
|
||||||
|
{ "include": "#method_calls" },
|
||||||
{ "include": "#field_access" },
|
{ "include": "#field_access" },
|
||||||
{ "include": "#arrow" },
|
{ "include": "#arrow" },
|
||||||
{ "include": "#return_arrow" },
|
{ "include": "#return_arrow" },
|
||||||
{ "include": "#functions" },
|
{ "include": "#functions" },
|
||||||
|
{ "include": "#path_continuation" },
|
||||||
{ "include": "#operators" },
|
{ "include": "#operators" },
|
||||||
{ "include": "#punctuation" },
|
{ "include": "#punctuation" },
|
||||||
{ "include": "#variables" }
|
{ "include": "#variables" }
|
||||||
@@ -138,6 +140,7 @@
|
|||||||
{ "match": ",", "name": "punctuation.separator.mist" },
|
{ "match": ",", "name": "punctuation.separator.mist" },
|
||||||
{ "match": "[:+]", "name": "keyword.operator.mist" },
|
{ "match": "[:+]", "name": "keyword.operator.mist" },
|
||||||
{ "include": "#field_access" },
|
{ "include": "#field_access" },
|
||||||
|
{ "include": "#path_continuation" },
|
||||||
{ "include": "#generics" }
|
{ "include": "#generics" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -203,12 +206,24 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"method_calls": {
|
||||||
|
"match": "\\.([a-zA-Z_][a-zA-Z0-9_]*)\\s*(?=\\()",
|
||||||
|
"captures": {
|
||||||
|
"1": { "name": "entity.name.function.mist" }
|
||||||
|
}
|
||||||
|
},
|
||||||
"field_access": {
|
"field_access": {
|
||||||
"match": "\\.([a-zA-Z_][a-zA-Z0-9_]*)\\b",
|
"match": "\\.([a-zA-Z_][a-zA-Z0-9_]*)\\b",
|
||||||
"captures": {
|
"captures": {
|
||||||
"1": { "name": "variable.other.property.mist" }
|
"1": { "name": "variable.other.property.mist" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"path_continuation": {
|
||||||
|
"match": "::\\s*([a-zA-Z_][a-zA-Z0-9_]*+)(?!\\s*\\()",
|
||||||
|
"captures": {
|
||||||
|
"1": { "name": "entity.name.namespace.mist" }
|
||||||
|
}
|
||||||
|
},
|
||||||
"arrow": {
|
"arrow": {
|
||||||
"match": "=>",
|
"match": "=>",
|
||||||
"name": "keyword.operator.arrow.mist"
|
"name": "keyword.operator.arrow.mist"
|
||||||
|
|||||||
Reference in New Issue
Block a user