Skip to content

Commit

Permalink
Detect empty comments (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfay authored Jan 30, 2023
1 parent e2f0f3f commit bca2ad2
Show file tree
Hide file tree
Showing 5 changed files with 3,177 additions and 3,167 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ module.exports = grammar({
"]"
),

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

Expand Down
3 changes: 2 additions & 1 deletion src/grammar.json

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

2 changes: 1 addition & 1 deletion 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 bca2ad2

Please sign in to comment.