summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-03-04 17:31:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-03-04 17:31:27 +0800
commit399c008ba189fe22716d46d2974de1569b1d39e8 (patch)
tree7ba2d3b7c4f5099a8fe5ea5a1e5c68e0a7861485 /script/parser
parent171ed306f84850be46620145358dcfdf37387de2 (diff)
downloadlua-language-server-399c008ba189fe22716d46d2974de1569b1d39e8.zip
update
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua33
1 files changed, 19 insertions, 14 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 10b2badb..730a099d 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -809,20 +809,25 @@ function m.getLineRange(state, row)
end
local isSetMap = {
- ['setglobal'] = true,
- ['local'] = true,
- ['setlocal'] = true,
- ['setfield'] = true,
- ['setmethod'] = true,
- ['setindex'] = true,
- ['tablefield'] = true,
- ['tableindex'] = true,
- ['tableexp'] = true,
- ['doc.class.name'] = true,
- ['doc.alias.name'] = true,
- ['doc.field.name'] = true,
- ['doc.field'] = true,
- ['doc.type.field'] = true,
+ ['setglobal'] = true,
+ ['local'] = true,
+ ['setlocal'] = true,
+ ['setfield'] = true,
+ ['setmethod'] = true,
+ ['setindex'] = true,
+ ['tablefield'] = true,
+ ['tableindex'] = true,
+ ['tableexp'] = true,
+ ['label'] = true,
+ ['doc.class'] = true,
+ ['doc.alias'] = true,
+ ['doc.field'] = true,
+ ['doc.type.function'] = true,
+ ['doc.type.table'] = true,
+ ['doc.class.name'] = true,
+ ['doc.alias.name'] = true,
+ ['doc.field.name'] = true,
+ ['doc.type.field'] = true,
}
function m.isSet(source)
local tp = source.type