diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-25 02:42:16 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-25 02:42:16 +0800 |
commit | 9a86f6bc46f630d8b7a4e691c9005776b8267697 (patch) | |
tree | 0a4effe8739de14d7adecf83fa7500d88926ee06 /script-beta/core/signature.lua | |
parent | 5967ee11659d3eb555d597c890c8443a44d7b9b1 (diff) | |
download | lua-language-server-9a86f6bc46f630d8b7a4e691c9005776b8267697.zip |
hover参数支持可选
Diffstat (limited to 'script-beta/core/signature.lua')
-rw-r--r-- | script-beta/core/signature.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/core/signature.lua b/script-beta/core/signature.lua index fcf3fb63..b45c9c25 100644 --- a/script-beta/core/signature.lua +++ b/script-beta/core/signature.lua @@ -36,7 +36,7 @@ local function makeOneSignature(source, oop, index) label = label:gsub('%s*->.+', '') local params = {} local i = 0 - for start, finish in label:gmatch '[%(%)%,]%s*().-()%s*%f[%(%)%,]' do + for start, finish in label:gmatch '[%(%)%,]%s*().-()%s*%f[%(%)%,%[%]]' do i = i + 1 params[i] = { label = {start, finish-1}, |