Fix python docstring highlighter
Escaped ' or " at the end of a docstring no longer break highlighting.
This commit is contained in:
parent
ef10d07be8
commit
bfbf4d2080
|
@ -35,7 +35,7 @@ provide-module python %§
|
||||||
|
|
||||||
add-highlighter shared/python regions
|
add-highlighter shared/python regions
|
||||||
add-highlighter shared/python/code default-region group
|
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/double_string region '"' (?<!\\)(\\\\)*" fill string
|
||||||
add-highlighter shared/python/single_string region "'" (?<!\\)(\\\\)*' fill string
|
add-highlighter shared/python/single_string region "'" (?<!\\)(\\\\)*' fill string
|
||||||
add-highlighter shared/python/documentation region '##' '$' fill documentation
|
add-highlighter shared/python/documentation region '##' '$' fill documentation
|
||||||
|
|
Loading…
Reference in New Issue
Block a user