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/pre.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/pre.l')
-rw-r--r-- | src/pre.l | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -2210,22 +2210,24 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'")) // Deal with file changes due to // #include's within { .. } blocks - QCString lineStr; + QCString lineStr(15+g_yyFileName.length()); lineStr.sprintf("# %d \"%s\" 2",g_yyLineNr,g_yyFileName.data()); outputArray(lineStr.data(),lineStr.length()); delete fs; fs=0; } } -<*>"/*" { - outputChar('/');outputChar('*'); +<*>"/*"[*]? { + outputArray(yytext,yyleng); g_lastCContext=YY_START; g_commentCount=1; + if (yyleng==3) g_lastGuardName.resize(0); // reset guard in case the #define is documented! BEGIN(SkipCComment); } -<*>"//" { - outputChar('/');outputChar('/'); +<*>"//"[/]? { + outputArray(yytext,yyleng); g_lastCPPContext=YY_START; + if (yyleng==3) g_lastGuardName.resize(0); // reset guard in case the #define is documented! BEGIN(SkipCPPComment); } <*>\n { |