diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2017-11-03 10:34:41 +0300 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2017-11-03 10:34:41 +0300 |
| commit | c9b280b7124752678873eeaa10cb793901450432 (patch) | |
| tree | 7c12fd103a21c5f2f4b27dcb1f3cb8972b9566c3 /rc/core/python.kak | |
| parent | 39e63cf518074564992614c117d9e40a9011c425 (diff) | |
rc: Don't use command aliases to highlight keywords properly
Diffstat (limited to 'rc/core/python.kak')
| -rw-r--r-- | rc/core/python.kak | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rc/core/python.kak b/rc/core/python.kak index 15e94806..306cbeba 100644 --- a/rc/core/python.kak +++ b/rc/core/python.kak @@ -5,7 +5,7 @@ # ‾‾‾‾‾‾‾‾‾ hook global BufCreate .*[.](py) %{ - set buffer filetype python + set-option buffer filetype python } # Highlighters & Completion @@ -42,7 +42,7 @@ add-highlighter shared/python/comment fill comment # Add the language's grammar to the static completion list printf %s\\n "hook global WinSetOption filetype=python %{ - set window static_words '${values}:${meta}:${keywords}:${types}:${functions}' + set-option window static_words '${values}:${meta}:${keywords}:${types}:${functions}' }" | sed 's,|,:,g' # Highlight keywords @@ -63,7 +63,7 @@ add-highlighter shared/python/comment fill comment # Commands # ‾‾‾‾‾‾‾‾ -def -hidden python-indent-on-new-line %{ +define-command -hidden python-indent-on-new-line %{ eval -draft -itersel %{ # copy '#' comment prefix and following white spaces try %{ exec -draft k <a-x> s ^\h*#\h* <ret> y jgh P } |
