summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-19 17:31:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-19 17:31:16 +0800
commit3103b678842d530e8d4cf81f4335fd210dd3114d (patch)
tree7a1196003d618e7e0b42dcab84e42f13ed18a99b /script
parenta29304a6740f6d8953846830f68728ab9c60719b (diff)
downloadlua-language-server-3103b678842d530e8d4cf81f4335fd210dd3114d.zip
check nil
Diffstat (limited to 'script')
-rw-r--r--script/parser/luadoc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index 10a0b4d7..aeef1a37 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -643,7 +643,7 @@ function parseType(parent)
return false
end
local line = Lines[row + i + 1]
- if line.finish < nextComm.start then
+ if not line or line.finish < nextComm.start then
return false
end
if nextComm.text:sub(1, 2) == '-@' then