tjdevries / tree-sitter-lua

Neovim Tree Sitter Lua Grammar & Library
116 stars 12 forks source link

Support multiple tags #41

Closed echasnovski closed 3 years ago

echasnovski commented 3 years ago

This change allows having multiple tags, like ---@tag your_module another_name. It can be useful if there are more than one preferred ways to address to section.

I was set to add tests but couldn't decide what is the preferred place for them. I end up using @tag alongside @brief, but there are no current tests for tags there. So where can I put tests?

Conni2461 commented 3 years ago

Yeah seems like a good thing we can do. Thanks :)

For tests you can just make a new file tag_spec.lua here. Test system will automatically pick it up. And just make a describe("tag", function() ..... end) block similar to brief and the other spec files. I think 2, 3 it test should be sufficient.

Again thank you :)