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 ]
|
try %[ execute-keys -draft k <a-x> s \h+$ <ret> d ]
|
||||||
# indent after line ending in opening curly brace
|
# indent after line ending in opening curly brace
|
||||||
try %[ execute-keys -draft k<a-x> <a-k>\{\h*(#.*)?$<ret> j<a-gt> ]
|
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