Skip to content

Allow trailing commas in optionaValues literal #91

Description

@paul-bjorkstrand

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions