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

Commit ececc14

Browse files
committed
Fix highlighting for '=>' and some operators
Refs #558
1 parent 4ce982d commit ececc14

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

grammars/tree-sitter-javascript.cson

+8-6
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,14 @@ scopes:
9999
'"class"': 'storage.type'
100100
'"const"': 'storage.modifier'
101101
'"static"': 'storage.modifier'
102-
'"function"': 'storage.type'
103-
104-
'"+"': 'keyword.operator'
105-
'"-"': 'keyword.operator'
106-
'"*"': 'keyword.operator'
107-
'"/"': 'keyword.operator'
102+
'"function"': 'storage.type.function'
103+
'"=>"': 'storage.type.function'
104+
105+
'"="': 'keyword.operator.js'
106+
'"+"': 'keyword.operator.js'
107+
'"-"': 'keyword.operator.js'
108+
'"*"': 'keyword.operator.js'
109+
'"/"': 'keyword.operator.js'
108110
'"in"': 'keyword.operator.in'
109111
'"instanceof"': 'keyword.operator.instanceof'
110112
'"of"': 'keyword.operator.of'

0 commit comments

Comments
 (0)