diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-05-12 15:05:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-05-12 15:05:48 +0800 |
commit | 5f074dc6a601edd730b457f6004cffacfdb6d66a (patch) | |
tree | 25bb2207bc7f1b21dadff2446aaf1cac82814431 /script/parser | |
parent | 690aadefc66e447b3f3205882c1fbcc8df987bda (diff) | |
parent | 8237a3cf5bb4005e1a9a0268c614abdd6a1f34d0 (diff) | |
download | lua-language-server-5f074dc6a601edd730b457f6004cffacfdb6d66a.zip |
Merge remote-tracking branch 'origin/master' into 2.0.0
Diffstat (limited to 'script/parser')
-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 0edf5371..5f70a9e5 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1003,7 +1003,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 |