summaryrefslogtreecommitdiff
path: root/perly.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-09-25 15:09:52 +0200
committerYves Orton <demerphq@gmail.com>2023-02-20 11:34:22 +0800
commit21938ae5a278f0b48443561333c47714921e7566 (patch)
tree62b372c8d2ea947696beeafc9b88be11ad909042 /perly.c
parent8a8491416c79dc8f491c402c013844437c0643eb (diff)
downloadperl-21938ae5a278f0b48443561333c47714921e7566.tar.gz
perl.h, pp_ctl.c - switch to standard way of terminating compilation
I did not fully understand the use of yyquit() when I implemented the SYNTAX_ERROR related stuff. It is not needed, and switching to this makes eval compile error messages more consistent.
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();
}