diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-22 15:54:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-22 15:54:44 +0800 |
commit | b7f7789e46ab8c67d25704be696a1523762b1d80 (patch) | |
tree | bfbe4435180d2304487d28655c3fbbf987793714 /script/parser/guide.lua | |
parent | a11c1e47a1bbe1004333143431f901ab8ecde4dd (diff) | |
download | lua-language-server-b7f7789e46ab8c67d25704be696a1523762b1d80.zip |
update
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r-- | script/parser/guide.lua | 5 |
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 |