Skip to content

Commit

Permalink
Revert "Added parser setting"
Browse files Browse the repository at this point in the history
This reverts commit ca886b3.
  • Loading branch information
kfly8 committed Dec 20, 2024
1 parent ca886b3 commit 1b5e4b1
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions lib/Syntax/Keyword/Assert.xs
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ ok:
RETURN;
}

static int build_assert(pTHX_ OP **out, XSParseKeywordPiece *args[], size_t nargs, void *hookdata)
static int build_assert(pTHX_ OP **out, XSParseKeywordPiece *arg0, void *hookdata)
{
OP *argop = args[0]->op;
OP *argop = arg0->op;
if (assert_enabled) {
enum BinopType binoptype = classify_binop(argop->op_type);
if (binoptype) {
Expand All @@ -239,14 +239,8 @@ static int build_assert(pTHX_ OP **out, XSParseKeywordPiece *args[], size_t narg

static const struct XSParseKeywordHooks hooks_assert = {
.permit_hintkey = "Syntax::Keyword::Assert/assert",
.pieces = (const struct XSParseKeywordPieceType[]) {
XPK_PARENS(
XPK_TERMEXPR_SCALARCTX,
XPK_OPTIONAL(XPK_COMMA),
XPK_TERMEXPR_SCALARCTX_OPT
)
},
.build = &build_assert,
.piece1 = XPK_TERMEXPR_SCALARCTX,
.build1 = &build_assert,
};

MODULE = Syntax::Keyword::Assert PACKAGE = Syntax::Keyword::Assert
Expand Down

0 comments on commit 1b5e4b1

Please sign in to comment.