mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-23 15:23:29 +03:00
Add support for PHP heredoc in syntax highlighting
This commit is contained in:
parent
9acd4e62dc
commit
c7880932c4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user