Skip to content

tests: add tree-sitter highlight to catch invalid node type#137

Open
katrinafyi wants to merge 1 commit intomainfrom
ts-highlight-check
Open

tests: add tree-sitter highlight to catch invalid node type#137
katrinafyi wants to merge 1 commit intomainfrom
ts-highlight-check

Conversation

@katrinafyi
Copy link
Copy Markdown
Collaborator

if tree-sitter is available, it will raise an error if the highlights file has outdated node references

Error in query file ./queries/highlights.scm

Caused by:
    Query error at 93:2. Invalid node type blah

tree-sitter tests still don't run in CI, but it means that if someone is working on the tree-sitter, they'll probably be able to see this error.

In future, this should prevent #134

if tree-sitter is available, it will raise an error if the highlights
file has outdated node references
```
Error in query file ./queries/highlights.scm

Caused by:
    Query error at 93:2. Invalid node type blah
```
tree-sitter tests still don't run in CI, but it means that if someone
is working on the tree-sitter, they'll probably be able to see this
error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant