diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2004-08-12 12:53:19 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2004-08-12 12:53:19 (GMT) |
commit | edeb82c1e0cebe5437fb637c9d239a8cecfca0cb (patch) | |
tree | 96c3b47bbfb0ee3d28e46421e1317253ba052f01 /src/commentcnv.l | |
parent | f4bab88acea24b261d85d25359c73cbb49869c5f (diff) | |
download | Doxygen-edeb82c1e0cebe5437fb637c9d239a8cecfca0cb.zip Doxygen-edeb82c1e0cebe5437fb637c9d239a8cecfca0cb.tar.gz Doxygen-edeb82c1e0cebe5437fb637c9d239a8cecfca0cb.tar.bz2 |
Release-1.3.8-20040812
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r-- | src/commentcnv.l | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l index 7e7d6a4..0f9f956 100644 --- a/src/commentcnv.l +++ b/src/commentcnv.l @@ -243,12 +243,16 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^' \\\n]{1,4}"'")) g_readLineCtx=YY_START; BEGIN(ReadLine); } -<SComment>^[ \t]*"//!"/.*\n { +<SComment>^[ \t]*"//!" | // just //! +<SComment>^[ \t]*"//!<"/.*\n | // or //!< something +<SComment>^[ \t]*"//!"[^<]/.*\n { // or //!something replaceComment(0); g_readLineCtx=YY_START; BEGIN(ReadLine); } -<SComment>\n[ \t]*"//!"/.*\n { +<SComment>\n[ \t]*"//!" | +<SComment>\n[ \t]*"//!<"/.*\n | +<SComment>\n[ \t]*"//!"[^<]/.*\n { replaceComment(1); g_readLineCtx=YY_START; BEGIN(ReadLine); @@ -297,6 +301,7 @@ void replaceComment(int offset) } else { + //printf("replaceComment(%s)\n",yytext); int i=computeIndent(&yytext[offset]); if (i==g_blockHeadCol) { |