@@ -310,8 +310,7 @@ STARTDOCSYMS "##"
310
310
yyextra->packageCommentAllowed = FALSE;
311
311
BEGIN(VariableDec);
312
312
}
313
- ^{B}{IDENTIFIER}/{B}" =" [^=] |
314
- ^{B}{IDENTIFIER}/{B}" :" { // variable
313
+ ^{B}{IDENTIFIER}/{B}" =" [^=] { //variabele
315
314
if (yyextra->search_count) REJECT;
316
315
yyextra->indent=computeIndent(yytext);
317
316
yyextra->current->section = Entry::VARIABLE_SEC;
@@ -322,6 +321,19 @@ STARTDOCSYMS "##"
322
321
yyextra->packageCommentAllowed = FALSE;
323
322
BEGIN(VariableDec);
324
323
}
324
+ ^{B}{IDENTIFIER}/{B}" :" { // variable
325
+ if (yyextra->search_count) REJECT;
326
+ QCString id = QCString(yytext).stripWhiteSpace();
327
+ if (id ==" try " || id == " else " || id == " except" || id == " finally" ) REJECT;
328
+ yyextra->indent=computeIndent(yytext);
329
+ yyextra->current->section = Entry::VARIABLE_SEC;
330
+ yyextra->current->name = id;
331
+ yyextra->current->fileName = yyextra->fileName;
332
+ yyextra->current->startLine = yyextra->yyLineNr;
333
+ yyextra->current->bodyLine = yyextra->yyLineNr;
334
+ yyextra->packageCommentAllowed = FALSE;
335
+ BEGIN(VariableDec);
336
+ }
325
337
{B}{IDENTIFIER}/({B},{B}{IDENTIFIER})*{B}" )" *{B}" =" [^=] { // list of variables, we cannot place the default value
326
338
// so we will skip it later on in a general rule
327
339
// Also note " )" this is to catch also (a,b). the " ("
0 commit comments