tree-sitter-latex icon indicating copy to clipboard operation
tree-sitter-latex copied to clipboard

Commas are not represented as a word node

Open hangyav opened this issue 1 year ago • 2 comments

Hi,

Thanks for the awesome tool. I'm working on a project where I'd like to extract the text content of latex files using TS (https://github.com/hangyav/textLSP). I noticed that commas aren't part of the preceding word's node but instead only part of the parent node, in contrast to how dots behave. Here's an example:

asciicast

Is that a bug or intentional for some reason? Thanks a lot!

hangyav avatar Feb 12 '23 12:02 hangyav