Patch language grammar
This commit is contained in:
@@ -201,7 +201,7 @@
|
|||||||
"type_declarations": {
|
"type_declarations": {
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
"match": "\\b(struct|enum|class|trait)\\s+([a-zA-Z_][a-zA-Z0-9_]*)",
|
"match": "\\b(struct|enum|class|trait|type)\\s+([a-zA-Z_][a-zA-Z0-9_]*)",
|
||||||
"captures": {
|
"captures": {
|
||||||
"1": {
|
"1": {
|
||||||
"name": "storage.type.mist"
|
"name": "storage.type.mist"
|
||||||
@@ -238,7 +238,7 @@
|
|||||||
"name": "keyword.control.mist"
|
"name": "keyword.control.mist"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"match": "\\b(struct|enum|class|trait|fn|let|impl|class)\\b",
|
"match": "\\b(struct|enum|class|trait|fn|let|impl|type|const)\\b",
|
||||||
"name": "storage.modifier.mist"
|
"name": "storage.modifier.mist"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user