connorlay / tree-sitter-eex

EEx grammar for Tree-sitter
9 stars 3 forks source link

add highlight and injection queries #7

Closed the-mikedavis closed 2 years ago

the-mikedavis commented 2 years ago

There's some odd behavior with the tree-sitter-cli highlight tests, so the highlight test file is pretty small. I think the cli thinks it should be able to test the %> close token of a comment which prevents you from testing multiple highlights on the same line.

Some examples using 'tree-sitter highlight'... ![eex-highlight](https://user-images.githubusercontent.com/21230295/148828312-af49b0fd-4d8c-4592-ba3b-63ab98426d86.png) ![eex-highlight-2](https://user-images.githubusercontent.com/21230295/148828361-19ed00c5-4d47-44d3-b09c-cb02d4be4538.png)