summaryrefslogtreecommitdiffstats
path: root/Keyword.xs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-07-23 13:58:23 -0400
committerJesse Luehrs <doy@tozt.net>2013-07-23 13:58:23 -0400
commitbff8a47c7872d34f41a22573dcf9cea0497c8ecc (patch)
tree868decc401a268a8c3bdd6cfa565ee391ee7b436 /Keyword.xs
parent310ba62c846379ad914942e36b9111084a364899 (diff)
downloadparse-keyword-bff8a47c7872d34f41a22573dcf9cea0497c8ecc.tar.gz
parse-keyword-bff8a47c7872d34f41a22573dcf9cea0497c8ecc.zip
actually, don't throw an error
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)) {