Skip to content

Commit 21af32a

Browse files
committed
Allow nesting of quotes.
1 parent 5fab963 commit 21af32a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HLL/Grammar.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ grammar HLL::Grammar {
3232
# Return <termish> if it matches, <nullterm_alt> otherwise.
3333
method nulltermish() { self.termish || self.nullterm_alt }
3434

35-
# token quote_EXPR is in src/cheats/hll-grammar.pir
3635
token quote_delimited {
3736
<starter> <quote_atom>* <stopper>
3837
}
@@ -41,7 +40,8 @@ grammar HLL::Grammar {
4140
<!stopper>
4241
[
4342
| <quote_escape>
44-
| [ <-quote_escape-stopper> ]+
43+
| [ <-quote_escape-stopper-starter> ]+
44+
| <starter> <quote_atom>* <stopper>
4545
]
4646
}
4747

0 commit comments

Comments
 (0)