summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-08-06 17:11:01 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-08-06 17:11:01 (GMT)
commit7e591135c56c3679c5ee63aa78f6baeae2cde63f (patch)
treebeb17245240cfeace9b45624f7e9c1946543b771
parent9ba8bd85999fa7423eb5b44c680e72ad2e9c31bf (diff)
downloadDoxygen-7e591135c56c3679c5ee63aa78f6baeae2cde63f.zip
Doxygen-7e591135c56c3679c5ee63aa78f6baeae2cde63f.tar.gz
Doxygen-7e591135c56c3679c5ee63aa78f6baeae2cde63f.tar.bz2
'self' keyword in PHP documentation
In PHP the word `self` was not color coded and the functions were nor referenced in the CALL / CALLER graphs, / REFERENCES / REFERENCED lists.
-rw-r--r--src/code.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/code.l b/src/code.l
index 2c9b0ae..13d538b 100644
--- a/src/code.l
+++ b/src/code.l
@@ -1324,7 +1324,9 @@ static void generateFunctionLink(CodeOutputInterface &ol,const char *funcName)
//CodeClassDef *ccd=0;
ClassDef *ccd=0;
QCString locScope=g_classScope;
- QCString locFunc=removeRedundantWhiteSpace(funcName);
+ QString qq=removeRedundantWhiteSpace(funcName);
+ if (g_insidePHP && qq.startsWith("self::")) qq=qq.mid(4);
+ QCString locFunc(qq.data());
QCString funcScope;
QCString funcWithScope=locFunc;
QCString funcWithFullScope=locFunc;