diff --git a/rc/filetype/php.kak b/rc/filetype/php.kak index 7c553f80..d25d22ab 100644 --- a/rc/filetype/php.kak +++ b/rc/filetype/php.kak @@ -84,7 +84,7 @@ define-command -hidden php-indent-on-char %< define-command -hidden php-indent-on-new-line %< evaluate-commands -draft -itersel %< # copy // comments or docblock * prefix and following white spaces - try %{ execute-keys -draft k s ^\h*\K(?://|[*])\h* y gh j P } + try %{ execute-keys -draft s [^/] k s ^\h*\K(?://|[*][^/])\h* y gh j P } # preserve previous line indent try %{ execute-keys -draft \; K } # filter previous line