diff options
| author | Piotr Chrominski <flantilio@gmail.com> | 2020-09-15 22:01:55 +0200 |
|---|---|---|
| committer | Piotr Chrominski <flantilio@gmail.com> | 2020-09-15 22:01:55 +0200 |
| commit | bfbf4d208097064b45940fa179101a79266847e3 (patch) | |
| tree | 78f2f61aeff398d9233dde46d3cc992d00173742 /rc/filetype/python.kak | |
| parent | ef10d07be86236682b084e3ecdf3d75d866509f2 (diff) | |
Fix python docstring highlighter
Escaped ' or " at the end of a docstring no longer break highlighting.
Diffstat (limited to 'rc/filetype/python.kak')
| -rw-r--r-- | rc/filetype/python.kak | 2 |
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 |
