Parcourir la source

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

master
Svend Sorensen il y a 19 ans
Parent
révision
902c12f1a1
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. +2
    -2
      lib/cue_scan.l
  2. +2
    -2
      lib/toc_scan.l

+ 2
- 2
lib/cue_scan.l Voir le fichier

@@ -24,8 +24,8 @@ nonws [^ \t\r\n]
%%


\'(\\.|[^\\'])*\' |
\"(\\.|[^\\"])*\" {
\'([^\']|\\\')*\' |
\"([^\"]|\\\")*\" {
cue_yylval.sval = strdup(yytext + 1);
cue_yylval.sval[strlen(cue_yylval.sval) - 1] = '\0';
BEGIN(INITIAL);


+ 2
- 2
lib/toc_scan.l Voir le fichier

@@ -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);


Chargement…
Annuler
Enregistrer