(from: number, to?: number)
| 28 | * cover only one line. |
| 29 | */ |
| 30 | export function lines(from: number, to?: number): CodeRange { |
| 31 | return [ |
| 32 | [from, 0], |
| 33 | [to ?? from, Infinity], |
| 34 | ]; |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Create a code range that highlights the given word. |