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

Scanner skip changes #95

Merged
merged 2 commits into from
Jan 9, 2025
Merged

Scanner skip changes #95

merged 2 commits into from
Jan 9, 2025

Conversation

keidax
Copy link
Collaborator

@keidax keidax commented Jan 8, 2025

For several tokens, advance(skip=true) could be called after mark_end. This sets the start of the token past the end, so it was returned as zero-width. Apparently syntax highlighting doesn't work well with zero-width tokens.

I'm also adding the first set of highlighting tests, using the neovim queries for now.

keidax added 2 commits January 8, 2025 18:51
For several tokens, `advance(skip=true)` could be called after
`mark_end`. This sets the start of the token past the end, so it was
returned as zero-width. Apparently syntax highlighting doesn't work well
with zero-width tokens.
@keidax keidax force-pushed the keidax/scanner-skip-changes branch from cbafa41 to 57476f0 Compare January 8, 2025 23:51
@nobodywasishere nobodywasishere merged commit cdb5139 into main Jan 9, 2025
7 checks passed
@nobodywasishere nobodywasishere deleted the keidax/scanner-skip-changes branch January 9, 2025 02:15
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.

2 participants