()
| 820 | |
| 821 | // A verbatim tag (`!<...>`) may contain `,`, so it is read up to its `>`. |
| 822 | private readTagToken(): string { |
| 823 | if (this.line[this.index + 1] !== "<") return this.readUntil(isFlowNameEnd) |
| 824 | const token = this.readUntil(isVerbatimTagEnd) |
| 825 | if (this.peek() !== ">") return token |
| 826 | this.index++ |
| 827 | return `${token}>` |
| 828 | } |
| 829 | |
| 830 | // `plain` reads a plain scalar, which also stops at a `:` that separates a key from its |
| 831 | // value and at the end of a line a comment ended. |
no test coverage detected