summaryrefslogtreecommitdiff
path: root/script-beta/core/signature.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-25 02:42:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-25 02:42:16 +0800
commit9a86f6bc46f630d8b7a4e691c9005776b8267697 (patch)
tree0a4effe8739de14d7adecf83fa7500d88926ee06 /script-beta/core/signature.lua
parent5967ee11659d3eb555d597c890c8443a44d7b9b1 (diff)
downloadlua-language-server-9a86f6bc46f630d8b7a4e691c9005776b8267697.zip
hover参数支持可选
Diffstat (limited to 'script-beta/core/signature.lua')
-rw-r--r--script-beta/core/signature.lua2
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},