summaryrefslogtreecommitdiff
path: root/perly.c
diff options
context:
space:
mode:
Diffstat (limited to 'perly.c')
-rw-r--r--perly.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/perly.c b/perly.c
index 20854ae542..fb4abdfcc1 100644
--- a/perly.c
+++ b/perly.c
@@ -488,7 +488,8 @@ Perl_yyparse (pTHX_ int gramtype)
yyerrlab:
/* If not already recovering from an error, report this error. */
if (!parser->yyerrstatus) {
- yyerror ("syntax error");
+ yyerror("syntax error");
+ yyquit();
}