Correctly skip unexpected mappings

This commit is contained in:
Christopher Schleiden
2023-02-08 11:37:39 -08:00
parent 1bff36a3d3
commit ad817bedd1
@@ -133,7 +133,7 @@ class TemplateReader {
else {
this._context.error(mapping, "A mapping was not expected");
while (this._objectReader.allowMappingEnd()) {
while (!this._objectReader.allowMappingEnd()) {
this.skipValue();
this.skipValue();
}