(ch: string)
| 6 | */ |
| 7 | |
| 8 | const isWS = (ch: string): boolean => ch === ' ' || ch === '\t' || ch === '\n'; |
| 9 | |
| 10 | /** Index after jumping one word LEFT from `cursor` (skip whitespace, then word). */ |
| 11 | export function wordLeft(text: string, cursor: number): number { |