diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-19 17:31:16 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-19 17:31:16 +0800 |
commit | 3103b678842d530e8d4cf81f4335fd210dd3114d (patch) | |
tree | 7a1196003d618e7e0b42dcab84e42f13ed18a99b | |
parent | a29304a6740f6d8953846830f68728ab9c60719b (diff) | |
download | lua-language-server-3103b678842d530e8d4cf81f4335fd210dd3114d.zip |
check nil
-rw-r--r-- | script/parser/luadoc.lua | 2 |
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 |