summaryrefslogtreecommitdiffstats
path: root/src/pyscanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2011-12-10 20:30:14 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2011-12-10 20:30:14 (GMT)
commitb625258a2f46f61e85bf473dfa64b719755c3b71 (patch)
treebb2f8266e3a639e6a4b15f02416a3aae5173c275 /src/pyscanner.l
parente48f695c385ccc356e124ac3a851a6228f4f5b84 (diff)
downloadDoxygen-b625258a2f46f61e85bf473dfa64b719755c3b71.zip
Doxygen-b625258a2f46f61e85bf473dfa64b719755c3b71.tar.gz
Doxygen-b625258a2f46f61e85bf473dfa64b719755c3b71.tar.bz2
Release-1.7.6.1
Diffstat (limited to 'src/pyscanner.l')
-rw-r--r--src/pyscanner.l10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l
index a255538..3d6e158 100644
--- a/src/pyscanner.l
+++ b/src/pyscanner.l
@@ -135,6 +135,7 @@ static void initEntry()
current->lang = SrcLangExt_Python;
current->setParent(current_root);
initGroupInfo(current);
+ gstat = FALSE;
}
static void newEntry()
@@ -333,6 +334,7 @@ static void handleCommentBlock(const QCString &doc,bool brief)
static void endOfDef(int correction=0)
{
+ //printf("endOfDef at=%d\n",yyLineNr);
if (bodyEntry)
{
bodyEntry->endBodyLine = yyLineNr-correction;
@@ -388,13 +390,15 @@ static void searchFoundDef()
current->protection = protection = Public;
current->lang = SrcLangExt_Python;
current->virt = Normal;
- current->stat = FALSE;
+ current->stat = gstat;
current->mtype = mtype = Method;
current->type.resize(0);
current->name.resize(0);
current->args.resize(0);
current->argList->clear();
g_packageCommentAllowed = FALSE;
+ gstat=FALSE;
+ //printf("searchFoundDef at=%d\n",yyLineNr);
}
static void searchFoundClass()
@@ -583,7 +587,9 @@ STARTDOCSYMS "##"
g_packageCommentAllowed = FALSE;
BEGIN( DoubleQuoteString );
}
-
+ "@staticmethod" {
+ gstat=TRUE;
+ }
{POUNDCOMMENT} { // normal comment
g_packageCommentAllowed = FALSE;
}