@@ -271,7 +271,10 @@ module.exports = grammar({
271
271
) ,
272
272
273
273
quoted_atom : ( $ ) =>
274
- seq ( $ . _quoted_atom_start , choice ( $ . _quoted_i_double , $ . _quoted_i_single ) ) ,
274
+ seq (
275
+ alias ( $ . _quoted_atom_start , ":" ) ,
276
+ choice ( $ . _quoted_i_double , $ . _quoted_i_single )
277
+ ) ,
275
278
276
279
// Defines $._quoted_content_i_{name} and $._quoted_content_{name} rules,
277
280
// content with and without interpolation respectively
@@ -468,7 +471,12 @@ module.exports = grammar({
468
471
binaryOp ( $ , prec . left , PREC . COMP_OPS , choice ( ...COMP_OPS ) ) ,
469
472
binaryOp ( $ , prec . left , PREC . REL_OPS , choice ( ...REL_OPS ) ) ,
470
473
binaryOp ( $ , prec . left , PREC . ARROW_OPS , choice ( ...ARROW_OPS ) ) ,
471
- binaryOp ( $ , prec . left , PREC . IN_OPS , choice ( "in" , $ . _not_in ) ) ,
474
+ binaryOp (
475
+ $ ,
476
+ prec . left ,
477
+ PREC . IN_OPS ,
478
+ choice ( "in" , alias ( $ . _not_in , "not in" ) )
479
+ ) ,
472
480
binaryOp ( $ , prec . left , PREC . XOR_OP , "^^^" ) ,
473
481
binaryOp ( $ , prec . right , PREC . TERNARY_OP , "//" ) ,
474
482
binaryOp ( $ , prec . right , PREC . CONCAT_OPS , choice ( ...CONCAT_OPS ) ) ,
@@ -513,7 +521,7 @@ module.exports = grammar({
513
521
...REL_OPS ,
514
522
...ARROW_OPS ,
515
523
"in" ,
516
- $ . _not_in ,
524
+ alias ( $ . _not_in , "not in" ) ,
517
525
"^^" ,
518
526
...CONCAT_OPS ,
519
527
...MULT_OPS ,
0 commit comments