Skip to content

Consider supporting trailing commas within a list #114

@michael-projectx

Description

@michael-projectx

Sometimes it's convenient to be able to comment out the last line in a list, which leads to parse errors due to the trailing comma. For example:

foo = [
  "bar",
  "baz",
  "buz"
]

Is valid, but if the last line is commented out, e.g.:

foo = [
  "bar",
  "baz",
  # "buz"
]

Then a parse error occurs due to the trailing comma.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions