From 7185545a38de4f53bf3c92be5d1d97d2928ffbb9 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 26 Sep 2011 21:39:44 -0700 Subject: Bugfixes: Consistent escaping in various literals. Double backslash codes for single backslash. Output clause can be empty. * parser.l (char_esc): Backslash handled. Use internal_error rather than abort. (REGCHAR, LITCHAR): Backslash added to lexical syntax. * parser.y (output_clause): Allow empty output clause. --- parser.y | 2 ++ 1 file changed, 2 insertions(+) (limited to 'parser.y') diff --git a/parser.y b/parser.y index e6e66d1d..2ad2d53f 100644 --- a/parser.y +++ b/parser.y @@ -270,6 +270,8 @@ output_clause : OUTPUT ')' o_elems '\n' out_clauses END newl { $$ = nil; yyerror("obsolete output syntax: trailing material"); } + | OUTPUT ')' newl + END newl { $$ = list(output_s, nao); } | OUTPUT ')' newl out_clauses END newl { $$ = list(output_s, $4, nao); } -- cgit v1.2.3