From 44bb27452d83437a8df30998016c16e8ebc35f35 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Sat, 18 Nov 2023 23:57:51 -0500 Subject: [PATCH] fix: don't parse attribute items as shebangs --- grammar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammar.js b/grammar.js index 1503135c..c0aebe3c 100644 --- a/grammar.js +++ b/grammar.js @@ -1509,7 +1509,7 @@ module.exports = grammar({ identifier: _ => /(r#)?[_\p{XID_Start}][_\p{XID_Continue}]*/, - shebang: _ => /#!.*/, + shebang: _ => /#![^\[]+/, _reserved_identifier: $ => alias(choice( 'default',