summaryrefslogtreecommitdiff
path: root/server/src/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-24 21:32:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-24 21:32:25 +0800
commit2aebb7c0298506a538814008d09a4545d97e1098 (patch)
tree3297c24d7b2aaac370d3e258c82e1c07c44c8018 /server/src/parser
parentfb736f9479b66838da46fc4c002360a1a90761a4 (diff)
downloadlua-language-server-2aebb7c0298506a538814008d09a4545d97e1098.zip
更新语法解析
Diffstat (limited to 'server/src/parser')
-rw-r--r--server/src/parser/ast.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua
index db0dabd1..48d9eb3b 100644
--- a/server/src/parser/ast.lua
+++ b/server/src/parser/ast.lua
@@ -751,15 +751,15 @@ local Defs = {
local labels = State.Label[#State.Label]
local str = name[1]
if labels[str] then
- pushError {
- type = 'REDEFINE_LABEL',
- start = name.start,
- finish = name.finish,
- info = {
- label = str,
- related = {labels[str].start, labels[str].finish},
- }
- }
+ --pushError {
+ -- type = 'REDEFINE_LABEL',
+ -- start = name.start,
+ -- finish = name.finish,
+ -- info = {
+ -- label = str,
+ -- related = {labels[str].start, labels[str].finish},
+ -- }
+ --}
else
labels[str] = name
end