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

feat: prefer to select the previous token when cursor is before a marker #1175

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

Myriad-Dreamin
Copy link
Owner

@Myriad-Dreamin Myriad-Dreamin commented Jan 15, 2025

When a cursor is before a marker and after an identifier, the matcher will prefer to match the identifier instead of the marker.

For example, the following bars select the identifier:

#f(|xx)
#f(x|x)
#f(xx|)

@Myriad-Dreamin Myriad-Dreamin linked an issue Jan 15, 2025 that may be closed by this pull request
@Myriad-Dreamin Myriad-Dreamin merged commit faf807e into main Jan 15, 2025
16 checks passed
@Myriad-Dreamin Myriad-Dreamin deleted the rename-arg2 branch January 15, 2025 06:33
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.

Rename does not work in some edge cases
1 participant