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

\r\n is not handled correctly #29

Open
Decodetalkers opened this issue Oct 10, 2024 · 1 comment
Open

\r\n is not handled correctly #29

Decodetalkers opened this issue Oct 10, 2024 · 1 comment

Comments

@Decodetalkers
Copy link
Contributor

in my neocmakelsp, I always need to replace the \r\n with \n, to fix the format problem. because I use the lines() function in rust, to split the text, and rust handle the \r\n correctly, there always be:

tree-sitter tell me that the range is 1 to 10, but what I have is 1 to 9. because by treesitter, the 10th char is \t, this should be correctly handled

seems it is the problem of treesitter? I do not know

@Decodetalkers
Copy link
Contributor Author

Emm, by the way, do you think a new tag is needed?

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

1 participant