summaryrefslogtreecommitdiff
path: root/rc/core/python.kak
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-07-02 20:59:12 +1000
committerMaxime Coste <mawww@kakoune.org>2018-07-05 07:54:28 +1000
commit2e0e206951adefe71ef559a2a42b23901f5c4531 (patch)
treee8b15e8614e26c21b8f528a1225a6a382ce3223f /rc/core/python.kak
parentf9fda70de693f6c0363088932bf4ac086021efc3 (diff)
Make recurse regex opt-in with a -recurse switch instead of opt-out
Diffstat (limited to 'rc/core/python.kak')
-rw-r--r--rc/core/python.kak12
1 files changed, 6 insertions, 6 deletions
diff --git a/rc/core/python.kak b/rc/core/python.kak
index 1dbf7c69..f844ba4e 100644
--- a/rc/core/python.kak
+++ b/rc/core/python.kak
@@ -13,10 +13,10 @@ hook global BufCreate .*[.](py) %{
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/double_string region '"' (?<!\\)(\\\\)*" '' fill string
-add-highlighter shared/python/single_string region "'" (?<!\\)(\\\\)*' '' fill string
-add-highlighter shared/python/comment region '#' '$' '' fill comment
+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/comment region '#' '$' fill comment
# Integer formats
add-highlighter shared/python/code/ regex '(?i)\b0b[01]+l?\b' 0:value
@@ -31,8 +31,8 @@ add-highlighter shared/python/code/ regex '\b\d+\.' 0:value
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/ region '>>> \K' '\z' '' ref python
-add-highlighter shared/python/docstring/ region '\.\.\. \K' '\z' '' ref python
+add-highlighter shared/python/docstring/ region '>>> \K' '\z' ref python
+add-highlighter shared/python/docstring/ region '\.\.\. \K' '\z' ref python
evaluate-commands %sh{
# Grammar