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 commas in optionaValues literal #91

Open
paul-bjorkstrand opened this issue Sep 11, 2020 · 0 comments
Open

Allow trailing commas in optionaValues literal #91

paul-bjorkstrand opened this issue Sep 11, 2020 · 0 comments

Comments

@paul-bjorkstrand
Copy link

It would be nice to be able to leave trailing commas in a optionaValues literal format. I'm not sure the best way to change the grammar, but a possible idea could be:

optionValues = exprNode
             | '[' , valueList [, ','] , ']' ;

This may have a conflict with valueList since it also contains commas, but I think it will work fine, since when in valueList all infix commas will be consumed, leaving just the trailing comma to be optionally consumed by optionValues

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

No branches or pull requests

1 participant