Skip to content

Commit 0c4564a

Browse files
committed
fix #13561
1 parent 1822db9 commit 0c4564a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/tokenlist.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,13 @@ static void compileTerm(Token *&tok, AST_state& state)
828828
}
829829
if (Token::Match(tok, "%name% %assign%"))
830830
tok = tok->next();
831+
if (Token::simpleMatch(tok, "*")) {
832+
Token *tok2 = tok->next();
833+
while (Token::simpleMatch(tok2, "*"))
834+
tok2 = tok2->next();
835+
if (Token::simpleMatch(tok2, ":"))
836+
tok = tok2;
837+
}
831838
}
832839
} else if (tok->str() == "{") {
833840
const Token *prev = tok->previous();

0 commit comments

Comments
 (0)