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-&> ]
]
]