diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-18 18:03:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-18 18:03:57 +0800 |
commit | 9a560f542311cb5ad5cc82cda8aa526f96f25996 (patch) | |
tree | 41c8f7b70931daff2954b52181976c4adb649262 /script/parser | |
parent | c3ce2f6b7d8da3d992bdbeb808db9ee89a63665b (diff) | |
download | lua-language-server-9a560f542311cb5ad5cc82cda8aa526f96f25996.zip |
some fixs
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/guide.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 10668968..fac436eb 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -179,6 +179,9 @@ function m.getBlock(obj) if blockTypes[tp] then return obj end + if obj == obj.parent then + error('obj == obj.parent?', obj.type) + end obj = obj.parent end error('guide.getBlock overstack') |