summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-01-29 10:19:08 +1100
committerMaxime Coste <mawww@kakoune.org>2022-01-29 10:19:08 +1100
commit28ef698295e567baefb518b21bf2ca1b7331d995 (patch)
treec83d511cfc4cca8145138ea60ac13bcf7882b5ef
parent6c8b7c954f692625f95b79075c641f6def655a28 (diff)
parentc994f4f99203d5ea7bfa55f37ca49d25356c7a2b (diff)
Merge remote-tracking branch 'sidkshatriya/php-syntax-heredoc'
-rw-r--r--rc/filetype/php.kak4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/filetype/php.kak b/rc/filetype/php.kak
index 97bdbfe3..ce5f4352 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
}
@@ -39,7 +39,7 @@ 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
-
+add-highlighter shared/php/heredoc region -match-capture '<<<(.*?)$' '^\h*(.*?);' fill string
add-highlighter shared/php/code/ regex &?\$\w* 0:variable