summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2003-04-12 09:32:03 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2003-04-12 09:32:03 (GMT)
commit7e0aeda8a19448b44750f2530864432c964b0374 (patch)
tree97a61f449c3cd2b31dba7908cce7881ee2f0da85 /src/code.l
parentb69146af8dce22431fc50dc3fcea6c7fd5fb1063 (diff)
downloadDoxygen-7e0aeda8a19448b44750f2530864432c964b0374.zip
Doxygen-7e0aeda8a19448b44750f2530864432c964b0374.tar.gz
Doxygen-7e0aeda8a19448b44750f2530864432c964b0374.tar.bz2
Release-1.3
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/code.l b/src/code.l
index 4a2b80a..5335daa 100644
--- a/src/code.l
+++ b/src/code.l
@@ -672,6 +672,7 @@ static void generateClassOrGlobalLink(BaseCodeDocInterface &ol,char *clName,
}
else
{
+ //printf("typeOnly=%d\n",typeOnly);
if (cd==0 && !typeOnly) // not a class, see if it is a global enum/variable/typedef.
{
MemberDef *md = setCallContextForVar(clName);
@@ -1556,7 +1557,7 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
<MemberCall2,FuncCall>[a-z_A-Z][:a-z_A-Z0-9]*({B}*"<"[^\n\<\>]*">")? {
addParmType();
g_parmName=yytext;
- generateClassOrGlobalLink(*g_code,yytext,TRUE);
+ generateClassOrGlobalLink(*g_code,yytext,!g_insideBody);
}
<MemberCall2,FuncCall>, {
g_code->codify(yytext);
@@ -1798,6 +1799,11 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
codifyLines(yytext);
endFontClass();
}
+ if (YY_START==SkipCxxComment)
+ {
+ endFontClass();
+ BEGIN( g_lastCContext ) ;
+ }
}
<*>\n{B}*"//@"[{}].*\n { // remove one-line group marker
if (Config_getBool("STRIP_CODE_COMMENTS"))
@@ -1815,6 +1821,11 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
codifyLines(yytext);
endFontClass();
}
+ if (YY_START==SkipCxxComment)
+ {
+ endFontClass();
+ BEGIN( g_lastCContext ) ;
+ }
}
<*>\n{B}*"/*@"[{}] { // remove one-line group marker
if (Config_getBool("STRIP_CODE_COMMENTS"))