diff options
| author | Sidharth Kshatriya <sid.kshatriya@gmail.com> | 2022-01-13 20:54:15 +0530 |
|---|---|---|
| committer | Sidharth Kshatriya <sid.kshatriya@gmail.com> | 2022-01-13 22:57:10 +0530 |
| commit | c7880932c421f4ec2e2f2205119a9d41882a47a0 (patch) | |
| tree | fb5059bc5f27f50b171f97e7186dfd7fb37c11b4 /rc/filetype/php.kak | |
| parent | 9acd4e62dc485aa7e44a601a0300697f8825a98c (diff) | |
Add support for PHP heredoc in syntax highlighting
Diffstat (limited to 'rc/filetype/php.kak')
| -rw-r--r-- | rc/filetype/php.kak | 7 |
1 files changed, 6 insertions, 1 deletions
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 <<<SOMETHING +# some text +# more text etc. +# SOMETHING; +add-highlighter shared/php/heredoc region -match-capture '<<<(.*?)$' '^\h*(.*?);' fill string add-highlighter shared/php/code/ regex &?\$\w* 0:variable |
