summaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
Diffstat (limited to 'parser.l')
-rw-r--r--parser.l5
1 files changed, 3 insertions, 2 deletions
diff --git a/parser.l b/parser.l
index fab8dd9c..86472c03 100644
--- a/parser.l
+++ b/parser.l
@@ -1121,7 +1121,8 @@ NJPUNC [^(){},:\[\]"~*^ \t\n]
}
<JLIT>[\\]u{HEX}{4} {
- yylval->chr = num_esc(yyg, yytext + 1);
+ wchar_t ch = num_esc(yyg, yytext + 1);
+ yylval->chr = if3(ch, ch, 0xDC00);
return LITCHAR;
}
@@ -1171,7 +1172,7 @@ NJPUNC [^(){},:\[\]"~*^ \t\n]
chr(yytext[0]), nao);
}
-<STRLIT,CHRLIT,QSILIT,WLIT,QWLIT>. {
+<STRLIT,CHRLIT,QSILIT,WLIT,QWLIT,JLIT>. {
yylval->chr = convert(unsigned char, yytext[0]) + 0xDC00;
return LITCHAR;
}