Skip to content

Commit be0ea79

Browse files
Support multi-letter uppercase sigils (#50)
1 parent fa10c66 commit be0ea79

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ module.exports = grammar({
334334
)
335335
),
336336
seq(
337-
alias(token.immediate(/[A-Z]/), $.sigil_name),
337+
alias(token.immediate(/[A-Z]+/), $.sigil_name),
338338
choice(
339339
$._quoted_double,
340340
$._quoted_single,

test/corpus/expression/sigil.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,19 @@ upper sigil / escape terminator
189189
(escape_sequence)
190190
(quoted_content)))
191191

192+
=====================================
193+
upper sigil / multiple characters
194+
=====================================
195+
196+
~MAT"1 2"
197+
198+
---
199+
200+
(source
201+
(sigil
202+
(sigil_name)
203+
(quoted_content)))
204+
192205
=====================================
193206
heredoc delimiter
194207
=====================================

0 commit comments

Comments
 (0)