tree-sitter-grammars / tree-sitter-csv

csv grammar for tree-sitter
MIT License
9 stars 2 forks source link

bug: missing highlights.scm #7

Open viperML opened 2 months ago

viperML commented 2 months ago

Did you check existing issues?

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

No response

Describe the bug

All the highlights.scm files don't exist, I guess they were moved: https://github.com/tree-sitter-grammars/tree-sitter-csv/blob/7eb7297823605392d2bbcc4c09b1cd18d6fa9529/package.json#L36-L70

Steps To Reproduce/Bad Parse Tree

-

Expected Behavior/Parse Tree

-

Repro

No response

viperML commented 2 months ago

According to the documentation, path is used to prefix where to look for src, but it is not used to prefix the queries.

As an example, the typescript grammar has a path but the queries use a path relative to the repository root, not relative to path: https://github.com/tree-sitter/tree-sitter-typescript/blob/198d03553f43a45b92ac5d0ee167db3fec6a6fd6/package.json#L91