diff options
author | Teddy <[email protected]> | 2014-03-25 04:58:57 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2014-03-25 04:58:57 +0800 |
commit | 9e43ffed22d5ba25fe545a48ac732591c346aabb (patch) | |
tree | e56c5d18e2441ef78a00bb54bb118872897229cc /cibic.l | |
parent | 4f90efb9a08b697b7ef270a4d2ee067dc853f251 (diff) |
wrong regex for char const
Diffstat (limited to 'cibic.l')
-rw-r--r-- | cibic.l | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -64,8 +64,8 @@ digit [0-9] return INT_CONST; } -'{letter}' { - yylval.intval = *(yytext); +'([^\'\\]|\\.)' { + yylval.strval = strdup(yytext); return CHAR_CONST; } |