add regex highlight

This commit is contained in:
2021-10-24 19:47:30 +02:00
parent eab422a6ce
commit 6e831c66be
7 changed files with 116 additions and 50 deletions

View File

@@ -1,4 +1,4 @@
from typing import Optional
from typing import Optional, List
from line import Line
from highlighted_range import HighlightedRange
@@ -8,5 +8,5 @@ class Highlight:
def __init__(self):
pass
def compute_highlight(self, line: Line) -> Optional[HighlightedRange]:
def compute_highlight(self, line: Line) -> Optional[List[HighlightedRange]]:
return None