Skip to content

Conversation

@FnControlOption
Copy link
Contributor

@FnControlOption FnControlOption commented Aug 13, 2021

Checklist:

  • All tests pass in CI.
  • There are sufficient tests for the new fix/feature.
  • Grammar rules have not been renamed unless absolutely necessary.
  • The conflicts section hasn't grown too much.
  • The parser size hasn't grown too much (check the value of STATE_COUNT in src/parser.c).

Closes #185 and closes #164

':',
field('value', $.pattern)
field('value', choice($.pattern, $.assignment_pattern))
),
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks about right to me.

@mjambon
Copy link
Contributor

mjambon commented Aug 13, 2021

Old and new tests are passing, grammar change is simple, I'm merging this. Thank you @FnControlOption!

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.

Incorrect parse error on destructuring assignment Parse error with object destructuring inside for loop initializer.

2 participants