summaryrefslogtreecommitdiff
path: root/rc/filetype
diff options
context:
space:
mode:
authorWillow Barraco <contact@willowbarraco.fr>2024-07-17 16:38:56 +0200
committerWillow Barraco <contact@willowbarraco.fr>2024-07-17 17:01:45 +0200
commit756a16769cf04c553df636ce68ad416a456713f8 (patch)
treefeda5a7dae0792c5462bae813e3926681441ac22 /rc/filetype
parentfe8a03d15850c31c4c14de6b9957449659736ea4 (diff)
php: improve heredoc
Support nowdoc, and make ';' optional
Diffstat (limited to 'rc/filetype')
-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 62ba6ddd..98da9e02 100644
--- a/rc/filetype/php.kak
+++ b/rc/filetype/php.kak
@@ -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/heredoc region -match-capture '<<<''?(.*?)''?$' '^\h*(.*?);?$' fill string
add-highlighter shared/php/code/ regex &?\$\w* 0:variable