diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2007-05-06 12:30:18 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2007-05-06 12:30:18 (GMT) |
commit | 23c13fc17365dca77acbe9a992e03ae4a40f6eca (patch) | |
tree | cfc812b095178411db5aae564fc43cac8b714078 /src/pyscanner.l | |
parent | 124b4621e793d9ffa3eca3ee91cdb6ded37c553e (diff) | |
download | Doxygen-23c13fc17365dca77acbe9a992e03ae4a40f6eca.zip Doxygen-23c13fc17365dca77acbe9a992e03ae4a40f6eca.tar.gz Doxygen-23c13fc17365dca77acbe9a992e03ae4a40f6eca.tar.bz2 |
Release-1.5.2-20070506
Diffstat (limited to 'src/pyscanner.l')
-rw-r--r-- | src/pyscanner.l | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l index e6bacc5..913f88e 100644 --- a/src/pyscanner.l +++ b/src/pyscanner.l @@ -829,6 +829,11 @@ STARTDOCSYMS ^{B}"##"/[^#] current->name = current->name.stripWhiteSpace(); newFunction(); } + {B}":" { // function without arguments + g_specialBlock = TRUE; // expecting a docstring + bodyEntry = current; + BEGIN( FunctionBody ); + } {B}"(" { BEGIN( FunctionParams ); @@ -1110,7 +1115,7 @@ STARTDOCSYMS ^{B}"##"/[^#] g_stringContext=VariableEnd; BEGIN(TripleString); } - "(" { // typle + "(" { // tuple current->type = "tuple"; current->initializer+=*yytext; g_atomStart='('; @@ -1168,6 +1173,12 @@ STARTDOCSYMS ^{B}"##"/[^#] BEGIN(VariableEnd); } } + "\"" { + g_stringContext=YY_START; + current->initializer+="\""; + g_copyString=¤t->initializer; + BEGIN( DoubleQuoteString ); + } {IDENTIFIER} { current->initializer+=yytext; } |