We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62e3880 commit 9e94c03Copy full SHA for 9e94c03
src/parser/expr.js
@@ -635,8 +635,15 @@ module.exports = {
635
return this.node("noop")();
636
}
637
638
- const entry = this.node("matchentry");
+ return this.node("matchentry")(
639
+ this.read_match_pair_keys(),
640
+ this.read_expr(),
641
+ false,
642
+ false
643
+ );
644
+ },
645
646
+ read_match_pair_keys: function () {
647
const keys = [];
648
if (this.token === this.tok.T_DEFAULT) {
649
keys.push(this.node("defaultkeyword")("default"));
@@ -651,9 +658,7 @@ module.exports = {
651
658
if (this.expect(this.tok.T_DOUBLE_ARROW)) {
652
659
this.next();
653
660
654
- const value = this.read_expr();
655
-
656
- return entry(keys, value, false, false);
661
+ return keys;
657
662
},
663
664
/**
0 commit comments