Prechádzať zdrojové kódy

core script parsing: minor fix: " at the end of file

Having a closing quote at the end of file generated a parse error.

Reported-by: Henning Westerholt <[email protected]>
Andrei Pelinescu-Onciul 16 rokov pred
rodič
commit
f84c93b382
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      cfg.lex

+ 1 - 0
cfg.lex

@@ -952,6 +952,7 @@ EAT_ABLE	[\ \t\b\r]
 <STRING1>{QUOTES} { count_more(); 
 						yytext[yyleng-1]=0; yyleng--;
 						addstr(&s_buf, yytext, yyleng);
+						state=STR_BETWEEN_S;
 						BEGIN(STR_BETWEEN);
 					}
 <STRING2>{TICK}  { count_more(); state=old_state; BEGIN(old_initial);