diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-11-22 17:02:31 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2020-11-22 17:02:31 +1100 |
| commit | 024e0a04f21cdecc9ada1e32c4b2c62d9ddd6076 (patch) | |
| tree | 8ff2f24ea457b450fdb1a615ef13f0aa969b4b23 /rc/filetype/python.kak | |
| parent | f97a4be3308dd93ccb3cc0ac3e9347174335cf6f (diff) | |
| parent | fd047e332f2d47d6bc2152d54ffe71240224a763 (diff) | |
Merge remote-tracking branch 'm-kru/python_docstring_comment'
Diffstat (limited to 'rc/filetype/python.kak')
| -rw-r--r-- | rc/filetype/python.kak | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/filetype/python.kak b/rc/filetype/python.kak index bc998170..d7b09aa7 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 ^\h*("""|''') (?<!\\)(?:\\\\)*("""|''') 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 @@ -53,7 +53,7 @@ add-highlighter shared/python/code/ regex '\b\d+\.' 0:value # Imaginary formats add-highlighter shared/python/code/ regex '\b\d+\+\d+[jJ]\b' 0:value -add-highlighter shared/python/docstring/ default-region fill string +add-highlighter shared/python/docstring/ default-region fill comment add-highlighter shared/python/docstring/ region '>>> \K' '\z' ref python add-highlighter shared/python/docstring/ region '\.\.\. \K' '\z' ref python |
