Browse code

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 <henning.westerholt@1und1.de>

Andrei Pelinescu-Onciul authored on 06/05/2009 16:32:46
Showing 1 changed files
... ...
@@ -952,6 +952,7 @@ EAT_ABLE	[\ \t\b\r]
952 952
 <STRING1>{QUOTES} { count_more(); 
953 953
 						yytext[yyleng-1]=0; yyleng--;
954 954
 						addstr(&s_buf, yytext, yyleng);
955
+						state=STR_BETWEEN_S;
955 956
 						BEGIN(STR_BETWEEN);
956 957
 					}
957 958
 <STRING2>{TICK}  { count_more(); state=old_state; BEGIN(old_initial);