(range: LineRange | null)
| 140 | }); |
| 141 | |
| 142 | function highlightLineRange(range: LineRange | null) { |
| 143 | return [ |
| 144 | baseTheme, |
| 145 | range == null ? [] : highlightedRange.of(range), |
| 146 | highlightLineRangePlugin, |
| 147 | ]; |
| 148 | } |
| 149 | const lineHighlightDecoration = Decoration.line({ |
| 150 | attributes: { class: "cm-highlighted" }, |
| 151 | }); |