From 97d99358d1ec0b815c4582e2272939243587407a Mon Sep 17 00:00:00 2001 From: Mathieu Gagnon Date: Sun, 29 Jan 2017 06:23:11 -0500 Subject: [PATCH 2/3] Set commenting options for php The defaults are working but using c-family style is more idiomatic, it also enable support for `comment-selection`. --- rc/core/commenting.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/core/commenting.kak b/rc/core/commenting.kak index 7e89d749..43ae7f59 100644 --- a/rc/core/commenting.kak +++ b/rc/core/commenting.kak @@ -9,7 +9,7 @@ hook global BufSetOption filetype=asciidoc %{ set buffer comment_selection_chars '///:///' } -hook global BufSetOption filetype=(c|cpp|go|java|javascript|objc|sass|scala|scss|swift) %{ +hook global BufSetOption filetype=(c|cpp|go|java|javascript|objc|php|sass|scala|scss|swift) %{ set buffer comment_line_chars '//' set buffer comment_selection_chars '/*:*/' } From ee9482d90defb7a11badf3000f1243db82779d3e Mon Sep 17 00:00:00 2001 From: Mathieu Gagnon Date: Sun, 29 Jan 2017 06:28:28 -0500 Subject: [PATCH 3/3] Add octothorpe to php comment highlighters --- rc/extra/php.kak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rc/extra/php.kak b/rc/extra/php.kak index 563ccf98..7889c2a5 100644 --- a/rc/extra/php.kak +++ b/rc/extra/php.kak @@ -12,7 +12,8 @@ add-highlighter -group / regions -default code php \ double_string '"' (?