Fix python docstring highlighter

Escaped ' or " at the end of a docstring no longer break highlighting.
This commit is contained in:
Piotr Chrominski 2020-09-15 22:01:55 +02:00
parent ef10d07be8
commit bfbf4d2080

View File

@ -35,7 +35,7 @@ provide-module python %§
add-highlighter shared/python regions
add-highlighter shared/python/code default-region group
add-highlighter shared/python/docstring region -match-capture ("""|''') ("""|''') regions
add-highlighter shared/python/docstring region -match-capture ("""|''') (?<!\\)(?:\\\\)*("""|''') regions
add-highlighter shared/python/double_string region '"' (?<!\\)(\\\\)*" fill string
add-highlighter shared/python/single_string region "'" (?<!\\)(\\\\)*' fill string
add-highlighter shared/python/documentation region '##' '$' fill documentation