1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-09-11 13:00:41 +03:00

php: improve heredoc

Support nowdoc, and make ';' optional
This commit is contained in:
Willow Barraco 2024-07-17 16:38:56 +02:00
parent fe8a03d158
commit 756a16769c
No known key found for this signature in database
GPG Key ID: EABA44759877E02A

View File

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