diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2021-04-17 09:43:12 +0200 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2021-04-17 20:56:23 +0200 |
| commit | 997059fed1a5f9e27190ea0252bbc03ee28d8b18 (patch) | |
| tree | 075931faec74aac6f0ed6054ece797617c5a4cd2 /rc/filetype/javascript.kak | |
| parent | 5696ed02e49cb9ba076a9a8ce908597720e7df1c (diff) | |
rc javascript: fix line comment prefix
Diffstat (limited to 'rc/filetype/javascript.kak')
| -rw-r--r-- | rc/filetype/javascript.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/javascript.kak b/rc/filetype/javascript.kak index b208c8a6..5713d5a6 100644 --- a/rc/filetype/javascript.kak +++ b/rc/filetype/javascript.kak @@ -55,7 +55,7 @@ define-command -hidden javascript-indent-on-char %< define-command -hidden javascript-indent-on-new-line %< evaluate-commands -draft -itersel %< # copy // comments prefix and following white spaces - try %{ execute-keys -draft k <a-x> s ^\h*\K#\h* <ret> y gh j P } + try %{ execute-keys -draft k <a-x> s ^\h*\K/{2,}\h* <ret> y gh j P } # preserve previous line indent try %{ execute-keys -draft <semicolon> K <a-&> } # filter previous line |
