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

Check ancestors for every #227

Merged
merged 3 commits into from
Aug 13, 2021
Merged

Check ancestors for every #227

merged 3 commits into from
Aug 13, 2021

Conversation

AndreasArvidsson
Copy link
Member

@AndreasArvidsson AndreasArvidsson commented Aug 13, 2021

fixes #220

Added a few tests

Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

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

Overall looks good with a few comments. Also might add one test with nesting. Eg foo(bar(baz, bongo), bazman)

Comment on lines +28 to +35
- anchor: {line: 1, character: 4}
active: {line: 1, character: 17}
- anchor: {line: 2, character: 4}
active: {line: 2, character: 17}
- anchor: {line: 1, character: 4}
active: {line: 1, character: 17}
- anchor: {line: 2, character: 4}
active: {line: 2, character: 17}
Copy link
Member

Choose a reason for hiding this comment

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

Is this really what we want? Appears selections are duplicated

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, but has actually nothing to do with this pr. transformSelection/getNodeMatcher gets called for every selection. But might be a good idea to actually filter out duplicate selections at the end of the pipeline. You should probably put that on the task list for the new grammar.

src/languages/index.ts Outdated Show resolved Hide resolved
@pokey pokey merged commit 3344598 into master Aug 13, 2021
@pokey pokey deleted the every branch August 13, 2021 21:30
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.

"take every key" and "take every value" are broken
2 participants