summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/parser.c b/parser.c
index 3d2bf6f..0a37a75 100644
--- a/parser.c
+++ b/parser.c
@@ -404,6 +404,11 @@ SkipWhite:
if(peek == L'0'){
peek = Bgetrune(parsein);
switch(peek){
+ case L'\'': /* Character code */
+ peek = Bgetrune(parsein);
+ lookahead.tag = IntTok;
+ lookahead.ival = peek;
+ return;
case L'o': /* Octal */
case L'x': /* Hexadecimal */
case L'b': /* Binary */