summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2012-04-08 14:16:03 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2012-04-08 14:16:03 (GMT)
commitc02e23403ebac29078e51df54f796ee71c0e8c3e (patch)
treeffd092e761289b417363c0562ceb9b93b88f19a4 /src/code.l
parent4126eaa26d354ddd0e9aad8183f140f8f911442e (diff)
downloadDoxygen-c02e23403ebac29078e51df54f796ee71c0e8c3e.zip
Doxygen-c02e23403ebac29078e51df54f796ee71c0e8c3e.tar.gz
Doxygen-c02e23403ebac29078e51df54f796ee71c0e8c3e.tar.bz2
Release-1.8.0-20120408
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/code.l b/src/code.l
index ae091de..dff0218 100644
--- a/src/code.l
+++ b/src/code.l
@@ -3106,6 +3106,10 @@ OPERATOR {ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}
<SkipComment>[ \t]*"*/" {
g_code->codify(yytext);
endFontClass();
+ if (g_lastCContext==SkipCPP)
+ {
+ startFontClass("preprocessor");
+ }
BEGIN( g_lastCContext ) ;
}
<SkipCxxComment>[^\r\n]*"\\"[\r]?\n { // line continuation
@@ -3258,7 +3262,7 @@ OPERATOR {ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}
}
}
<*>"//"[!/][^\n]*\n { // strip special one-line comment
- if (YY_START==SkipComment || YY_START==SkipString || YY_START==SkipCPP) REJECT;
+ if (YY_START==SkipComment || YY_START==SkipString) REJECT;
if (Config_getBool("STRIP_CODE_COMMENTS"))
{
char c[2]; c[0]='\n'; c[1]=0;