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

Hyphens in multi word expressions are operators instead of words

Open hangyav opened this issue 1 year ago • 1 comments

Hi,

It seems that hyphens are incorrectly parsed as operators instead of being part of the word (so they are also highlighted differently).

off-the-shelf

(source_file [0, 0] - [1, 0]
  (text [0, 0] - [0, 13]
    word: (word [0, 0] - [0, 3])
    word: (operator [0, 3] - [0, 4])
    word: (word [0, 4] - [0, 7])
    word: (operator [0, 7] - [0, 8])
    word: (word [0, 8] - [0, 13])))

hangyav avatar Feb 13 '23 06:02 hangyav