1109
*/
1110
private parsePlainMultiline(firstToken: Token, parentIndent: number): YamlScalarNode {
1111
>
let value = firstToken.value;
yaml.ts
1112
>
let endOffset = firstToken.endOffset;
1113
>
1114
>
while (true) {
1115
>
// Save position to backtrack if continuation is not valid
1116
>
const savedPos = this.pos;
1117
>
1118
>
// Count empty lines (newlines with only whitespace between)
1119
>
let emptyLineCount = 0;
1120
>
let foundContent = false;
1121
>
1122
>
while (this.pos < this.tokens.length) {
1123
>
const t = this.currentToken();
1124
>
if (t.type === TokenType.Comment) {
1125
// Comment terminates a plain scalar
1126
break;
1127
}
1128
>
if (t.type === TokenType.Newline) {
yaml.ts
1129
this.advance();
1130
// Check if the next thing after this newline is blank or content