From 1e51dd0617a9ae55703700550b6db211080a8c13 Mon Sep 17 00:00:00 2001 From: fesily Date: Wed, 17 Jan 2024 15:00:54 +0800 Subject: doc param support generic pattern --- script/vm/sign.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/vm/sign.lua') 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 -- cgit v1.2.3