summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-19 15:44:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-19 15:44:55 +0800
commit4d90c2dc34a1394668f7f5dc75cd5dfa87373767 (patch)
tree77e199b54067479bc3215d42595f35a6c0a4745b /script
parentcbcdd7e20745bb7c2d6cce9f1ea970c9d54d6910 (diff)
downloadlua-language-server-4d90c2dc34a1394668f7f5dc75cd5dfa87373767.zip
fix #607
Diffstat (limited to 'script')
-rw-r--r--script/core/signature.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/signature.lua b/script/core/signature.lua
index 76189fb7..26d9867c 100644
--- a/script/core/signature.lua
+++ b/script/core/signature.lua
@@ -49,6 +49,9 @@ local function makeOneSignature(source, oop, index)
: gsub('%b<>', function (str)
return ('_'):rep(#str)
end)
+ : gsub('%b()', function (str)
+ return ('_'):rep(#str)
+ end)
: gsub('[%[%]%(%)]', '_')
for start, finish in converted:gmatch '%s*()[^,]+()' do
i = i + 1