diff --git a/syntaxes/mist.tmLanguage.json b/syntaxes/mist.tmLanguage.json index 7d92746..70823bb 100644 --- a/syntaxes/mist.tmLanguage.json +++ b/syntaxes/mist.tmLanguage.json @@ -21,6 +21,9 @@ { "include": "#type_declarations" }, + { + "include": "#impl" + }, { "include": "#keywords" }, @@ -45,9 +48,6 @@ { "include": "#struct_literals" }, - { - "include": "#impl" - }, { "include": "#method_calls" }, @@ -564,7 +564,7 @@ "impl": { "patterns": [ { - "match": "\\b(impl)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s+for\\s+([a-zA-Z_][a-zA-Z0-9_]*)", + "match": "\\b(impl)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s+(for)\\s+([a-zA-Z_][a-zA-Z0-9_]*)", "captures": { "1": { "name": "storage.type.mist" @@ -577,6 +577,9 @@ ] }, "3": { + "name": "storage.type.mist" + }, + "4": { "patterns": [ { "include": "#types"