Commit e56c181 1 parent d5a2f8e commit e56c181 Copy full SHA for e56c181
File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1038,7 +1038,7 @@ contexts:
1038
1038
scope: keyword.operator.arithmetic.js
1039
1039
push: expression-begin
1040
1040
- match : ' ,'
1041
- scope : punctuation.separator .comma.js # TODO: Change to keyword.operator.comma.js ?
1041
+ scope : keyword.operator .comma.js # Comma operator, not punctuation.
1042
1042
push : expression-begin
1043
1043
1044
1044
ternary-operator :
Original file line number Diff line number Diff line change @@ -1352,6 +1352,17 @@ var re = /^\/[^/]+/;
1352
1352
// ^ keyword.operator.arithmetic
1353
1353
y / ( ( x - 1 ) / - 2 ) ;
1354
1354
1355
+ 1 , 2 ;
1356
+ // ^ keyword.operator.comma - punctuation
1357
+
1358
+ a ;
1359
+ [ 1 , 2 ] ;
1360
+ // ^ meta.sequence punctuation.separator.comma - meta.brackets - keyword
1361
+
1362
+ a
1363
+ [ 1 , 2 ] ;
1364
+ // ^ meta.brackets keyword.operator.comma - meta.sequence - punctuation
1365
+
1355
1366
define ( [ 'common' ] , function ( common ) {
1356
1367
// ^ meta.function.declaration
1357
1368
var namedFunc = function ( ) {
You can’t perform that action at this time.
0 commit comments