mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
docs(luacats): support backtick captured generic type
Problem: While LuaCATS's generics system are still considered WIP by luals, they currently support type captured generics. See "Capture with Backtick" example: https://luals.github.io/wiki/annotations/#generic Solution: Add support for it in the LuaCATS grammar
This commit is contained in:

committed by
Lewis Russell

parent
c3c673cdec
commit
93940af1d4
@@ -152,4 +152,11 @@ describe('luacats grammar', function()
|
||||
name = '[1]',
|
||||
type = 'integer',
|
||||
})
|
||||
|
||||
test('@param type `T` this is a generic type', {
|
||||
desc = 'this is a generic type',
|
||||
kind = 'param',
|
||||
name = 'type',
|
||||
type = '`T`',
|
||||
})
|
||||
end)
|
||||
|
Reference in New Issue
Block a user