Merge pull request #2602 from jeremy-lunarg/hayes-2514
Issue error when declaration rule fails
This commit is contained in:
@@ -161,8 +161,10 @@ bool HlslGrammar::acceptDeclarationList(TIntermNode*& nodeList)
|
||||
return true;
|
||||
|
||||
// declaration
|
||||
if (! acceptDeclaration(nodeList))
|
||||
if (! acceptDeclaration(nodeList)) {
|
||||
expected("declaration");
|
||||
return false;
|
||||
}
|
||||
} while (true);
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user