Skip to content

Commit 464c692

Browse files
committed
Fix xx_require_once_statement
1 parent 0852a00 commit 464c692

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

parser/zephir.lemon

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,10 @@ xx_statement(R) ::= xx_require_statement(S) . {
986986
R = S;
987987
}
988988

989+
xx_statement(R) ::= xx_require_once_statement(S) . {
990+
R = S;
991+
}
992+
989993
xx_statement(R) ::= xx_fetch_statement(S) . {
990994
R = S;
991995
}
@@ -1534,7 +1538,7 @@ xx_require_statement(R) ::= REQUIRE xx_common_expr(E) DOTCOMMA . {
15341538
}
15351539

15361540
/* require_once statement */
1537-
xx_require_statement(R) ::= REQUIRE_ONCE xx_common_expr(E) DOTCOMMA . {
1541+
xx_require_once_statement(R) ::= REQUIRE_ONCE xx_common_expr(E) DOTCOMMA . {
15381542
xx_ret_require_once_statement(&R, &E, status->scanner_state);
15391543
}
15401544

0 commit comments

Comments
 (0)