From f2b6959dff5b5d3d2bbbe8204b1fc32905003ad3 Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 19 Jul 2018 18:56:38 +0200 Subject: Bug 610436 - " i.e. XML CDATA sections in an analogous way top HTML comment but in this case the text is retained (as normal doxygen comment) and the special XML characters `<`,`>` and `&` are taken as if they were escaped. --- doc/xmlcmds.doc | 3 +++ src/commentscan.l | 36 +++++++++++++++++++++++++++++------- 2 files changed, 32 insertions(+), 7 deletions(-) diff --git a/doc/xmlcmds.doc b/doc/xmlcmds.doc index 501bf91..848858d 100644 --- a/doc/xmlcmds.doc +++ b/doc/xmlcmds.doc @@ -70,6 +70,9 @@ Here is the list of tags supported by doxygen:
  • \ Refers to a parameter with name "paramName". Similar to using \ref cmda "\\a".
  • \ Identifies a property. Ignored by doxygen. +
  • \ The text inside this tag (on the ...) is handled as normal + doxygen comment except for the XML special characters `<`, `>` and + `&` that are used as if they were escaped. Here is an example of a typical piece of code using some of the above commands: diff --git a/src/commentscan.l b/src/commentscan.l index aae403d..42318d1 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -989,6 +989,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$" %x CiteLabel %x CopyDoc %x GuardExpr +%x CdataSection %% @@ -1081,13 +1082,16 @@ RCSTAG "$"{ID}":"[^\n$]+"$" insidePre=FALSE; addOutput(yytext); } -{RCSTAG} { // RCS tag which end a brief description - setOutput(OutputDoc); - REJECT; - } -"