Skip to content

Commit

Permalink
Editorial: eliminate accidental ambiguity in Punctuator
Browse files Browse the repository at this point in the history
PR tc39#1646 introduced an ambiguity to the lexical grammar:
Punctuator derives OtherPunctuator in two different ways --
directly, and indirectly via OptionalChainingPunctuator.

It doesn't make sense for OptionalChainingPunctuator to derive OtherPunctuator,
so I've eliminated that alternative.
  • Loading branch information
jmdyck committed Feb 5, 2020
1 parent 0410ab2 commit f5e7449
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -11100,7 +11100,6 @@ <h2>Syntax</h2>
<emu-grammar type="definition">
OptionalChainingPunctuator ::
`?.` [lookahead &lt;! DecimalDigit]
OtherPunctuator

OtherPunctuator :: one of
`{` `(` `)` `[` `]`
Expand Down

0 comments on commit f5e7449

Please sign in to comment.