diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-02-23 17:56:26 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-02-23 17:56:26 +0800 |
commit | 3de3402c82c4ea46f69d0a96bea7faf1ad68ea06 (patch) | |
tree | 32827d7d1e7c0b1ecd5386cd638498176d9aa866 /script/parser/guide.lua | |
parent | f8e2955268708728a1f83743d0b2000d2e089539 (diff) | |
parent | b37ebceffe695defd7e7976e653ce127618614c0 (diff) | |
download | lua-language-server-3de3402c82c4ea46f69d0a96bea7faf1ad68ea06.zip |
Merge commit 'b37ebceffe695defd7e7976e653ce127618614c0' into 3.0
Diffstat (limited to 'script/parser/guide.lua')
-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 638c08bf..10b2badb 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -256,7 +256,7 @@ end ---@param obj parser.object ---@return parser.object function m.getParentFunction(obj) - for _ = 1, 1000 do + for _ = 1, 10000 do obj = obj.parent if not obj then break @@ -273,7 +273,7 @@ end ---@param obj parser.object ---@return parser.object function m.getBlock(obj) - for _ = 1, 1000 do + for _ = 1, 10000 do if not obj then return nil end @@ -302,7 +302,7 @@ end ---@param obj parser.object ---@return parser.object function m.getParentBlock(obj) - for _ = 1, 1000 do + for _ = 1, 10000 do obj = obj.parent if not obj then return nil @@ -319,7 +319,7 @@ end ---@param obj parser.object ---@return parser.object function m.getBreakBlock(obj) - for _ = 1, 1000 do + for _ = 1, 10000 do obj = obj.parent if not obj then return nil @@ -339,7 +339,7 @@ end ---@param obj parser.object ---@return parser.object function m.getDocState(obj) - for _ = 1, 1000 do + for _ = 1, 10000 do local parent = obj.parent if not parent then return obj @@ -356,7 +356,7 @@ end ---@param obj parser.object ---@return parser.object function m.getParentType(obj, want) - for _ = 1, 1000 do + for _ = 1, 10000 do obj = obj.parent if not obj then return nil @@ -376,7 +376,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 @@ -445,7 +445,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 @@ -497,7 +497,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 |