Fix my closer tokens issues in javascript.kak

This commit is contained in:
John Isom 2020-07-28 15:18:57 -06:00
parent 94ab56d123
commit d7e9702228

View File

@ -63,7 +63,7 @@ define-command -hidden javascript-indent-on-new-line %<
# indent after lines beginning / ending with opener token # indent after lines beginning / ending with opener token
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 token(s) when after cursor # deindent closing token(s) when after cursor
try %_ execute-keys -draft <a-x> <a-k>^\h*[}\]]+\h*$<ret> hm <a-S> 1<a-&> _ try %_ execute-keys -draft <a-x> <a-k> ^\h*[}\]]+\;?\h*$ <ret> \; <a-/> [}\]] <ret> m <a-S> 1<a-&> _
> >
> >