diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2005-03-07 21:07:13 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2005-03-07 21:07:13 (GMT) |
commit | 42eb3f9c14016086a2d2b18951585816eaf7bcab (patch) | |
tree | 3f86b13900ced91ef5e802650b33a38767bf6c11 /src/pre.l | |
parent | 47b04448404f708d25de41246b04fb2219cc81df (diff) | |
download | Doxygen-42eb3f9c14016086a2d2b18951585816eaf7bcab.zip Doxygen-42eb3f9c14016086a2d2b18951585816eaf7bcab.tar.gz Doxygen-42eb3f9c14016086a2d2b18951585816eaf7bcab.tar.bz2 |
Release-1.4.1-20050307
Diffstat (limited to 'src/pre.l')
-rw-r--r-- | src/pre.l | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -100,6 +100,7 @@ static bool g_expandOnlyPredef; // from the configuration static int g_commentCount; static bool g_insideComment; static bool g_isImported; +static QCString g_blockName; static void setFileName(const char *name) @@ -1776,13 +1777,17 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'")) outputChar('/');outputChar('*'); //g_commentCount++; } -<SkipCComment>[\\@]"verbatim"{BN}+ { +<SkipCComment>[\\@]("verbatim"|"latexonly"|"htmlonly"|"xmlonly"|"rtfonly"|"manonly"|"dot"|"code"){BN}+ { outputArray(yytext,yyleng); + g_blockName=&yytext[1]; BEGIN(SkipVerbatim); } -<SkipVerbatim>[\\@]"endverbatim" { +<SkipVerbatim>[\\@]("endverbatim"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"endrtfonly"|"endmanonly"|"enddot"|"endcode") { /* end of verbatim block */ outputArray(yytext,yyleng); - BEGIN(SkipCComment); + if (&yytext[4]==g_blockName) + { + BEGIN(SkipCComment); + } } <SkipCComment,SkipVerbatim>[^*\x06\n\/]+ { outputArray(yytext,yyleng); |