summaryrefslogtreecommitdiff
path: root/rc/filetype/php.kak
diff options
context:
space:
mode:
authorFelix Freeman <sir@hacktivista.com>2019-06-10 12:12:06 -0400
committerFelix Freeman <sir@hacktivista.com>2019-06-10 12:12:06 -0400
commitf246313951b5e9bd27a79d494576bc610413dbb2 (patch)
tree710ee281d69ab1f8f63fdd80bc82c7ae0fb089f7 /rc/filetype/php.kak
parentb0a9bf71082dc0f5f087e47c73f6097359bdf31a (diff)
Consider */ closing comment on PHP automatic indentation prefix
Diffstat (limited to 'rc/filetype/php.kak')
-rw-r--r--rc/filetype/php.kak2
1 files changed, 1 insertions, 1 deletions
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 <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 }
# preserve previous line indent
try %{ execute-keys -draft \; K <a-&> }
# filter previous line