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

Rework word completion: 3 new parser functions #1526

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Jan 30, 2025

One step towards #1491

Fixes #1527

Some new parser functions are introduced that are better at reliably detecting word boundaries with multi-byte characters by not using iter functions to do this. These functions are also easier to use when editing the middle of a word. Words at start of document are parsed correctly

The plugin/completion-provider logic is essentially unaltered.
Some extra logic was required to adapt the results of the new functions to completing selections.

@jeremypw jeremypw changed the title Introduce 3 new parser functions, replace uses of one old function Rework word completion: 3 new parser functions Jan 30, 2025
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.

Word completion omits first word in document until refreshed
1 participant