mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-09 21:55:29 +02:00
Fixed marks grouping and coloring for simultaneous multi marks definition
This commit is contained in:
@@ -56,7 +56,7 @@ def marker_from_multiple_regex(regexes: Iterable[Tuple[int, str]], flags: int =
|
||||
for match in pat.finditer(text):
|
||||
left.value = match.start()
|
||||
right.value = match.end() - 1
|
||||
grp = next(k for k, v in match.groupdict().items())
|
||||
grp = match.lastgroup
|
||||
color.value = color_map[grp]
|
||||
yield
|
||||
|
||||
|
||||
Reference in New Issue
Block a user