()
| 115 | let seqStart = 0 |
| 116 | |
| 117 | const flushText = (): void => { |
| 118 | if (i > textStart) { |
| 119 | const text = data.slice(textStart, i) |
| 120 | if (text) { |
| 121 | tokens.push({ type: 'text', value: text }) |
| 122 | } |
| 123 | } |
| 124 | textStart = i |
| 125 | } |
| 126 | |
| 127 | const emitSequence = (seq: string): void => { |
| 128 | if (seq) { |