Non-functional: Retrigger bots; the previous failure looks suspicious.
This commit is contained in:
parent
cf6bd066b9
commit
0ea33a2628
1 changed files with 3 additions and 5 deletions
|
|
@ -521,14 +521,12 @@ bool HlslGrammar::acceptDeclaration(TIntermNode*& nodeList)
|
||||||
// was actually an assignment such as "float = 4", where "float" is an identifier.
|
// was actually an assignment such as "float = 4", where "float" is an identifier.
|
||||||
// We put the token back to let further parsing happen for cases where that may
|
// We put the token back to let further parsing happen for cases where that may
|
||||||
// happen. This errors on the side of caution, and mostly triggers the error.
|
// happen. This errors on the side of caution, and mostly triggers the error.
|
||||||
if (peek() == EHTokAssign || peek() == EHTokLeftBracket || peek() == EHTokDot || peek() == EHTokComma) {
|
if (peek() == EHTokAssign || peek() == EHTokLeftBracket || peek() == EHTokDot || peek() == EHTokComma)
|
||||||
recedeToken();
|
recedeToken();
|
||||||
return false;
|
else
|
||||||
} else {
|
|
||||||
expected(";");
|
expected(";");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue