summaryrefslogtreecommitdiffstats
path: root/Keyword.xs
diff options
context:
space:
mode:
Diffstat (limited to 'Keyword.xs')
-rw-r--r--Keyword.xs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Keyword.xs b/Keyword.xs
index 8cfb87a..f811177 100644
--- a/Keyword.xs
+++ b/Keyword.xs
@@ -37,7 +37,9 @@ static SV *parser_fn(OP *(fn)(pTHX_ U32), bool named)
LEAVE_PARSER;
if (errors) {
- croak_sv(ERRSV);
+ ++PL_parser->error_count;
+ sv_catsv(PL_errors, ERRSV);
+ return newSV(0);
}
else {
if (CvCLONE(code)) {