diff options
author | fesily <fesil@foxmail.com> | 2024-01-17 15:00:54 +0800 |
---|---|---|
committer | fesily <fesil@foxmail.com> | 2024-01-17 15:00:54 +0800 |
commit | 1e51dd0617a9ae55703700550b6db211080a8c13 (patch) | |
tree | da8e68fa128b106a32f0ff28cc393f66f3ac381a /script/vm/sign.lua | |
parent | 4432dfea0fe8390be166b832a1ac416c8228296f (diff) | |
download | lua-language-server-1e51dd0617a9ae55703700550b6db211080a8c13.zip |
doc param support generic pattern
Diffstat (limited to 'script/vm/sign.lua')
-rw-r--r-- | script/vm/sign.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/sign.lua b/script/vm/sign.lua index 38cb2242..ddc8258f 100644 --- a/script/vm/sign.lua +++ b/script/vm/sign.lua @@ -53,7 +53,7 @@ function mt:resolve(uri, args) for n in node:eachObject() do if n.type == 'string' then ---@cast n parser.object - local type = vm.declareGlobal('type', n[1], guide.getUri(n)) + local type = vm.declareGlobal('type', object.pattern and object.pattern:format(n[1]) or n[1], guide.getUri(n)) resolved[key] = vm.createNode(type, resolved[key]) end end |