summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-16 03:41:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-16 03:41:19 +0800
commit6c5594a2026604d47d3c94ae07d0514b6616d63b (patch)
tree3486fcc8535960f8054b46ae8bee5353f04834f9 /script
parent1407055930f23b06fbe9a6cc29cc9e54b1356783 (diff)
downloadlua-language-server-6c5594a2026604d47d3c94ae07d0514b6616d63b.zip
fix
Diffstat (limited to 'script')
-rw-r--r--script/core/signature.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/signature.lua b/script/core/signature.lua
index bade7d7a..ab7268dd 100644
--- a/script/core/signature.lua
+++ b/script/core/signature.lua
@@ -45,7 +45,7 @@ local function makeOneSignature(source, oop, index)
label = label:gsub('%s*->.+', '')
local params = {}
local i = 0
- local argStart, argLabel = label:match '%S()(%b())'
+ local argStart, argLabel = label:match '()(%b())$'
local converted = argLabel
: sub(2, -2)
: gsub('%b<>', function (str)