diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-19 15:44:55 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-19 15:44:55 +0800 |
commit | 4d90c2dc34a1394668f7f5dc75cd5dfa87373767 (patch) | |
tree | 77e199b54067479bc3215d42595f35a6c0a4745b /script | |
parent | cbcdd7e20745bb7c2d6cce9f1ea970c9d54d6910 (diff) | |
download | lua-language-server-4d90c2dc34a1394668f7f5dc75cd5dfa87373767.zip |
fix #607
Diffstat (limited to 'script')
-rw-r--r-- | script/core/signature.lua | 3 |
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 |