diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2009-05-22 11:07:08 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2009-05-22 11:07:08 (GMT) |
commit | 8375a55083e5232e65493e73cb594c9c5e9552ab (patch) | |
tree | 9568dad93df55e8726251e5bdb1f2d8c00bdde93 /src/pre.l | |
parent | bb12cae9e3318bfb11de719aa3e93db2bfaaccd6 (diff) | |
download | Doxygen-8375a55083e5232e65493e73cb594c9c5e9552ab.zip Doxygen-8375a55083e5232e65493e73cb594c9c5e9552ab.tar.gz Doxygen-8375a55083e5232e65493e73cb594c9c5e9552ab.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 { |