We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
...
1 parent 90bb383 commit 6ddb6a1Copy full SHA for 6ddb6a1
source/DataStructures/Lua/Function.cs
@@ -19,7 +19,7 @@ public class Function : DataStructure
19
public override Regex GetRegex()
20
{
21
// RegEx matches "@function opt.name(param, opt)" or "local function opt:name()"
22
- return new Regex(@"((local\s+)?|@)function\s*\w+((\.|\:)\w+)?\s*\((\s*\w+\s*(,\s*\w+\s*)*)?\)");
+ return new Regex(@"((local\s+)?|@)function\s*\w+((\.|\:)\w+)?\s*\((\s*\w+\s*(,\s*(\w+|\.\.\.)\s*)*|\s*\.\.\.\s*)?\)");
23
}
24
25
public override bool CheckMatch(string line)
0 commit comments