tree-sitter-latex
tree-sitter-latex copied to clipboard
Commas are not represented as a word node
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:
Is that a bug or intentional for some reason? Thanks a lot!