diff options
author | albert-github <albert.tests@gmail.com> | 2018-08-06 17:11:01 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-08-06 17:11:01 (GMT) |
commit | 7e591135c56c3679c5ee63aa78f6baeae2cde63f (patch) | |
tree | beb17245240cfeace9b45624f7e9c1946543b771 /src | |
parent | 9ba8bd85999fa7423eb5b44c680e72ad2e9c31bf (diff) | |
download | Doxygen-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/code.l | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |