tree-sitter-luadoc icon indicating copy to clipboard operation
tree-sitter-luadoc copied to clipboard

fix: include `-` as identifier

Open phanen opened this issue 7 months ago • 1 comments

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).

phanen avatar May 03 '25 12:05 phanen

I think you can see: https://github.com/EmmyLuaLs/tree-sitter-emmyluadoc

CppCXY avatar Oct 30 '25 08:10 CppCXY