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

Tree-sitter running fixes (October) #789

Conversation

savetheclocktower
Copy link
Contributor

Two earlier fixes got their own PRs, so this PR has a good chance of being quite small this month.

Built a new `tree-sitter-cpp` parser from latest master to fix a parsing error with variable assignment. Also added/tweaked scopes for some specific scenarios.
…and for the `class` keyword, whose omission is a strange oversight.
When a region of the buffer changes, we want to consider all injections that touch that range, even if they aren't fully enclosed by the range. So we need to be able to grow the original range when searching for injection layers.

This fixes a bug in which the candidate range could inadvertently _shrink_.
@savetheclocktower
Copy link
Contributor Author

I once again forgot to make this a draft PR when I opened it, but this is ready for review and needs to land in time for the 1.111 release.

@savetheclocktower savetheclocktower merged commit 3757358 into pulsar-edit:master Nov 14, 2023
100 checks passed
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