From e04d8bcd2c0e8d22e8f27d62ffdfa0d164feb451 Mon Sep 17 00:00:00 2001 From: Linus Eriksson Date: Thu, 1 Nov 2018 15:40:24 +0100 Subject: [PATCH] Add more scopes to the tree-sitter grammar --- grammars/tree-sitter-javascript.cson | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grammars/tree-sitter-javascript.cson b/grammars/tree-sitter-javascript.cson index ca9b700b..71fac84a 100644 --- a/grammars/tree-sitter-javascript.cson +++ b/grammars/tree-sitter-javascript.cson @@ -136,6 +136,9 @@ scopes: '")"': 'punctuation.definition.parameters.end.bracket.round' '"{"': 'punctuation.definition.function.body.begin.bracket.curly' '"}"': 'punctuation.definition.function.body.end.bracket.curly' + '";"': 'punctuation.terminator.statement.semicolon' + '"["': 'punctuation.definition.array.begin.bracket.square' + '"]"': 'punctuation.definition.array.end.bracket.square' '"var"': 'storage.type' '"let"': 'storage.type' @@ -199,6 +202,7 @@ scopes: '"."': 'meta.delimiter' '","': 'meta.delimiter' + '"as"': 'keyword.control' '"if"': 'keyword.control' '"do"': 'keyword.control' '"else"': 'keyword.control'