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

Commit

Permalink
Sync with language-javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbrunsfeld committed Nov 8, 2018
1 parent 28333f9 commit acbe8ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions grammars/tree-sitter-flow.cson
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,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'
Expand Down Expand Up @@ -144,6 +144,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 All @@ -152,7 +155,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'
Expand Down Expand Up @@ -207,6 +210,7 @@ scopes:
'"."': 'meta.delimiter.period'
'","': 'meta.delimiter.comma'

'"as"': 'keyword.modifier'
'"if"': 'keyword.control'
'"do"': 'keyword.control'
'"else"': 'keyword.control'
Expand Down Expand Up @@ -245,7 +249,6 @@ scopes:
function_signature > identifier
': 'entity.name.function'

'"as"': 'keyword.modifier'
'"implements"': 'keyword.modifier'
'"namespace"': 'keyword.modifier'
'"enum"': 'keyword.modifier'
Expand All @@ -254,5 +257,6 @@ scopes:
'"declare"': 'keyword.modifier'
'"public"': 'keyword.modifier'
'"private"': 'keyword.modifier'
'"protected"': 'keyword.modifier'
'readonly': 'keyword.modifier'
'"type"': 'keyword.modifier'
10 changes: 7 additions & 3 deletions grammars/tree-sitter-typescript.cson
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down 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 All @@ -144,7 +147,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'
Expand Down Expand Up @@ -199,6 +202,7 @@ scopes:
'"."': 'meta.delimiter.period'
'","': 'meta.delimiter.comma'

'"as"': 'keyword.control'
'"if"': 'keyword.control'
'"do"': 'keyword.control'
'"else"': 'keyword.control'
Expand Down Expand Up @@ -237,7 +241,6 @@ scopes:
function_signature > identifier
': 'entity.name.function'

'"as"': 'keyword.modifier'
'"implements"': 'keyword.modifier'
'"namespace"': 'keyword.modifier'
'"enum"': 'keyword.modifier'
Expand All @@ -246,5 +249,6 @@ scopes:
'"declare"': 'keyword.modifier'
'"public"': 'keyword.modifier'
'"private"': 'keyword.modifier'
'"protected"': 'keyword.modifier'
'readonly': 'keyword.modifier'
'"type"': 'keyword.modifier'

0 comments on commit acbe8ef

Please sign in to comment.