From 7e591135c56c3679c5ee63aa78f6baeae2cde63f Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 6 Aug 2018 19:11:01 +0200 Subject: '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. --- src/code.l | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v0.12