diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-02-22 17:13:58 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-02-22 17:13:58 +0800 |
commit | c05582295d16a9077c70f2f62c6948f6a58c89e2 (patch) | |
tree | 90ffb7388212bd7f065918c0eb37e82b00e2227f /script/parser | |
parent | 60a3a703d5c83a6b83593d41df8c07096c26c85c (diff) | |
download | lua-language-server-c05582295d16a9077c70f2f62c6948f6a58c89e2.zip |
increase limit
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/guide.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 6f09d119..eda85c97 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -261,7 +261,7 @@ end ---@param obj parser.guide.object ---@return parser.guide.object function m.getParentFunction(obj) - for _ = 1, 1000 do + for _ = 1, 10000 do obj = obj.parent if not obj then break @@ -278,7 +278,7 @@ end ---@param obj parser.guide.object ---@return parser.guide.object function m.getBlock(obj) - for _ = 1, 1000 do + for _ = 1, 10000 do if not obj then return nil end @@ -307,7 +307,7 @@ end ---@param obj parser.guide.object ---@return parser.guide.object function m.getParentBlock(obj) - for _ = 1, 1000 do + for _ = 1, 10000 do obj = obj.parent if not obj then return nil @@ -324,7 +324,7 @@ end ---@param obj parser.guide.object ---@return parser.guide.object function m.getBreakBlock(obj) - for _ = 1, 1000 do + for _ = 1, 10000 do obj = obj.parent if not obj then return nil @@ -344,7 +344,7 @@ end ---@param obj parser.guide.object ---@return parser.guide.object function m.getDocState(obj) - for _ = 1, 1000 do + for _ = 1, 10000 do local parent = obj.parent if not parent then return obj @@ -361,7 +361,7 @@ end ---@param obj parser.guide.object ---@return parser.guide.object function m.getParentType(obj, want) - for _ = 1, 1000 do + for _ = 1, 10000 do obj = obj.parent if not obj then return nil @@ -381,7 +381,7 @@ function m.getRoot(obj) if source._root then return source._root end - for _ = 1, 1000 do + for _ = 1, 10000 do if obj.type == 'main' then source._root = obj return obj @@ -450,7 +450,7 @@ end ---@param pos integer {comment = '可见位置'} function m.getLocal(block, name, pos) block = m.getBlock(block) - for _ = 1, 1000 do + for _ = 1, 10000 do if not block then return nil end @@ -502,7 +502,7 @@ end ---@param name string {comment = '标签名'} function m.getLabel(block, name) block = m.getBlock(block) - for _ = 1, 1000 do + for _ = 1, 10000 do if not block then return nil end |