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 15d5e85 commit 1d05f78Copy full SHA for 1d05f78
grammar.js
@@ -20,7 +20,7 @@ const PREC = {
20
NEG: 10,
21
INC: 11,
22
CALL: 12,
23
- NEW: 13,
+ NEW: 12,
24
MEMBER: 14
25
};
26
@@ -630,7 +630,7 @@ module.exports = grammar({
630
field('arguments', choice($.arguments, $.template_string))
631
)),
632
633
- new_expression: $ => prec.right(PREC.NEW, seq(
+ new_expression: $ => prec(PREC.NEW, seq(
634
'new',
635
field('constructor', $._expression),
636
field('arguments', optional($.arguments))
src/grammar.json
@@ -2725,8 +2725,8 @@
2725
}
2726
},
2727
"new_expression": {
2728
- "type": "PREC_RIGHT",
2729
- "value": 13,
+ "type": "PREC",
+ "value": 12,
2730
"content": {
2731
"type": "SEQ",
2732
"members": [
0 commit comments