diff options
author | albert-github <albert.tests@gmail.com> | 2018-09-10 14:44:11 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-09-10 14:44:11 (GMT) |
commit | eef433c0531f8f5321f3034bcc5bed02c006f2cf (patch) | |
tree | f5b55d6cc4cb25d99a059b5ac211024bef88ca7e /src/pyscanner.l | |
parent | cd2cbe4b044257ca984db6f70c7240079f5390f9 (diff) | |
download | Doxygen-eef433c0531f8f5321f3034bcc5bed02c006f2cf.zip Doxygen-eef433c0531f8f5321f3034bcc5bed02c006f2cf.tar.gz Doxygen-eef433c0531f8f5321f3034bcc5bed02c006f2cf.tar.bz2 |
Issue 6494: asterisks before args and kwargs are ignored in python
Added asterisks in the type field.
The type is temporary stored in a variable as the argument field has not yet been defined for its argument.
Diffstat (limited to 'src/pyscanner.l')
-rw-r--r-- | src/pyscanner.l | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l index 2adf632..7b5a424 100644 --- a/src/pyscanner.l +++ b/src/pyscanner.l @@ -118,6 +118,7 @@ static bool g_packageCommentAllowed; static bool g_start_init = FALSE; static int g_search_count = 0; +static QCString g_argType = ""; //----------------------------------------------------------------------------- @@ -959,12 +960,16 @@ STARTDOCSYMS "##" ({BB}|",") { } + [\*]+ { + g_argType = yytext; + } {IDENTIFIER} { // Name of parameter lineCount(); Argument *a = new Argument; current->argList->append(a); current->argList->getLast()->name = QCString(yytext).stripWhiteSpace(); - current->argList->getLast()->type = ""; + current->argList->getLast()->type = g_argType; + g_argType = ""; } "=" { // default value // TODO: this rule is too simple, need to be able to |