diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-05-22 11:07:08 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-05-22 11:07:08 (GMT) |
commit | 7a3de4c3c8aac25c38b6e93bb0927de40cd1c650 (patch) | |
tree | 9568dad93df55e8726251e5bdb1f2d8c00bdde93 /src/commentcnv.l | |
parent | c34e05f1d2d21630290f758aafe6d151825d0ce8 (diff) | |
download | Doxygen-7a3de4c3c8aac25c38b6e93bb0927de40cd1c650.zip Doxygen-7a3de4c3c8aac25c38b6e93bb0927de40cd1c650.tar.gz Doxygen-7a3de4c3c8aac25c38b6e93bb0927de40cd1c650.tar.bz2 |
Release-1.5.9-20090522
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r-- | src/commentcnv.l | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l index 4c71988..33d0c04 100644 --- a/src/commentcnv.l +++ b/src/commentcnv.l @@ -63,12 +63,14 @@ static int g_lastCommentContext; static bool g_inSpecialComment; static bool g_inRoseComment; static int g_javaBlock; +static bool g_specialComment; static QCString g_aliasString; static int g_blockCount; static int g_lastBlockContext; static bool g_pythonDocString; + static SrcLangExt g_lang; static void replaceCommentMarker(const char *s,int len) @@ -341,7 +343,8 @@ void replaceComment(int offset); g_readLineCtx=YY_START; BEGIN(ReadLine); } -<Scan>"/*" { /* start of a C comment */ +<Scan>"/*"[*!]? { /* start of a C comment */ + g_specialComment=yyleng==3; copyToOutput(yytext,yyleng); BEGIN(CComment); } @@ -640,6 +643,10 @@ void replaceComment(int offset); { ADDCHAR('/'); ADDCHAR('*'); + if (g_specialComment) + { + ADDCHAR('*'); + } } } } |