Kaydet (Commit) 7eacc365 authored tarafından Enrico Tröger's avatar Enrico Tröger

Fix wrong parsing of function arguments when those contain nested brackets (as…

Fix wrong parsing of function arguments when those contain nested brackets (as reported by Harold Aling).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4830 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 5b8d8c67
......@@ -10,6 +10,8 @@
Add missing documentation for 'Reset Zoom' keybinding.
* tagmanager/php.c:
Another attempt to fix the PHP parser regexp for parsing functions.
Fix wrong parsing of function arguments when those contain nested
brackets (as reported by Harold Aling).
2010-04-11 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
......
......@@ -80,7 +80,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)[ \t]*]*[ \t]*function[ \t]+&?[ \t]*([" ALPHA "_][" ALNUM "_]*)[[:space:]]*(\\([^)]*\\))",
"^[ \t]*[(public|protected|private|static)[ \t]*]*[ \t]*function[ \t]+&?[ \t]*([" ALPHA "_][" ALNUM "_]*)[[:space:]]*(\\(.*\\))",
NULL, function_cb);
addTagRegex(language, "^[ \t]*(\\$|::\\$|\\$this->)([" ALPHA "_][" ALNUM "_]*)[ \t]*=",
"\\2", "v,variable,variables", NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment