summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2009-10-04 20:20:24 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2009-10-04 20:20:24 (GMT)
commit1042ef3a191bd0f399f1a2a20fe259c14fe6faf9 (patch)
tree36e6fdf77248708eaee0f1180b2ea526d1323c18 /src/scanner.l
parentab2543160a96dae45f256daaeca7e093f65db6ad (diff)
downloadDoxygen-1042ef3a191bd0f399f1a2a20fe259c14fe6faf9.zip
Doxygen-1042ef3a191bd0f399f1a2a20fe259c14fe6faf9.tar.gz
Doxygen-1042ef3a191bd0f399f1a2a20fe259c14fe6faf9.tar.bz2
Release-1.6.1-20091004
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/scanner.l b/src/scanner.l
index f112d5b..dd1eb77 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -1124,7 +1124,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
<FindMembers>{BN}{1,80} {
lineCount();
}
-<FindMembers>"@"{ID}{BN}*"(" {
+<FindMembers>"@"({ID}".")*{ID}{BN}*"(" {
if (insideJava) // Java annotation
{
lineCount();
@@ -2010,7 +2010,8 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
lastCPPContext = YY_START;
BEGIN( SkipCPP ) ;
}
-<FindMembers,FindFields>{B}*"#"{B}*"define" { if (insidePHP)
+<FindMembers,FindFields>{B}*"#"{B}*("cmake")?"define" {
+ if (insidePHP)
REJECT;
current->bodyLine = yyLineNr;
BEGIN( Define );
@@ -2674,6 +2675,10 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
current->type=current->type.simplifyWhiteSpace();
current->args=removeRedundantWhiteSpace(current->args);
current->name=current->name.stripWhiteSpace();
+ if (current->section==Entry::CLASS_SEC) // remove spec for "struct Bla bla;"
+ {
+ current->spec = 0;
+ }
current->section = Entry::VARIABLE_SEC ;
current->fileName = yyFileName;
current->startLine = yyLineNr;