Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow trailing comma in enum value lists, per spec #33

Merged
merged 1 commit into from
Jun 1, 2015

Conversation

motiz88
Copy link
Contributor

@motiz88 motiz88 commented May 29, 2015

@jyasskin
Copy link
Member

jyasskin commented Jun 1, 2015

Yep, https://heycam.github.io/webidl/#idl-enums allows trailing commas when EnumValueListString expands to ε.

[19]    Enum    → "enum" identifier "{" EnumValueList "}" ";"
[20]    EnumValueList   → string EnumValueListComma
[21]    EnumValueListComma  → "," EnumValueListString 
                            | ε
[22]    EnumValueListString → string EnumValueListComma 
                            | ε

jyasskin added a commit that referenced this pull request Jun 1, 2015
@jyasskin jyasskin merged commit 562c170 into w3c:develop Jun 1, 2015
@motiz88 motiz88 deleted the enum-trailing-comma branch June 11, 2015 09:40
@jyasskin jyasskin mentioned this pull request Jul 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants