mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-25 06:45:27 +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);
|
return (@vars);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub functionNoParentheses {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
############### Start ###############
|
############### Start ###############
|
||||||
|
|
||||||
print "\npltags $VERSION by Michael Schaap <mscha\@mscha.com>\n\n";
|
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
|
sub
|
||||||
\s+
|
\s+
|
||||||
[A-Za-z_]\w*
|
[A-Za-z_]\w*
|
||||||
\s*
|
(\s*\([^()]*\))? # prototype or signature
|
||||||
\(
|
(\s*\:\s*[^{]+)? # attributes
|
||||||
[^()]*
|
|
||||||
\)
|
|
||||||
\s*\{ # start of class body
|
\s*\{ # start of class body
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user