tree-sitter-luadoc
tree-sitter-luadoc copied to clipboard
fix: include `-` as identifier
Parser only match "fzf" as a type here rather than "fzf-lua.xx".
---@class fzf-lua.foo
---@field bar
Since lua-language-server's semantic token highlighting work properly, if we can include - as a identifier here?
The disadvantage is that it will also highlight -baz in @field bar-baz (which seems unexpected).
Or separate type_identifier (e.g. only for @class/@type/@as/@alias/...) from identifier, but it seems too overkill (which need to tweak some test and upstream query in nvim-treesitter repo).
I think you can see: https://github.com/EmmyLuaLs/tree-sitter-emmyluadoc