diff --git a/grammars/tree-sitter-javascript.cson b/grammars/tree-sitter-javascript.cson index ca9b700b..b67318a8 100644 --- a/grammars/tree-sitter-javascript.cson +++ b/grammars/tree-sitter-javascript.cson @@ -89,7 +89,7 @@ scopes: 'entity.name.function' ] - 'call_expression > super': 'support.function' + 'call_expression > super': 'support.function.super' 'method_definition > property_identifier': 'entity.name.function' 'call_expression > member_expression > property_identifier': 'entity.name.function' @@ -100,8 +100,9 @@ scopes: scopes: 'support.variable' }, { - exact: 'require', scopes: 'support.function' - } + exact: 'require', + scopes: 'support.function' + }, { match: '^[\$A-Z_]{2,}$', scopes: 'constant.other' @@ -136,6 +137,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' @@ -144,7 +148,7 @@ scopes: '"const"': 'storage.modifier' '"static"': 'storage.modifier' '"function"': 'storage.type.function' - '"=>"': 'storage.type.function' + '"=>"': 'storage.type.function.arrow' '"="': 'keyword.operator.js' '"+="': 'keyword.operator.js' @@ -199,6 +203,7 @@ scopes: '"."': 'meta.delimiter' '","': 'meta.delimiter' + '"as"': 'keyword.control' '"if"': 'keyword.control' '"do"': 'keyword.control' '"else"': 'keyword.control'