Replies: 2 comments 2 replies
-
There is only one comment parser https://github.com/stsewd/tree-sitter-comment that I know of which can only highlight the initial tag i.e., Also, just to throw info around, technically both emmylua and lua-language-server (v3 ownward) annotations are not compatible with each other.
|
Beta Was this translation helpful? Give feedback.
-
On second thought, maybe any parsing for lua comments like that should just go in https://github.com/tjdevries/tree-sitter-lua ? Might be a better play than just making a whole new parser 🤔 |
Beta Was this translation helpful? Give feedback.
-
Hey, I noticed this when opening github's
codespaces
.i.e there is proper highlighting for emmyLua docs.
I didn't know where else to ask this so I thought I'd come here, do you know of an existing emmyLua treesitter grammar around? And most importantly (for me) do you happen to know of a way to use it with Neovim?
If there isn't a treesitter grammar for it, maybe that's something we could collaborate on, I have added a feature to the typescript treesitter parser (literally one) and it was kind of interesting to work on, so adding a whole new grammar should be a potentially even more interesting project if it doesn't already exist.
Anywho, if you read this, thanks for your time! If you don't, still thanks for the work on lemmy-help.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions