From bfb576d3eba9f12bb582a9f7e942c5eac387fe2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 17 Oct 2022 16:38:44 +0800 Subject: use `state` instead of `uri` for converter The state may have changed when responding, so we need to use the state when requesting. Try not to get the state on the spot. --- script/parser/compile.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'script/parser') diff --git a/script/parser/compile.lua b/script/parser/compile.lua index 45678976..12d80f7e 100644 --- a/script/parser/compile.lua +++ b/script/parser/compile.lua @@ -3818,6 +3818,7 @@ local function initState(lua, version, options) Index = 1 ---@class parser.state ---@field uri uri + ---@field lines integer[] local state = { version = version, lua = lua, -- cgit v1.2.3