summaryrefslogtreecommitdiff
path: root/rc/filetype/html.kak
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2019-10-22 11:02:06 +0200
committerFrank LENORMAND <lenormf@gmail.com>2019-10-22 11:02:06 +0200
commit21614cb06ea4f7a7349c628e5b8a754f730b2f0d (patch)
treea5a65ba0f4489808cf312a2db9e0d5699874ff40 /rc/filetype/html.kak
parent3c34de7fe7db607fe2c0519471b8d3c4935ce717 (diff)
src: Create a <semicolon> named key
This commit allows using the <semicolon> expansion in commands, instead of `\;`. It makes commands look more elegant, and prevents new-comers from falling into the trap of using <a-;> without escaping the semicolon.
Diffstat (limited to 'rc/filetype/html.kak')
-rw-r--r--rc/filetype/html.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/html.kak b/rc/filetype/html.kak
index d6385d10..4a86e21b 100644
--- a/rc/filetype/html.kak
+++ b/rc/filetype/html.kak
@@ -77,7 +77,7 @@ define-command -hidden html-indent-on-greater-than %[
define-command -hidden html-indent-on-new-line %{
evaluate-commands -draft -itersel %{
# preserve previous line indent
- try %{ execute-keys -draft \; K <a-&> }
+ try %{ execute-keys -draft <semicolon> K <a-&> }
# filter previous line
try %{ execute-keys -draft k : html-trim-indent <ret> }
# indent after lines ending with opening tag