summaryrefslogtreecommitdiffstats
path: root/src/pyscanner.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/pyscanner.l')
-rw-r--r--src/pyscanner.l15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l
index b70c448..6c832f7 100644
--- a/src/pyscanner.l
+++ b/src/pyscanner.l
@@ -535,6 +535,16 @@ STARTDOCSYMS ^{B}"##"/[^#]
g_packageCommentAllowed = FALSE;
BEGIN( Import );
}
+ ^{B}{IDENTIFIER}/{B}"="{B}"property" { // property
+ current->section = Entry::VARIABLE_SEC;
+ current->mtype = Property;
+ current->name = QCString(yytext).stripWhiteSpace();
+ current->fileName = yyFileName;
+ current->startLine = yyLineNr;
+ current->bodyLine = yyLineNr;
+ g_packageCommentAllowed = FALSE;
+ BEGIN(VariableDec);
+ }
^{B}{IDENTIFIER}/{B}"="[^=] { // variable
g_indent=computeIndent(yytext);
current->section = Entry::VARIABLE_SEC;
@@ -1129,7 +1139,10 @@ STARTDOCSYMS ^{B}"##"/[^#]
BEGIN(TripleString);
}
"(" { // tuple
- current->type = "tuple";
+ if (current->mtype!=Property)
+ {
+ current->type = "tuple";
+ }
current->initializer+=*yytext;
g_atomStart='(';
g_atomEnd=')';