From fff6c80a0f7dd2c90033a48444aad0db36ff9b80 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 15 Apr 2015 05:45:46 -0700 Subject: Allow quasiquotes in braces and quasiliterals, and quotes in braces. * parser.l: Consolidate rules for recognizing quote, unquote, and quasiquote. An effect of this is that quasiquotes can now occur in braces and in string quasiliterals. * parser.y (quasi_item): Support quotes and quasiquotes as quasi items: that is to say, i.e. objects denoted by @ in a quasiliteral. --- parser.l | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'parser.l') diff --git a/parser.l b/parser.l index 9121de12..70c21d79 100644 --- a/parser.l +++ b/parser.l @@ -565,12 +565,7 @@ UONLY {U2}{U}|{U3}{U}{U}|{U4}{U}{U}{U} return SPLICE; } -[,'^] { - yylval->chr = yytext[0]; - return yytext[0]; -} - -[,'] { +[,'^] { yylval->chr = yytext[0]; return yytext[0]; } -- cgit v1.2.3