diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-12-26 18:38:04 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-12-26 18:38:04 (GMT) |
commit | fad58668e38d318b7ad348d880336b754d9190f3 (patch) | |
tree | beff182efe5e73216787a34e1c4806214d1cfddf /src/pyscanner.l | |
parent | dd75c0ca7d5bbb42e34a636cf35f558105063e70 (diff) | |
parent | 015955e0badb6082a1e553392acaeb6890734c31 (diff) | |
download | Doxygen-fad58668e38d318b7ad348d880336b754d9190f3.zip Doxygen-fad58668e38d318b7ad348d880336b754d9190f3.tar.gz Doxygen-fad58668e38d318b7ad348d880336b754d9190f3.tar.bz2 |
Merge pull request #431 from albert-github/feature/bug_361814
Bug 361814 - python: tuple assignment not recognized as variable initialization
Diffstat (limited to 'src/pyscanner.l')
-rw-r--r-- | src/pyscanner.l | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l index e287aad..0941bb9 100644 --- a/src/pyscanner.l +++ b/src/pyscanner.l @@ -595,6 +595,20 @@ STARTDOCSYMS "##" g_packageCommentAllowed = FALSE; BEGIN(VariableDec); } + {B}{IDENTIFIER}/({B},{B}{IDENTIFIER})*{B}")"*{B}"="[^=] { // list of variables, we cannot place the default value + // so we will skip it later on in a general rule + // Also note ")" this is to catch also (a,b). the "(" + // is caught in the rule: [(], the ")" will be handled in [)] + if (g_search_count > 1) REJECT; + g_indent=computeIndent(yytext); + current->section = Entry::VARIABLE_SEC; + current->name = QCString(yytext).stripWhiteSpace(); + current->fileName = yyFileName; + current->startLine = yyLineNr; + current->bodyLine = yyLineNr; + g_packageCommentAllowed = FALSE; + newVariable(); + } "'" { // start of a single quoted string g_stringContext=YY_START; g_copyString=0; |