File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -497,7 +497,6 @@ module.exports = grammar({
497
497
"'" ,
498
498
repeat ( choice (
499
499
/ [ ^ ' \\ \n ] / ,
500
- '--' ,
501
500
$ . escape_sequence
502
501
) ) ,
503
502
"'"
@@ -506,7 +505,6 @@ module.exports = grammar({
506
505
'"' ,
507
506
repeat ( choice (
508
507
/ [ ^ " \\ \n ] / ,
509
- '--' ,
510
508
$ . escape_sequence
511
509
) ) ,
512
510
'"'
@@ -522,7 +520,6 @@ module.exports = grammar({
522
520
/ [ ^ " \\ ] / ,
523
521
'"' ,
524
522
'""' ,
525
- '--' ,
526
523
$ . escape_sequence
527
524
) ) ,
528
525
'"""'
@@ -533,7 +530,6 @@ module.exports = grammar({
533
530
/ [ ^ ' \\ ] / ,
534
531
"'" ,
535
532
"''" ,
536
- '--' ,
537
533
$ . escape_sequence
538
534
) ) ,
539
535
"'''"
@@ -543,7 +539,7 @@ module.exports = grammar({
543
539
number : $ => seq ( optional ( '-' ) , / \d + / ) ,
544
540
545
541
comment : $ => token ( prec ( - 1 , choice (
546
- seq ( "--" , / . * / ) ,
542
+ / # [ ^ \r \n ] * / ,
547
543
seq ( "/*" , / [ ^ * ] * \* + ( [ ^ / * ] [ ^ * ] * \* + ) * / , "/" )
548
544
) ) ) ,
549
545
You can’t perform that action at this time.
0 commit comments