diff options
Diffstat (limited to 'app-editors/kakoune/files/kakoune-2021.08.28-php-filetype-fix.patch')
-rw-r--r-- | app-editors/kakoune/files/kakoune-2021.08.28-php-filetype-fix.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app-editors/kakoune/files/kakoune-2021.08.28-php-filetype-fix.patch b/app-editors/kakoune/files/kakoune-2021.08.28-php-filetype-fix.patch new file mode 100644 index 000000000000..b4a7cc439f36 --- /dev/null +++ b/app-editors/kakoune/files/kakoune-2021.08.28-php-filetype-fix.patch @@ -0,0 +1,13 @@ +diff --git a/rc/filetype/php.kak b/rc/filetype/php.kak +index be03de9e..97bdbfe3 100644 +--- a/rc/filetype/php.kak ++++ b/rc/filetype/php.kak +@@ -85,7 +85,7 @@ define-command -hidden php-indent-on-char %< + define-command -hidden php-insert-on-new-line %< + evaluate-commands -draft -itersel %< + # copy // comments or docblock * prefix and following white spaces +- try %{ execute-keys -draft s [^/] <ret> k <a-x> s ^\h*\K(?://|[*][^/])\h* <ret> y gh j P ++ try %{ execute-keys -draft s [^/] <ret> k <a-x> s ^\h*\K(?://|[*][^/])\h* <ret> y gh j P } + # append " * " on lines starting a multiline /** or /* comment + try %{ execute-keys -draft k <a-x> s ^\h*/[*][* ]? <ret> j gi i <space>*<space> } + > |