diff options
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r-- | script/parser/guide.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 3f68ccd2..7a9cb875 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -478,7 +478,9 @@ function m.getLocal(source, name, pos) if not block then return nil end - if block.start <= pos and block.finish >= pos then + if block.start <= pos + and block.finish >= pos + and blockTypes[block.type] then break end block = block.parent |