Reworded string defintion for clarity and to get rid of unescaped quotes in [].

This commit is contained in:
Svend Sorensen
2004-12-09 05:58:30 +00:00
parent ced5803107
commit 902c12f1a1
2 changed files with 4 additions and 4 deletions

View File

@@ -24,8 +24,8 @@ nonws [^ \t\r\n]
%% %%
\'(\\.|[^\\'])*\' | \'([^\']|\\\')*\' |
\"(\\.|[^\\"])*\" { \"([^\"]|\\\")*\" {
cue_yylval.sval = strdup(yytext + 1); cue_yylval.sval = strdup(yytext + 1);
cue_yylval.sval[strlen(cue_yylval.sval) - 1] = '\0'; cue_yylval.sval[strlen(cue_yylval.sval) - 1] = '\0';
BEGIN(INITIAL); BEGIN(INITIAL);

View File

@@ -23,8 +23,8 @@ nonws [^ \t\r\n]
%% %%
\'(\\.|[^\\'])*\' | \'([^\']|\\\')*\' |
\"(\\.|[^\\"])*\" { \"([^\"]|\\\")*\" {
toc_yylval.sval = strdup(yytext + 1); toc_yylval.sval = strdup(yytext + 1);
toc_yylval.sval[strlen(toc_yylval.sval) - 1] = '\0'; toc_yylval.sval[strlen(toc_yylval.sval) - 1] = '\0';
BEGIN(INITIAL); BEGIN(INITIAL);