diff --git a/syntaxes/blink.tmLanguage.json b/syntaxes/blink.tmLanguage.json index 37ef659..a19aa7d 100644 --- a/syntaxes/blink.tmLanguage.json +++ b/syntaxes/blink.tmLanguage.json @@ -4,6 +4,7 @@ "scopeName": "source.blink", "patterns": [ { "include": "#comments" }, + { "include": "#scope" }, { "include": "#brackets" }, { "include": "#autoClosingPairs" }, { "include": "#surroundingPairs" }, @@ -33,6 +34,21 @@ } ] }, + "scope": { + "patterns": [ + { + "begin": "(scope)\\s+([a-zA-Z_]\\w*)\\s*\\{", + "end": "\\}", + "captures": { + "1": { "name": "keyword.control.blink" }, + "2": { "name": "variable.other.blink" } + }, + "patterns": [ + { "include": "source.blink" } + ] + } + ] + }, "brackets": { "patterns": [ { @@ -59,7 +75,7 @@ "name": "meta.array-assignment.blink" }, { - "match": "([a-zA-Z_]\\w*)\\s*}", + "match": "([a-zA-Z_]\\w*)\\s*", "captures": { "1": { "name": "variable.other.blink" } }, "name": "meta.array-assignment.blink" }