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 44bb274
Showing 1 changed file with 1 addition and 1 deletion.
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: _ => /#![^\[]+/,

_reserved_identifier: $ => alias(choice(
'default',
Expand Down

0 comments on commit 44bb274

Please sign in to comment.