There was an error while loading. Please reload this page.
1 parent 800ac4d commit 5ce8717Copy full SHA for 5ce8717
1 file changed
src/core/jsonc/verifier.js
@@ -353,8 +353,7 @@ const jsoncVerifier = options => {
353
updatePos(value);
354
index += value.length;
355
break;
356
- case 'key1':
357
- case 'key': {
+ case 'key1': {
358
index = consumeTrivia(index);
359
if (triviaWait) break main; // wait for more input (incomplete comment)
360
if (index >= buffer.length) {
@@ -415,7 +414,6 @@ const jsoncVerifier = options => {
415
414
continue main;
416
}
417
if (cc === ASCII_CLOSE_BRACE) {
418
- if (expect !== 'key1') throw makeError("Verifier cannot parse input: unexpected token '}'");
419
parent = stack.pop();
420
expect = expected[parent];
421
++offset;
0 commit comments