-
Notifications
You must be signed in to change notification settings - Fork 5
Unicode #5
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
Conversation
|
Doing the conversion only if necessary sounds like a great idea 👍 |
|
Hi :D It would be awesome if you can get it ready soon-ish, I'd love if luasnip immediately handles unicode correctly. |
|
I think I does work correctly, but I don't have a good idea on what to test yet. There are some lists like https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt and https://www.cl.cam.ac.uk/~mgk25/ucs/examples/quickbrown.txt. I would also like some malformed utf-8. This is arguably more important than being correct because a crash here will crash neovim. |
|
Good point! I guess quickjs's applying a regex to unicode is well tested, so there would need to be tests for transforming utf8 to utf16 (and back)? |
2951999 to
1ea5a0f
Compare
|
@L3MON4D3 Ok, feeding random bytes into |
|
An error sounds appropriate 👍 |
|
I went with returning For the crashing, it looks like |
|
Nice, that sounds good |
|
No, only |
Okay, that's good I guess :D
Niiice, TY for getting it done this quickly ❤️ |
Notes:
Todo: