(text: string, end = text.length)
| 425 | } |
| 426 | |
| 427 | const endsWithEscape = (text: string, end = text.length): boolean => { |
| 428 | let start = end |
| 429 | while (start > 0 && text[start - 1] === "\\") start-- |
| 430 | return (end - start) % 2 === 1 |
| 431 | } |
| 432 | |
| 433 | // Escaped trailing spaces are content, not folding whitespace. |
| 434 | const trimFoldedEnd = (line: string, quote: string): string => { |
no outgoing calls
no test coverage detected