summaryrefslogtreecommitdiffstats
path: root/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'parser.y')
-rw-r--r--parser.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/parser.y b/parser.y
index fef42eaf..1059c863 100644
--- a/parser.y
+++ b/parser.y
@@ -812,6 +812,8 @@ chrlit : HASH_BACKSLASH IDENT { wchar_t ch;
str, nao); }}
end_of_char();
$$ = chr(ch); }
+ | HASH_BACKSLASH LITCHAR { $$ = chr($2);
+ end_of_char(); }
| HASH_BACKSLASH error { $$ = nil;
yybadtoken(yychar,
lit("character literal")); }