diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-06-07 07:19:18 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-06-07 07:19:18 -0700 |
commit | e1aa0323be7eba355780d76455dde25ed51d481f (patch) | |
tree | da4074aa28a257e82805cfa0d8b82e010b5c0b9a /parser.l | |
parent | 2f792610c11dd2a82a5e9b35be55a227665e76d1 (diff) | |
download | txr-e1aa0323be7eba355780d76455dde25ed51d481f.tar.gz txr-e1aa0323be7eba355780d76455dde25ed51d481f.tar.bz2 txr-e1aa0323be7eba355780d76455dde25ed51d481f.zip |
Bugfix: allow @1 in brace variables.
* parser.l (grammar): Scan a METANUM token in the
BRACED state also. This allows us to correctly
reference op arguments in a quasiliteral, as in
`foo @{@1 [1..2] ","} bar`.
Diffstat (limited to 'parser.l')
-rw-r--r-- | parser.l | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -310,7 +310,7 @@ UONLY {U2}{U}|{U3}{U}{U}|{U4}{U}{U}{U} return NUMBER; } -<NESTED,QSILIT,QWLIT,QSPECIAL>@{NUM} { +<NESTED,BRACED,QSILIT,QWLIT,QSPECIAL>@{NUM} { val str = string_own(utf8_dup_from(yytext + 1)); if (yy_top_state(yyscanner) == INITIAL |