Merge remote-tracking branch 'schickm/html-highlighter-indent-bugfix'

This commit is contained in:
Maxime Coste 2018-10-03 21:44:43 +10:00
commit fd00776012

View File

@ -51,8 +51,7 @@ define-command -hidden html-indent-on-new-line %{
# filter previous line
try %{ execute-keys -draft k : html-filter-around-selections <ret> }
# indent after lines ending with opening tag
try %{ execute-keys -draft k <a-x> <a-k> <[^/][^>]+>$ <ret> j <a-gt> }
}
try %{ execute-keys -draft k <a-x> <a-k> <lt>(?!area)(?!base)(?!br)(?!col)(?!command)(?!embed)(?!hr)(?!img)(?!input)(?!keygen)(?!link)(?!menuitem)(?!meta)(?!param)(?!source)(?!track)(?!wbr)(?!/)(?!>)[a-zA-Z0-9_-]+[^>]*?>$ <ret> j <a-gt> } }
}
# Initialization