Fixed marks grouping and coloring for simultaneous multi marks definition

This commit is contained in:
Andrew Hlynskyi
2020-05-18 06:48:17 +03:00
parent e97454c4a5
commit 474bef65cb
2 changed files with 2 additions and 2 deletions

View File

@@ -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