mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
Fix some Perl functions not being recognized in function list issue
Fix Perl functions without parentheses / with attributes are not recognized in function list issue. Fix #4265, close #4266
This commit is contained in:
parent
f9fa72b9db
commit
38037035e4
@ -148,6 +148,10 @@ sub VarNames($)
|
||||
return (@vars);
|
||||
}
|
||||
|
||||
sub functionNoParentheses {
|
||||
return 1
|
||||
}
|
||||
|
||||
############### Start ###############
|
||||
|
||||
print "\npltags $VERSION by Michael Schaap <mscha\@mscha.com>\n\n";
|
||||
|
@ -1 +1 @@
|
||||
{"leaves":["MakeTag","PackageName","SubName","VarNames"],"root":"unitTest"}
|
||||
{"leaves":["MakeTag","PackageName","SubName","VarNames","functionNoParentheses"],"root":"unitTest"}
|
@ -651,10 +651,8 @@
|
||||
sub
|
||||
\s+
|
||||
[A-Za-z_]\w*
|
||||
\s*
|
||||
\(
|
||||
[^()]*
|
||||
\)
|
||||
(\s*\([^()]*\))? # prototype or signature
|
||||
(\s*\:\s*[^{]+)? # attributes
|
||||
\s*\{ # start of class body
|
||||
"
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user