Skip to content

Split treesitter matches at newlines instead of whitespace #386

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

micampe
Copy link

@micampe micampe commented Apr 19, 2025

I believe this was the intention of the original change in (#217): there is some mixing of terminology in the review discussion, but I believe the intention was to extract the first line in the match, as suggested in the linked discussion, and not the string up to the first whitespace.

I believe this was the intention of the original change in (andymass#217): there
is some mixing of terminology in the review discussion, but I believe
the intention was to extract the first line in the match, as suggested
in the linked discussion, and not the string up to the first whitespace.
@micampe
Copy link
Author

micampe commented Apr 19, 2025

Note that this is not just a nitpick about correctness, I have written matchup queries for Fennel (a lisp) that aren't highlighted correctly because of this bug (I plan to submit the queries after having used them a bit for testing).

Before:
image

After:
image

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.

1 participant