Update deindenting in php.kak

This commit is contained in:
John Isom 2020-07-28 20:49:17 -06:00
parent 2de803ee17
commit b87b1bd32d

View File

@ -94,7 +94,7 @@ define-command -hidden php-indent-on-new-line %<
# append " * " on lines starting a multiline /** or /* comment # append " * " on lines starting a multiline /** or /* comment
try %{ execute-keys -draft k <a-x> s ^\h*/[*][* ]? <ret> j gi i <space>*<space> } try %{ execute-keys -draft k <a-x> s ^\h*/[*][* ]? <ret> j gi i <space>*<space> }
# deindent closer token(s) when after cursor # deindent closer token(s) when after cursor
try %_ execute-keys -draft <a-x> <a-k>^\h*[})]+\h*(?://.*)?$<ret> <a-/> [})] <ret> m <a-S> 1<a-&> _ try %_ execute-keys -draft <a-x> <a-k>^\h*[})]+\h*(?://.*)?$<ret> \; <a-/> [})] <ret> m <a-S> 1<a-&> _
> >
> >