diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-03-07 21:07:13 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-03-07 21:07:13 (GMT) |
commit | 5a6400835bc92fb56ef65126785cbe75f092f2d1 (patch) | |
tree | 3f86b13900ced91ef5e802650b33a38767bf6c11 /src/pre.l | |
parent | d745dd3737ece0f328e515b1cf10306da0901597 (diff) | |
download | Doxygen-5a6400835bc92fb56ef65126785cbe75f092f2d1.zip Doxygen-5a6400835bc92fb56ef65126785cbe75f092f2d1.tar.gz Doxygen-5a6400835bc92fb56ef65126785cbe75f092f2d1.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); |