Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Add more scopes to the tree-sitter grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben3eeE committed Nov 1, 2018
1 parent 81d3af4 commit e04d8bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grammars/tree-sitter-javascript.cson
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -199,6 +202,7 @@ scopes:
'"."': 'meta.delimiter'
'","': 'meta.delimiter'

'"as"': 'keyword.control'
'"if"': 'keyword.control'
'"do"': 'keyword.control'
'"else"': 'keyword.control'
Expand Down

0 comments on commit e04d8bc

Please sign in to comment.