Skip to content

Commit

Permalink
fix: comment should be terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed May 31, 2024
1 parent a5de24d commit 391a8fc
Show file tree
Hide file tree
Showing 4 changed files with 47,243 additions and 52,031 deletions.
18 changes: 8 additions & 10 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -987,16 +987,14 @@ module.exports = grammar({
)),

// http://stackoverflow.com/questions/13014947/regex-to-match-a-c-style-multiline-comment/36328890#36328890
comment: _ => choice(
token(choice(
seq('//', /[^\r\n\u2028\u2029]*/),
seq(
'/*',
/[^*]*\*+([^/*][^*]*\*+)*/,
'/',
),
)),
),
comment: _ => token(choice(
seq('//', /[^\r\n\u2028\u2029]*/),
seq(
'/*',
/[^*]*\*+([^/*][^*]*\*+)*/,
'/',
),
)),

template_string: $ => seq(
'`',
Expand Down
63 changes: 29 additions & 34 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions src/node-types.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 391a8fc

Please sign in to comment.