mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-29 14:44:56 +03:00
Fix indentation rule for awk.kak
This commit is contained in:
parent
9004502049
commit
0932f3d441
@ -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-&> ]
|
||||
]
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user