http://imgur.com/F9kmCjn When type author in comments, like: /** * Classname * * @author Guo Yunhe <guoyunhe@example.com> */ The email address seems highlighted as HTML tags. Reproducible: Always
Reproduced. Arch Linux 64-bit Kate 16.04.2 KDE Frameworks 5.23.0 Qt 5.7 xcb wm
Indeed, this seems to be handled by doxygen.xml and the email address seems to be interpreted as HTML tag in the BlockComment context, matching the rule <RegExpr attribute="HTML Tag" context="ML_htmltag" String="<\/?[a-zA-Z_:][a-zA-Z0-9._:-]*" /> So, this is not limited to php, but any language that uses the doxygen markup. A quick fix would probably to add another rule right above with a RegExpr that matches syntactically valid email addresses. However, this would ignore the preceding name. Also, this would not match email addresses that are not enclosed in brackets <...>. I am not sure whether the last one can actually be implemented, because this might conflict with matching doxygen tags.
Git commit ec4cf8b867b7f470c13c2df5e20dcd0e4c64397e by Christoph Cullmann. Committed on 06/09/2016 at 11:07. Pushed by cullmann into branch 'master'. fix email address highlighting in doxygen actually the fix makes the highlighting of HTML tags more "wrong" as it accepts invalid tags but that fixes e-mail addresses and stuff like that, think good enough (TM) M +5 -5 src/syntax/data/doxygen.xml http://commits.kde.org/ktexteditor/ec4cf8b867b7f470c13c2df5e20dcd0e4c64397e