Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0d34be5

Browse files
committed
fix(signature): prevent tuple parameters from being split up
1 parent 24b9faa commit 0d34be5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎script/core/signature.lua‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ local function makeOneSignature(source, oop, index)
6363
: gsub('%b{}', function (str)
6464
return ('_'):rep(#str)
6565
end)
66-
: gsub('[%[%]%(%)]', '_')
66+
: gsub ('%b[]', function (str)
67+
return ('_'):rep(#str)
68+
end)
69+
: gsub('[%(%)]', '_')
70+
6771
for start, finish in converted:gmatch '%s*()[^,]+()' do
6872
i = i + 1
6973
params[i] = {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /