Skip to content

Commit 391a8fc

Browse files
committed
fix: comment should be terminal
1 parent a5de24d commit 391a8fc

File tree

4 files changed

+47243
-52031
lines changed

4 files changed

+47243
-52031
lines changed

grammar.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -987,16 +987,14 @@ module.exports = grammar({
987987
)),
988988

989989
// http://stackoverflow.com/questions/13014947/regex-to-match-a-c-style-multiline-comment/36328890#36328890
990-
comment: _ => choice(
991-
token(choice(
992-
seq('//', /[^\r\n\u2028\u2029]*/),
993-
seq(
994-
'/*',
995-
/[^*]*\*+([^/*][^*]*\*+)*/,
996-
'/',
997-
),
998-
)),
999-
),
990+
comment: _ => token(choice(
991+
seq('//', /[^\r\n\u2028\u2029]*/),
992+
seq(
993+
'/*',
994+
/[^*]*\*+([^/*][^*]*\*+)*/,
995+
'/',
996+
),
997+
)),
1000998

1001999
template_string: $ => seq(
10021000
'`',

src/grammar.json

Lines changed: 29 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)