summaryrefslogtreecommitdiff
path: root/rc/python.kak
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-11-05 21:02:06 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-11-05 21:02:06 +0000
commitdc5742cf20ea5a3c4297adbe09b6a1f31e7fc943 (patch)
treee1a6f902e905e44761d337cbb2fe26503b307e8d /rc/python.kak
parent80b50cd737c485545d300d90763668c2f52df3cb (diff)
Fix escaping of ' in single quote python strings
Diffstat (limited to 'rc/python.kak')
-rw-r--r--rc/python.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/python.kak b/rc/python.kak
index aef4655c..393c3f92 100644
--- a/rc/python.kak
+++ b/rc/python.kak
@@ -19,7 +19,7 @@ addhl -group / regions -default code python \
double_string '"""' '"""' '' \
single_string "'''" "'''" '' \
double_string '"' (?<!\\)(\\\\)*" '' \
- single_string "'" "'" '' \
+ single_string "'" (?<!\\)(\\\\)*' '' \
comment '#' '$' ''
addhl -group /python/double_string fill string