From 6aab2f54dde3df5cf681c7bd6fee57d1a5ded40f Mon Sep 17 00:00:00 2001 From: lePerdu Date: Sat, 9 Nov 2019 09:41:11 -0500 Subject: [PATCH] Copy doc comment (///) prefix to new lines --- rc/filetype/gluon.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/filetype/gluon.kak b/rc/filetype/gluon.kak index b6ec9925..2298737c 100644 --- a/rc/filetype/gluon.kak +++ b/rc/filetype/gluon.kak @@ -80,8 +80,8 @@ define-command -hidden gluon-trim-indent %{ define-command -hidden gluon-indent-on-new-line %{ evaluate-commands -draft -itersel %{ - # copy // comments prefix and following white spaces - try %{ execute-keys -draft k s ^\h*\K//\h* y gh j P } + # copy // and /// comments prefix and following white spaces + try %{ execute-keys -draft k s ^\h*\K///?\h* y gh j P } # preserve previous line indent try %{ execute-keys -draft \; K } # filter previous line