Reworded string defintion for clarity and to get rid of unescaped quotes in [].
This commit is contained in:
@@ -23,8 +23,8 @@ nonws [^ \t\r\n]
|
||||
|
||||
%%
|
||||
|
||||
\'(\\.|[^\\'])*\' |
|
||||
\"(\\.|[^\\"])*\" {
|
||||
\'([^\']|\\\')*\' |
|
||||
\"([^\"]|\\\")*\" {
|
||||
toc_yylval.sval = strdup(yytext + 1);
|
||||
toc_yylval.sval[strlen(toc_yylval.sval) - 1] = '\0';
|
||||
BEGIN(INITIAL);
|
||||
|
||||
Reference in New Issue
Block a user