361
this.seenBlockColon = true;
362
}
363
>
} else if (ch === ':' && this.flowDepth > 0 && this.lastTokenIsJsonLike()) {
yaml.ts
364
// In flow context, ':' immediately following a JSON-like node (quoted scalar,
365
// flow mapping, or flow sequence) is a value indicator even without trailing space
366
this.tokens.push(makeToken(TokenType.Colon, this.pos, this.pos + 1));
367
this.pos++;
368
>
} else if (ch === '\'' || ch === '"') {
yaml.ts
369
this.scanQuotedScalar(ch);
370
>
} else if ((ch === '|' || ch === '>') && this.flowDepth === 0 && this.isBlockScalarStart()) {
yaml.ts
371
this.scanBlockScalar(ch as '|' | '>');
372
break; // Block scalar consumed multiple lines; return to main scan loop