1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-28 01:00:28 +03:00

Fix indentation rule for awk.kak

This commit is contained in:
John Isom 2020-07-27 12:55:25 -06:00
parent 9004502049
commit 0932f3d441

View File

@ -76,6 +76,8 @@ define-command -hidden awk-indent-on-new-line %[
try %[ execute-keys -draft k <a-x> s \h+$ <ret> d ]
# indent after line ending in opening curly brace
try %[ execute-keys -draft k<a-x> <a-k>\{\h*(#.*)?$<ret> j<a-gt> ]
# deindent closing brace when after cursor
try %[ execute-keys -draft <a-x> <a-k>^\h*\}\h*(?:#.*)?$<ret> hm <a-S> 1<a-&> ]
]
]