summaryrefslogtreecommitdiff
path: root/script/parser/ast.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-17 11:40:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-17 11:40:13 +0800
commitf88826b4b752fcaa06c6a9242211659f86b6034d (patch)
tree92e63049a338463a1b7f661b1555780e00fc6d52 /script/parser/ast.lua
parentd871a27c0ddfa01b11e0dc2ef0270699217af14a (diff)
downloadlua-language-server-f88826b4b752fcaa06c6a9242211659f86b6034d.zip
update parser
Diffstat (limited to 'script/parser/ast.lua')
-rw-r--r--script/parser/ast.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/parser/ast.lua b/script/parser/ast.lua
index 2fdb99ef..9f5d853f 100644
--- a/script/parser/ast.lua
+++ b/script/parser/ast.lua
@@ -1197,7 +1197,7 @@ local Defs = {
return
end
if not name then
- return nil
+ return
end
name.type = 'label'
return name
@@ -1216,7 +1216,7 @@ local Defs = {
return
end
if not name then
- return nil
+ return
end
name.type = 'goto'
return name