1088
1089
private parseScalar(parentIndent: number = -1): YamlScalarNode {
1090
>
// Skip indent if present
yaml.ts
1091
>
if (this.currentToken().type === TokenType.Indent) {
1092
this.advance();
1093
}
1094
>
const token = this.expect(TokenType.Scalar);
yaml.ts
1095
>
// Quoted scalars are complete as-is (scanner handles their multiline)
1096
>
if (token.format !== 'none') {
1097
return this.scalarFromToken(token);
1098
}
1099
// For unquoted (plain) scalars, check for multiline continuation
1100
return this.parsePlainMultiline(token, parentIndent);
1102
1103
/**