summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/scanner.l5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l
index e63b8a0..7c710fa 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -5629,6 +5629,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
}
}
<CompoundName,ClassVar>{B}*"{"{B}* {
+ yyextra->current->program.resize(0);
yyextra->current->fileName = yyextra->yyFileName ;
yyextra->current->bodyLine = yyextra->yyLineNr;
yyextra->current->bodyColumn = yyextra->yyColNr;
@@ -5880,7 +5881,9 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
BEGIN(BasesProt);
}
}
-<Bases>{B}*"{"{B}* { yyextra->current->fileName = yyextra->yyFileName ;
+<Bases>{B}*"{"{B}* {
+ yyextra->current->program.resize(0);
+ yyextra->current->fileName = yyextra->yyFileName ;
yyextra->current->bodyLine = yyextra->yyLineNr;
yyextra->current->bodyColumn = yyextra->yyColNr;
yyextra->current->name = removeRedundantWhiteSpace(yyextra->current->name);