summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-14 16:59:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-14 16:59:55 +0800
commit2a29458c86628a2af20da4ebeb39a8f81d4ea53a (patch)
tree92d337224429ab516ec2271b117319c5d5916452 /script/parser/guide.lua
parent321fc84cabff0252f25e94df14746b8e9cb3d190 (diff)
downloadlua-language-server-2a29458c86628a2af20da4ebeb39a8f81d4ea53a.zip
update parser
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r--script/parser/guide.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 6dcfbf95..e5e9ead1 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -85,6 +85,7 @@ local breakBlockTypes = {
['in'] = true,
['loop'] = true,
['repeat'] = true,
+ ['for'] = true,
}
local childMap = {
@@ -722,9 +723,6 @@ function m.eachSource(ast, callback)
end
--- 获取指定的 special
----@param ast parser.guide.object
----@param name string
----@param callback fun(source: parser.guide.object)
function m.eachSpecialOf(ast, name, callback)
local root = m.getRoot(ast)
if not root.specials then