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

Fix references, rename ref -> reference and remove matchIdx from the AST... #61

Merged
merged 1 commit into from
Aug 30, 2014

Conversation

jviereck
Copy link
Owner

.... Closes #57

This turned out to be a regression from my commit 278aabb:

Remove the lastMatchIdx etc. Fixes #48.

This PR:

  1. fixes the above regression
  2. renames refreference in the AST
  3. removes the matchIdx from the AST for capture groups

The reason to remove the matchIdx is the same as for lastMatchIdx. The matchIdx can be seen as a "state" variable, that can be computed easily when walking over the tree if needed.

@mathiasbynens, @D10, can someone of you maybe review the patch? What do you think about point 3)?

@bnjmnt4n
Copy link
Contributor

LGTM, but @mathiasbynens should review it to.

@jviereck
Copy link
Owner Author

@D10 thanks for the feedback!

@mathiasbynens
Copy link
Collaborator

LGTM!

jviereck added a commit that referenced this pull request Aug 30, 2014
Fix references, rename ref -> reference and remove matchIdx from the AST...
@jviereck jviereck merged commit 1f7f849 into master Aug 30, 2014
@jviereck
Copy link
Owner Author

Thanks @mathiasbynens for the review!

@mathiasbynens
Copy link
Collaborator

Please release a new version with this fix so that regjsgen can be updated too. Thanks!

@jviereck
Copy link
Owner Author

@mathiasbynens
Copy link
Collaborator

👍

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.

3 participants