From e1aa0323be7eba355780d76455dde25ed51d481f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 7 Jun 2015 07:19:18 -0700 Subject: 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`. --- ChangeLog | 9 +++++++++ parser.l | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7c0b9d78..4e18f508 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2015-07-07 Kaz Kylheku + + 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`. + 2015-07-07 Kaz Kylheku Improved printing of stream objects. diff --git a/parser.l b/parser.l index 30cb3034..f7c717e8 100644 --- a/parser.l +++ b/parser.l @@ -310,7 +310,7 @@ UONLY {U2}{U}|{U3}{U}{U}|{U4}{U}{U}{U} return NUMBER; } -@{NUM} { +@{NUM} { val str = string_own(utf8_dup_from(yytext + 1)); if (yy_top_state(yyscanner) == INITIAL -- cgit v1.2.3