Skip to content

Commit

Permalink
fix: don't parse attribute items as shebangs
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Nov 19, 2023
1 parent c741c10 commit 79456e6
Show file tree
Hide file tree
Showing 3 changed files with 1,358 additions and 1,350 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@ module.exports = grammar({

identifier: _ => /(r#)?[_\p{XID_Start}][_\p{XID_Continue}]*/,

shebang: _ => /#!.*/,
shebang: _ => /#![\s]*[^\[\s]+/,

_reserved_identifier: $ => alias(choice(
'default',
Expand Down
2 changes: 1 addition & 1 deletion src/grammar.json

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

Loading

0 comments on commit 79456e6

Please sign in to comment.