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

C-u d doesn't delete quotes properly when dealing with python-mode #177

Open
zadca123 opened this issue Aug 1, 2024 · 1 comment
Open

Comments

@zadca123
Copy link

zadca123 commented Aug 1, 2024

Hello, again problem with the xah-smart-delete

when pointer is at the end of the line
GROUP_NAME = "group_name"
converts to
ROUP_NAME = "group_name

@zadca123 zadca123 changed the title C-u d doesn't delete double quotes properly when dealing with python-mode C-u d doesn't delete quotes properly when dealing with python-mode Aug 1, 2024
@xahlee
Copy link
Owner

xahlee commented Jan 25, 2025

hard to fix and won't fix.
the problem is, if the command is based on syntax table, then there's lots problems in arbitrary major modes, such as the builtin python-mode. because they can arbitrary set syntax to chars.
especially prone to happen is quote for string. eg python has so many ways to quote.

a good fix is not relying on syntax table, but one needs to write a nested bracket parser...
maybe i'll do it down the road.

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

No branches or pull requests

2 participants