diff --git a/packages/es-grammars/gen/es2015.grammar.ohm b/packages/es-grammars/gen/es2015.grammar.ohm old mode 100644 new mode 100755 diff --git a/packages/es-grammars/gen/es2016.grammar.ohm b/packages/es-grammars/gen/es2016.grammar.ohm old mode 100644 new mode 100755 index b7b630ef..b0b259c8 --- a/packages/es-grammars/gen/es2016.grammar.ohm +++ b/packages/es-grammars/gen/es2016.grammar.ohm @@ -506,11 +506,11 @@ ES2016 { | NewExpression UpdateExpression = - | LeftHandSideExpression -- alt1 | LeftHandSideExpression ~lineTerminator "++" -- alt2 | LeftHandSideExpression ~lineTerminator "--" -- alt3 | "++" UnaryExpression -- alt4 | "--" UnaryExpression -- alt5 + | LeftHandSideExpression -- alt1 UnaryExpression = | delete UnaryExpression -- alt2 diff --git a/packages/es-grammars/gen/es2017.grammar.ohm b/packages/es-grammars/gen/es2017.grammar.ohm old mode 100644 new mode 100755 index a2f6efc3..e36856b4 --- a/packages/es-grammars/gen/es2017.grammar.ohm +++ b/packages/es-grammars/gen/es2017.grammar.ohm @@ -541,11 +541,11 @@ ES2017 { | MemberExpression Arguments -- alt1 UpdateExpression = - | LeftHandSideExpression -- alt1 | LeftHandSideExpression ~lineTerminator "++" -- alt2 | LeftHandSideExpression ~lineTerminator "--" -- alt3 | "++" UnaryExpression -- alt4 | "--" UnaryExpression -- alt5 + | LeftHandSideExpression -- alt1 UnaryExpression = | delete UnaryExpression -- alt2 diff --git a/packages/es-grammars/gen/es2018.grammar.ohm b/packages/es-grammars/gen/es2018.grammar.ohm old mode 100644 new mode 100755 index 1b27bb30..aa783c4c --- a/packages/es-grammars/gen/es2018.grammar.ohm +++ b/packages/es-grammars/gen/es2018.grammar.ohm @@ -538,11 +538,11 @@ ES2018 { | MemberExpression Arguments -- alt1 UpdateExpression = - | LeftHandSideExpression -- alt1 | LeftHandSideExpression ~lineTerminator "++" -- alt2 | LeftHandSideExpression ~lineTerminator "--" -- alt3 | "++" UnaryExpression -- alt4 | "--" UnaryExpression -- alt5 + | LeftHandSideExpression -- alt1 UnaryExpression = | delete UnaryExpression -- alt2 diff --git a/packages/es-grammars/gen/es2019.grammar.ohm b/packages/es-grammars/gen/es2019.grammar.ohm old mode 100644 new mode 100755 index 0c447dd7..4d696e7e --- a/packages/es-grammars/gen/es2019.grammar.ohm +++ b/packages/es-grammars/gen/es2019.grammar.ohm @@ -542,11 +542,11 @@ ES2019 { | MemberExpression Arguments -- alt1 UpdateExpression = - | LeftHandSideExpression -- alt1 | LeftHandSideExpression ~lineTerminator "++" -- alt2 | LeftHandSideExpression ~lineTerminator "--" -- alt3 | "++" UnaryExpression -- alt4 | "--" UnaryExpression -- alt5 + | LeftHandSideExpression -- alt1 UnaryExpression = | delete UnaryExpression -- alt2 diff --git a/packages/es-grammars/gen/es2020.grammar.ohm b/packages/es-grammars/gen/es2020.grammar.ohm old mode 100644 new mode 100755 index e7d68996..5f2d0b0d --- a/packages/es-grammars/gen/es2020.grammar.ohm +++ b/packages/es-grammars/gen/es2020.grammar.ohm @@ -577,11 +577,11 @@ ES2020 { | MemberExpression Arguments -- alt1 UpdateExpression = - | LeftHandSideExpression -- alt1 | LeftHandSideExpression ~lineTerminator "++" -- alt2 | LeftHandSideExpression ~lineTerminator "--" -- alt3 | "++" UnaryExpression -- alt4 | "--" UnaryExpression -- alt5 + | LeftHandSideExpression -- alt1 UnaryExpression = | delete UnaryExpression -- alt2 diff --git a/packages/es-grammars/gen/es2021.grammar.ohm b/packages/es-grammars/gen/es2021.grammar.ohm old mode 100644 new mode 100755 index 16059eba..7a96e72f --- a/packages/es-grammars/gen/es2021.grammar.ohm +++ b/packages/es-grammars/gen/es2021.grammar.ohm @@ -187,7 +187,7 @@ ES2021 { decimalIntegerLiteral = | "0" -- alt1 - | nonZeroDigit -- alt2 + | nonZeroDigit decimalDigits? -- alt2 | nonZeroDigit numericLiteralSeparator? decimalDigits -- alt3 decimalDigits = @@ -586,11 +586,11 @@ ES2021 { | MemberExpression Arguments -- alt1 UpdateExpression = - | LeftHandSideExpression -- alt1 | LeftHandSideExpression ~lineTerminator "++" -- alt2 | LeftHandSideExpression ~lineTerminator "--" -- alt3 | "++" UnaryExpression -- alt4 | "--" UnaryExpression -- alt5 + | LeftHandSideExpression -- alt1 UnaryExpression = | delete UnaryExpression -- alt2 diff --git a/packages/es-grammars/spec/es2016/overrides.json b/packages/es-grammars/spec/es2016/overrides.json index fa148f86..947c72dc 100644 --- a/packages/es-grammars/spec/es2016/overrides.json +++ b/packages/es-grammars/spec/es2016/overrides.json @@ -58,6 +58,13 @@ "postlude": "\n | UpdateExpression -- alt1", "replacement": "" }, + { + "_comment_": " Move LeftHandSideExpression to the very end.", + "name": "UpdateExpression", + "pattern": " | LeftHandSideExpression -- alt1\n", + "postlude": "\n | LeftHandSideExpression -- alt1", + "replacement": "" + }, { "_comment_": " The first alternative is a subset of the second one, so flip the order.", "name": "ConditionalExpression", diff --git a/packages/es-grammars/spec/es2017/overrides.json b/packages/es-grammars/spec/es2017/overrides.json index 13991caa..c0e5d4c4 100644 --- a/packages/es-grammars/spec/es2017/overrides.json +++ b/packages/es-grammars/spec/es2017/overrides.json @@ -58,6 +58,13 @@ "postlude": "\n | UpdateExpression -- alt1", "replacement": "" }, + { + "_comment_": " Move LeftHandSideExpression to the very end.", + "name": "UpdateExpression", + "pattern": " | LeftHandSideExpression -- alt1\n", + "postlude": "\n | LeftHandSideExpression -- alt1", + "replacement": "" + }, { "_comment_": "The first alternative is a subset of the second one, so flip the order.", "name": "ConditionalExpression", diff --git a/packages/es-grammars/spec/es2018/overrides.json b/packages/es-grammars/spec/es2018/overrides.json index 80a5dd07..4099128c 100644 --- a/packages/es-grammars/spec/es2018/overrides.json +++ b/packages/es-grammars/spec/es2018/overrides.json @@ -58,6 +58,13 @@ "postlude": "\n | UpdateExpression -- alt1", "replacement": "" }, + { + "_comment_": " Move LeftHandSideExpression to the very end.", + "name": "UpdateExpression", + "pattern": " | LeftHandSideExpression -- alt1\n", + "postlude": "\n | LeftHandSideExpression -- alt1", + "replacement": "" + }, { "_comment_": "The first alternative is a subset of the second one, so flip the order.", "name": "ConditionalExpression", diff --git a/packages/es-grammars/spec/es2019/overrides.json b/packages/es-grammars/spec/es2019/overrides.json index 80a5dd07..4099128c 100644 --- a/packages/es-grammars/spec/es2019/overrides.json +++ b/packages/es-grammars/spec/es2019/overrides.json @@ -58,6 +58,13 @@ "postlude": "\n | UpdateExpression -- alt1", "replacement": "" }, + { + "_comment_": " Move LeftHandSideExpression to the very end.", + "name": "UpdateExpression", + "pattern": " | LeftHandSideExpression -- alt1\n", + "postlude": "\n | LeftHandSideExpression -- alt1", + "replacement": "" + }, { "_comment_": "The first alternative is a subset of the second one, so flip the order.", "name": "ConditionalExpression", diff --git a/packages/es-grammars/spec/es2020/overrides.json b/packages/es-grammars/spec/es2020/overrides.json index b7cec52d..d08df8b9 100644 --- a/packages/es-grammars/spec/es2020/overrides.json +++ b/packages/es-grammars/spec/es2020/overrides.json @@ -58,6 +58,13 @@ "postlude": "\n | UpdateExpression -- alt1", "replacement": "" }, + { + "_comment_": " Move LeftHandSideExpression to the very end.", + "name": "UpdateExpression", + "pattern": " | LeftHandSideExpression -- alt1\n", + "postlude": "\n | LeftHandSideExpression -- alt1", + "replacement": "" + }, { "_comment_": "The first alternative is a subset of the second one, so flip the order.", "name": "ConditionalExpression", diff --git a/packages/es-grammars/spec/es2021/overrides.json b/packages/es-grammars/spec/es2021/overrides.json index b7cec52d..55150c16 100644 --- a/packages/es-grammars/spec/es2021/overrides.json +++ b/packages/es-grammars/spec/es2021/overrides.json @@ -18,6 +18,11 @@ "pattern": "| \"*\" postAsteriskCommentChars?", "replacement": "| \"*\" ~\"/\" postAsteriskCommentChars?" }, + { + "name": "decimalIntegerLiteral", + "pattern": "| nonZeroDigit -- alt2", + "replacement": "| nonZeroDigit decimalDigits? -- alt2" + }, { "name": "LeftHandSideExpression", "pattern": "| NewExpression\n | CallExpression", @@ -58,6 +63,13 @@ "postlude": "\n | UpdateExpression -- alt1", "replacement": "" }, + { + "_comment_": " Move LeftHandSideExpression to the very end.", + "name": "UpdateExpression", + "pattern": " | LeftHandSideExpression -- alt1\n", + "postlude": "\n | LeftHandSideExpression -- alt1", + "replacement": "" + }, { "_comment_": "The first alternative is a subset of the second one, so flip the order.", "name": "ConditionalExpression",