Skip to content

Commit

Permalink
Issue 6494: asterisks before args and kwargs are ignored in python
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
albert-github committed Sep 10, 2018
1 parent cd2cbe4 commit eef433c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pyscanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ static bool g_packageCommentAllowed;
static bool g_start_init = FALSE;
static int g_search_count = 0;

static QCString g_argType = "";
//-----------------------------------------------------------------------------


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit eef433c

Please sign in to comment.