From c7880932c421f4ec2e2f2205119a9d41882a47a0 Mon Sep 17 00:00:00 2001 From: Sidharth Kshatriya Date: Thu, 13 Jan 2022 20:54:15 +0530 Subject: [PATCH 1/3] Add support for PHP heredoc in syntax highlighting --- rc/filetype/php.kak | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rc/filetype/php.kak b/rc/filetype/php.kak index 97bdbfe3..254207f8 100644 --- a/rc/filetype/php.kak +++ b/rc/filetype/php.kak @@ -39,7 +39,12 @@ add-highlighter shared/php/doc_comment2 region /\*\* \*/ ref php/d add-highlighter shared/php/comment1 region // '$' fill comment add-highlighter shared/php/comment2 region /\* \*/ fill comment add-highlighter shared/php/comment3 region '#' '$' fill comment - +# Example PHP heredoc: +# echo << Date: Thu, 13 Jan 2022 23:24:26 +0530 Subject: [PATCH 2/3] .phpt (PHP Test) files should also receive PHP syntax highlighting --- rc/filetype/php.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/php.kak b/rc/filetype/php.kak index 254207f8..26bc1616 100644 --- a/rc/filetype/php.kak +++ b/rc/filetype/php.kak @@ -1,7 +1,7 @@ # Detection # ‾‾‾‾‾‾‾‾‾ -hook global BufCreate .*[.](php) %{ +hook global BufCreate .*[.](phpt?) %{ set-option buffer filetype php } From c994f4f99203d5ea7bfa55f37ca49d25356c7a2b Mon Sep 17 00:00:00 2001 From: Sidharth Kshatriya Date: Mon, 24 Jan 2022 19:05:27 +0530 Subject: [PATCH 3/3] Review: remove a comment --- rc/filetype/php.kak | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rc/filetype/php.kak b/rc/filetype/php.kak index 26bc1616..ce5f4352 100644 --- a/rc/filetype/php.kak +++ b/rc/filetype/php.kak @@ -39,11 +39,6 @@ add-highlighter shared/php/doc_comment2 region /\*\* \*/ ref php/d add-highlighter shared/php/comment1 region // '$' fill comment add-highlighter shared/php/comment2 region /\* \*/ fill comment add-highlighter shared/php/comment3 region '#' '$' fill comment -# Example PHP heredoc: -# echo <<