diff --git a/src/scanner.l b/src/scanner.l index 1fe5667..14bf3fc 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -1014,7 +1014,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) current->name = yytext; } "[" { // C++/CLI indexed property - current->name += yytext; + current->args = "["; BEGIN( CliPropertyIndex ); } "{" { @@ -1037,10 +1037,10 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) } "]" { BEGIN( CliPropertyType ); - current->name+=yytext; + current->args+=yytext; } . { - current->name+=yytext; + current->args+=yytext; } /* {B}*"property"{BN}+ {