1349
return this.parsePlainMultiline(token, baseIndent);
1350
}
1352
>
// Value is on the next line (skip newlines/comments and check indentation)
1353
>
this.skipNewlinesAndComments();
1354
>
const afterNewline = this.currentToken();
1355
>
1356
>
if (afterNewline.type === TokenType.EOF) {
1357
// Missing value at end of input
1358
this.emitError(localize('missingValue', 'Missing value'), colonToken.startOffset, colonToken.endOffset, 'missing-value');
1359
return this.makeEmptyScalar(colonToken.endOffset);
1360
}
1362
>
const nextIndent = this.currentIndent();
1363
>
1364
>
// Special case: a sequence at the same indent as the mapping key is allowed
1365
>
// as the mapping value (e.g., "foo:\n- 42")
1366
if (nextIndent === baseIndent && this.peekPastIndent().type === TokenType.Dash) {
1367
return this.parseValue(baseIndent) ?? this.makeEmptyScalar(colonToken.endOffset);