Skip to content

Conversation

@kevinsawicki
Copy link
Contributor

@kevinsawicki kevinsawicki commented Jan 8, 2019

This pull request allows trailing commas in formal parameters.

It also exposes a _formal_paramter rule that will be overridden in typescript since that grammar currently does not generate against the latest version of the JS grammar.

This was paired on with @tclem and @maxbrunsfeld

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Trailing_commas#Trailing_commas_in_functions

Copy link
Contributor

@tclem tclem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks for adding those tests too.

Copy link
Contributor

@maxbrunsfeld maxbrunsfeld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@kevinsawicki kevinsawicki merged commit 08a8a0c into master Jan 8, 2019
@kevinsawicki kevinsawicki deleted the formal-parameters-tweak branch January 8, 2019 19:58
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.

4 participants