Skip to content

Conversation

phanen
Copy link

@phanen phanen commented May 3, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant