summaryrefslogtreecommitdiff
path: root/rc/filetype/python.kak
diff options
context:
space:
mode:
Diffstat (limited to 'rc/filetype/python.kak')
-rw-r--r--rc/filetype/python.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/python.kak b/rc/filetype/python.kak
index 2259cbf5..bc998170 100644
--- a/rc/filetype/python.kak
+++ b/rc/filetype/python.kak
@@ -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