We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3d7718 commit 5dd6259Copy full SHA for 5dd6259
src/generic/stage2/structural_parser.h
@@ -171,7 +171,6 @@ object_continue: {
171
}
172
case '}':
173
builder.end_object(*this);
174
- depth--;
175
goto scope_end;
176
default:
177
log_error("No comma between object fields");
@@ -180,6 +179,7 @@ object_continue: {
180
179
} // object_continue:
181
182
scope_end: {
+ depth--;
183
if (depth == 0) { goto document_end; }
184
if (dom_parser.is_array[depth]) { goto array_continue; }
185
goto object_continue;
@@ -213,7 +213,6 @@ array_continue: {
213
goto array_value;
214
case ']':
215
builder.end_array(*this);
216
217
218
219
log_error("Missing comma between array values");
0 commit comments