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.
|
1 reply
|
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 🤔 |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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!
All reactions