1465
return this.parseScalar(baseIndent);
1466
}
1468
>
// Value on next line
1469
>
this.skipNewlinesAndComments();
1470
>
if (this.currentToken().type === TokenType.EOF) {
1471
this.emitError(localize('missingSeqItemValue', 'Missing sequence item value'), dashToken.startOffset, dashToken.endOffset, 'missing-value');
1472
return this.makeEmptyScalar(dashToken.endOffset);
1473
}
1475
>
const nextIndent = this.currentIndent();
1476
>
if (nextIndent <= baseIndent) {
1477
// Empty item (just a dash)
1478
this.emitError(localize('missingSeqItemValue', 'Missing sequence item value'), dashToken.startOffset, dashToken.endOffset, 'missing-value');
1479
return this.makeEmptyScalar(dashToken.endOffset);
1480
}
1482
>
return this.parseValue(baseIndent) ?? this.makeEmptyScalar(dashToken.endOffset);
1483
}
1484