summaryrefslogtreecommitdiff
path: root/rc/filetype/ragel.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/ragel.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/ragel.kak')
-rw-r--r--rc/filetype/ragel.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/ragel.kak b/rc/filetype/ragel.kak
index 67949a83..85a79b31 100644
--- a/rc/filetype/ragel.kak
+++ b/rc/filetype/ragel.kak
@@ -65,7 +65,7 @@ define-command -hidden ragel-indent-on-new-line %<
# copy _#_ comment prefix and following white spaces
try %{ execute-keys -draft k <a-x> s ^\h*\K#\h* <ret> y gh j P }
# 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 : ragel-trim-indent <ret> }
# indent after lines ending with opener token