Skip to content

Commit bca2ad2

Browse files
authored
Detect empty comments (m-novikov#74)
1 parent e2f0f3f commit bca2ad2

File tree

5 files changed

+3177
-3167
lines changed

5 files changed

+3177
-3167
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ module.exports = grammar({
328328
"]"
329329
),
330330

331-
comment: _ => seq('--', /.*\n/),
331+
comment: _ => seq('--', /.*/),
332332
// https://stackoverflow.com/questions/13014947/regex-to-match-a-c-style-multiline-comment
333333
marginalia: _ => seq('/*', /[^*]*\*+(?:[^/*][^*]*\*+)*/, '/' ),
334334

src/grammar.json

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

src/node-types.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)