diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-10-13 20:10:41 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-10-13 20:13:05 +0100 |
| commit | 5af29b025419fa3df9f82b99478f64e6e13855d4 (patch) | |
| tree | c52fa390878da96d9d41281f2d1e938ff8e6da34 /rc/core/python.kak | |
| parent | 6bfc68d4f3ca6405561722d8040353a0ad3cbf65 (diff) | |
Fix python comment copy logic in python.kak
And introduce the first unit test that sources bundled support
scripts.
Fixes #860
Diffstat (limited to 'rc/core/python.kak')
| -rw-r--r-- | rc/core/python.kak | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/core/python.kak b/rc/core/python.kak index d5079504..69da651a 100644 --- a/rc/core/python.kak +++ b/rc/core/python.kak @@ -60,8 +60,8 @@ def -hidden _python_indent_on_new_line %{ # cleanup trailing whitespaces from previous line try %{ exec -draft k <a-x> s \h+$ <ret> d } # copy '#' comment prefix and following white spaces - try %{ exec -draft k x s ^\h*\K#\h* <ret> y j p } - # indent after : + try %{ exec -draft k x s ^\h*#\h* <ret> y jgh P } + # indent after line ending with : try %{ exec -draft <space> k x <a-k> :$ <ret> j <a-gt> } } } |
