summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-03-17 21:39:04 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-03-17 21:39:04 (GMT)
commit5eeee0ed4c1692c9a367a1232b74e44f1c4a460a (patch)
treeeb947bb0b492c9a33c255c9ec3928913cbf938c7 /src/scanner.l
parentb05064427c02bd5ae998856a0d708c440f610bde (diff)
downloadDoxygen-5eeee0ed4c1692c9a367a1232b74e44f1c4a460a.zip
Doxygen-5eeee0ed4c1692c9a367a1232b74e44f1c4a460a.tar.gz
Doxygen-5eeee0ed4c1692c9a367a1232b74e44f1c4a460a.tar.bz2
Release-1.3-rc3-20030317
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/scanner.l b/src/scanner.l
index d829cfd..c3da219 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -3217,24 +3217,34 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;]
else
{
if ((insideJava || insideCS) &&
- current->stat &&
+ /*current->stat && */
current->name.isEmpty() &&
current->type.isEmpty()
)
{
// static Java initializer
needsSemi = FALSE;
+ if (current->stat)
+ {
+ current->name="[static initializer]";
+ }
+ else
+ {
+ current->name="[instance initializer]";
+ }
+ unput(*yytext);
+ BEGIN( Function );
}
else
{
needsSemi = TRUE;
+ current->type.resize(0);
+ current->name.resize(0);
+ current->args.resize(0);
+ current->argList->clear();
+ curlyCount=0;
+ BEGIN( SkipCurlyBlock );
}
- current->type.resize(0);
- current->name.resize(0);
- current->args.resize(0);
- current->argList->clear();
- curlyCount=0;
- BEGIN( SkipCurlyBlock );
}
}
<CSAccessorDecl>"{" { curlyCount++; }