summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-22 15:54:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-22 15:54:44 +0800
commitb7f7789e46ab8c67d25704be696a1523762b1d80 (patch)
treebfbe4435180d2304487d28655c3fbbf987793714 /script/parser/guide.lua
parenta11c1e47a1bbe1004333143431f901ab8ecde4dd (diff)
downloadlua-language-server-b7f7789e46ab8c67d25704be696a1523762b1d80.zip
update
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r--script/parser/guide.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 4a0ca21f..fb5f3db4 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -725,10 +725,11 @@ end
--- 获取指定的 special
function m.eachSpecialOf(ast, name, callback)
local root = m.getRoot(ast)
- if not root.specials then
+ local state = root.state
+ if not state.specials then
return
end
- local specials = root.specials[name]
+ local specials = state.specials[name]
if not specials then
return
end