summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2009-05-22 11:07:08 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2009-05-22 11:07:08 (GMT)
commit8375a55083e5232e65493e73cb594c9c5e9552ab (patch)
tree9568dad93df55e8726251e5bdb1f2d8c00bdde93 /src/pre.l
parentbb12cae9e3318bfb11de719aa3e93db2bfaaccd6 (diff)
downloadDoxygen-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.l12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/pre.l b/src/pre.l
index f946fc4..c818ce9 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -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 {