summaryrefslogtreecommitdiff
path: root/Src/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/parse.c')
-rw-r--r--Src/parse.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Src/parse.c b/Src/parse.c
index 453e45ad0..5e90984ac 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -459,6 +459,7 @@ par_event(void)
}
}
if (!r) {
+ tok = LEXERR;
if (errflag) {
yyerror(0);
ecused--;
@@ -491,10 +492,8 @@ parse_list(void)
yylex();
init_parse();
par_list(&c);
-#if 0
- if (tok == LEXERR)
-#endif
- if (tok != ENDINPUT) {
+ if (tok != ENDINPUT) {
+ tok = LEXERR;
yyerror(0);
return NULL;
}