diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2000-09-17 18:25:49 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2000-09-17 18:25:49 (GMT) |
commit | eb31c4be6b40007136845029ee462bdbcb342736 (patch) | |
tree | 5aba5305b3e7b2fb117c2057d11523840af09720 /src/scanner.l | |
parent | b91275de37e317332d5c461e4d66a8685e682f80 (diff) | |
download | Doxygen-eb31c4be6b40007136845029ee462bdbcb342736.zip Doxygen-eb31c4be6b40007136845029ee462bdbcb342736.tar.gz Doxygen-eb31c4be6b40007136845029ee462bdbcb342736.tar.bz2 |
Release-1.2.1-20000917
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/src/scanner.l b/src/scanner.l index 9f419f8..ae07bce 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -309,7 +309,7 @@ static int yyread(char *buf,int max_size) %} CMD ("\\"|"@") -SECTIONCMD {CMD}("image"|"author"|"internal"|"version"|"date"|"deprecated"|"param"|"exception"|"return"[s]?|"retval"|"bug"|"warning"|"par"|"sa"|"see"|"pre"|"post"|"invariant"|"note"|"remark"[s]?|"todo"|"test"|"ingroup") +SECTIONCMD {CMD}("image"|"author"|"internal"|"version"|"date"|"deprecated"|"param"|"exception"|"return"[s]?|"retval"|"bug"|"warning"|"par"|"sa"|"see"|"pre"|"post"|"invariant"|"note"|"remark"[s]?|"todo"|"test"|"ingroup"|"latexonly"|"htmlonly") BN [ \t\n\r] BL [ \t\r]*"\n" B [ \t] @@ -1901,7 +1901,10 @@ TITLE [tT][iI][tT][lL][eE] <Function>"#" { lastCPPContext = YY_START; BEGIN(SkipCPP); } -<Function>[:;{] { +<Function>":" { + BEGIN(SkipInits); + } +<Function>[;{] { current->name=current->name.simplifyWhiteSpace(); current->type=current->type.simplifyWhiteSpace(); current->args=current->args.simplifyWhiteSpace(); @@ -1983,11 +1986,11 @@ TITLE [tT][iI][tT][lL][eE] curlyCount=0; BEGIN( SkipCurly ) ; } - else if( *yytext == ':' ) - { - //addToBody(yytext); - BEGIN( SkipInits ) ; - } + //else if( *yytext == ':' ) + //{ + // //addToBody(yytext); + // BEGIN( SkipInits ) ; + //} else { if (previous->section!=Entry::VARIABLE_SEC) @@ -1998,9 +2001,11 @@ TITLE [tT][iI][tT][lL][eE] <SkipInits>"{" { //addToBody(yytext); - lastCurlyContext = FindMembers; - curlyCount=0; - BEGIN( SkipCurly ) ; + //lastCurlyContext = FindMembers; + //curlyCount=0; + //BEGIN( SkipCurly ) ; + unput('{'); + BEGIN( Function ); } <SkipCurly>"{" { //addToBody(yytext); @@ -2186,7 +2191,7 @@ TITLE [tT][iI][tT][lL][eE] } <ClassVar>":" { current->type.resize(0); - if (current->section == Entry::INTERFACE_SEC) + if (current->section == Entry::INTERFACE_SEC || current->section == Entry::STRUCT_SEC) baseProt=Public; else baseProt=Private; @@ -2311,7 +2316,7 @@ TITLE [tT][iI][tT][lL][eE] } <Comment>. { current->program += *yytext ; } -<FindMembers,FindFields,MemberSpec,FuncQual,SkipCurly,Operator,ClassVar>("//"{B}*)?"/*!" { +<FindMembers,FindFields,MemberSpec,FuncQual,SkipCurly,Operator,ClassVar,SkipInits>("//"{B}*)?"/*!" { //printf("Start doc block at %d\n",yyLineNr); removeSlashes=(yytext[1]=='/'); tmpDocType=-1; @@ -2324,7 +2329,7 @@ TITLE [tT][iI][tT][lL][eE] current->inside = current_root->name+"::"; BEGIN( Doc ); } -<FindMembers,FindFields,MemberSpec,FuncQual,SkipCurly,Operator,ClassVar>("//"{B}*)?"/**"/[^/*] { +<FindMembers,FindFields,MemberSpec,FuncQual,SkipCurly,Operator,ClassVar,SkipInits>("//"{B}*)?"/**"/[^/*] { removeSlashes=(yytext[1]=='/'); lastDocContext = YY_START; if (current_root->section & Entry::SCOPE_MASK) |