1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-27 12:16:22 +03:00

Add support for PHP heredoc in syntax highlighting

This commit is contained in:
Sidharth Kshatriya 2022-01-13 20:54:15 +05:30
parent 9acd4e62dc
commit c7880932c4

View File

@ -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