Skip to content

Commit 74f8a88

Browse files
committed
Fixed issue that could cause wrong line numbers
1 parent 386ec3d commit 74f8a88

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/scanner.l

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5629,6 +5629,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
56295629
}
56305630
}
56315631
<CompoundName,ClassVar>{B}*"{"{B}* {
5632+
yyextra->current->program.resize(0);
56325633
yyextra->current->fileName = yyextra->yyFileName ;
56335634
yyextra->current->bodyLine = yyextra->yyLineNr;
56345635
yyextra->current->bodyColumn = yyextra->yyColNr;
@@ -5880,7 +5881,9 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
58805881
BEGIN(BasesProt);
58815882
}
58825883
}
5883-
<Bases>{B}*"{"{B}* { yyextra->current->fileName = yyextra->yyFileName ;
5884+
<Bases>{B}*"{"{B}* {
5885+
yyextra->current->program.resize(0);
5886+
yyextra->current->fileName = yyextra->yyFileName ;
58845887
yyextra->current->bodyLine = yyextra->yyLineNr;
58855888
yyextra->current->bodyColumn = yyextra->yyColNr;
58865889
yyextra->current->name = removeRedundantWhiteSpace(yyextra->current->name);

0 commit comments

Comments
 (0)