Skip to content

Commit 2d7bac5

Browse files
committed
fix: edge case with empty line doc comments
1 parent 85a21c9 commit 2d7bac5

File tree

4 files changed

+55444
-55429
lines changed

4 files changed

+55444
-55429
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1525,7 +1525,7 @@ module.exports = grammar({
15251525
),
15261526

15271527
_inner_line_doc_comment: _ => token.immediate(prec(2, '!')),
1528-
_outer_line_doc_comment: _ => token.immediate(prec(2, /\/[^\/]/)),
1528+
_outer_line_doc_comment: _ => token.immediate(prec(2, /\/[^\/\r\n]?/)),
15291529

15301530
block_comment: $ => seq(
15311531
'/*',

src/grammar.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)