AST: Fixed ast for a:🅱️:c..
This commit is contained in:
parent
70ab30e3c6
commit
82636d4f07
|
@ -888,6 +888,8 @@ static void compileScope(Token *&tok, AST_state& state)
|
||||||
while (tok) {
|
while (tok) {
|
||||||
if (tok->str() == "::") {
|
if (tok->str() == "::") {
|
||||||
const Token *lastOp = state.op.empty() ? nullptr : state.op.top();
|
const Token *lastOp = state.op.empty() ? nullptr : state.op.top();
|
||||||
|
if (Token::Match(lastOp, ":: %name%"))
|
||||||
|
lastOp = lastOp->next();
|
||||||
if (Token::Match(lastOp, "%name%") &&
|
if (Token::Match(lastOp, "%name%") &&
|
||||||
(lastOp->next() == tok || (Token::Match(lastOp, "%name% <") && lastOp->linkAt(1) && tok == lastOp->linkAt(1)->next())))
|
(lastOp->next() == tok || (Token::Match(lastOp, "%name% <") && lastOp->linkAt(1) && tok == lastOp->linkAt(1)->next())))
|
||||||
compileBinOp(tok, state, compileTerm);
|
compileBinOp(tok, state, compileTerm);
|
||||||
|
|
Loading…
Reference in New Issue