Skip to content

Commit

Permalink
Parse PHP functions with multiline argument list, #3037797
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel committed Jan 1, 2012
1 parent 1b56b6b commit 0594950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tagmanager/php.c
Expand Up @@ -78,7 +78,7 @@ static void installPHPRegex (const langType language)
addTagRegex(language, "^[ \t]*const[ \t]*([" ALPHA "_][" ALNUM "_]*)[ \t]*[=;]",
"\\1", "m,macro,macros", NULL);
addCallbackRegex(language,
"^[ \t]*((public|protected|private|static|final)[ \t]+)*function[ \t]+&?[ \t]*([" ALPHA "_][" ALNUM "_]*)[[:space:]]*(\\(.*\\))",
"^[ \t]*((public|protected|private|static|final)[ \t]+)*function[ \t]+&?[ \t]*([" ALPHA "_][" ALNUM "_]*)[[:space:]]*(\\(.*\\)|\\(.*)",
NULL, function_cb);
addTagRegex(language, "^[ \t]*(\\$|::\\$|\\$this->)([" ALPHA "_][" ALNUM "_]*)[ \t]*=",
"\\2", "v,variable,variables", NULL);
Expand Down

0 comments on commit 0594950

Please sign in to comment.