Past the string or character literal whose quote is at `i`.
(text: string, i: number)
| 195 | |
| 196 | /** Past the string or character literal whose quote is at `i`. */ |
| 197 | function quotedEnd(text: string, i: number): number { |
| 198 | const quote = text[i]; |
| 199 | let j = i + 1; |
| 200 | while (j < text.length && text[j] !== quote && text[j] !== '\n') j += text[j] === '\\' ? 2 : 1; |
| 201 | return Math.min(text.length, j + 1); |
| 202 | } |
| 203 | |
| 204 | /** Past the blanks at `i`. */ |
| 205 | function skipBlank(text: string, i: number): number { |
no outgoing calls
no test coverage detected