-
-
Notifications
You must be signed in to change notification settings - Fork 84
Chuck does not remove preceding space #485
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
Comments
Thanks for filing this one. We do need to make our space removal a touch more aggressive. The original implementation was too aggressive, and resulted in merged tokens, but I think we ended up pulling back a bit too far. The policy I was thinking is as follows:
Make sense? Cc/ @AndreasArvidsson |
One and two is already implemented. What is missing is actually to check the tokenizer if we can remove the white space between two tokens without them becoming single. It not as easy as just check for alphanumerics because we have many more cases where two tokens can become one if you remove the space. |
Yep that's what I was thinking too 👍 One other thought is that we may want to do the check a bit further down the pipeline, because today's space removal can end up merging tokens if eg you say "chuck past air" and your cursor is sitting at the end of a token. For example, in the string |
This already works today; was fixed by #1028 |
"chuck ice"
The text was updated successfully, but these errors were encountered: