gleam-lang / tree-sitter-gleam

🌳 A tree-sitter grammar for the Gleam programming language
Apache License 2.0
71 stars 13 forks source link

add unit tests for tags.scm #21

Closed the-mikedavis closed 2 years ago

the-mikedavis commented 2 years ago

tree-sitter v0.20.6 was just published that has a new testing mechanism for tags queries, so I've added some unit tests. I'm not very creative with the fixture, it was just some code I had locally. Are there any edge cases we want to cover? Maybe we should add some for the module+function vs. record+field stuff?

the-mikedavis commented 2 years ago

Hmm well now I wish there was a way to specify that something is not highlighted. It would be nice to have that for the record+member lines. I think we'll need to settle for only testing the module+function part for now.