Skip to content
Snippets Groups Projects
Verified Commit 80345135 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

macro processor: fix bug: allow empty strings

previously, `@#define str=""` caused an error
parent a37fea0d
Branches
No related tags found
No related merge requests found
...@@ -169,7 +169,7 @@ CONT \\\\{SPC}* ...@@ -169,7 +169,7 @@ CONT \\\\{SPC}*
return token::NAME; return token::NAME;
} }
<expr,eval>\"[^\"]+\" { <expr,eval>\"[^\"]*\" {
yylval->build<string>(yytext + 1).pop_back(); yylval->build<string>(yytext + 1).pop_back();
return token::QUOTED_STRING; return token::QUOTED_STRING;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment