aboutsummaryrefslogtreecommitdiff
path: root/cibic.l
diff options
context:
space:
mode:
Diffstat (limited to 'cibic.l')
-rw-r--r--cibic.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/cibic.l b/cibic.l
index 666069e..26fca1f 100644
--- a/cibic.l
+++ b/cibic.l
@@ -64,8 +64,8 @@ digit [0-9]
return INT_CONST;
}
-'{letter}' {
- yylval.intval = *(yytext);
+'([^\'\\]|\\.)' {
+ yylval.strval = strdup(yytext);
return CHAR_CONST;
}