diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-05-11 11:24:11 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-05-11 11:24:11 +0800 |
commit | 0b8dff1a4f22c27bea94fe7ae60c2b58a94e7245 (patch) | |
tree | e224e0813b1b37a442ed3a000fbcb171b0d45ab3 /script | |
parent | 1d740af3c059d2972ea4a66242dfb6d91681e872 (diff) | |
download | lua-language-server-0b8dff1a4f22c27bea94fe7ae60c2b58a94e7245.zip |
fix
Diffstat (limited to 'script')
-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 3ab9f6a1..ae8e3f34 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1012,7 +1012,7 @@ local function trimTailComment(text) end if comment:find '^%s*[\'"[]' then local result = grammar(nil, comment:gsub('^%s+', ''), 'string') - if result then + if result and result[1] then comment = result[1][1] end end |