uyha / tree-sitter-cmake

A Tree-sitter parser for CMake
MIT License
43 stars 10 forks source link

`\r\n` is not handled correctly #29

Open Decodetalkers opened 1 month ago

Decodetalkers commented 1 month ago

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 commented 1 month ago

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