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

Trailing comma support for map, message literals #396

Closed
2 of 3 tasks
TristonianJones opened this issue Oct 16, 2020 · 0 comments · Fixed by #416
Closed
2 of 3 tasks

Trailing comma support for map, message literals #396

TristonianJones opened this issue Oct 16, 2020 · 0 comments · Fixed by #416
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@TristonianJones
Copy link
Collaborator

Feature request checklist

  • There are no issues that match the desired change
  • The change is large enough it can't be addressed with a simple Pull Request
  • If this is a bug, please file a Bug Report.

Change
List literals currently support a trailing comma; however, map and message literals do not. To make the language more consistent and easier to use with copy+paste for configuration objects, add support for a trailing comma to type construction literals.

Example

The following map construction should be supported:

{
   'a': 1,
   'b': 2,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant