summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-08-12 12:53:19 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-08-12 12:53:19 (GMT)
commitedeb82c1e0cebe5437fb637c9d239a8cecfca0cb (patch)
tree96c3b47bbfb0ee3d28e46421e1317253ba052f01 /src/commentcnv.l
parentf4bab88acea24b261d85d25359c73cbb49869c5f (diff)
downloadDoxygen-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.l9
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)
{