summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parser_bison.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index abc41a6b..03b13720 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -760,6 +760,8 @@ line : common_block { $$ = NULL; }
} else
list_splice_tail(&list, &state->cmds);
}
+ if (state->nerrs)
+ YYABORT;
$$ = NULL;
YYACCEPT;