summaryrefslogtreecommitdiff
path: root/script-beta/parser/compile.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-05-29 14:39:39 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-05-29 14:39:39 +0800
commit532e77ce9965c7aebd02c906297990ad48a19449 (patch)
tree7f3b49431b7d4c6d60f9b7713ce64e5cf289c4ae /script-beta/parser/compile.lua
parented00357938749970aede0161944ce76c1c6bb983 (diff)
downloadlua-language-server-532e77ce9965c7aebd02c906297990ad48a19449.zip
更新 parser
Diffstat (limited to 'script-beta/parser/compile.lua')
-rw-r--r--script-beta/parser/compile.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script-beta/parser/compile.lua b/script-beta/parser/compile.lua
index bcd9ecc8..33ecfde0 100644
--- a/script-beta/parser/compile.lua
+++ b/script-beta/parser/compile.lua
@@ -463,6 +463,7 @@ local function compileGoTo(obj)
label.ref = {}
end
label.ref[#label.ref+1] = obj
+ obj.node = label
-- 如果有局部变量在 goto 与 label 之间声明,
-- 并在 label 之后使用,则算作语法错误