Merge remote-tracking branch '4d47/php-comments'

This commit is contained in:
Maxime Coste 2017-01-29 14:43:59 +00:00
commit e2d24701fa
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ hook global BufSetOption filetype=asciidoc %{
set buffer comment_block '///:///'
}
hook global BufSetOption filetype=(c|cpp|go|java|javascript|objc|sass|scala|scss|swift) %{
hook global BufSetOption filetype=(c|cpp|go|java|javascript|objc|php|sass|scala|scss|swift) %{
set buffer comment_line '//'
set buffer comment_block '/*:*/'
}

View File

@ -12,7 +12,8 @@ add-highlighter -group / regions -default code php \
double_string '"' (?<!\\)(\\\\)*" '' \
single_string "'" (?<!\\)(\\\\)*' '' \
comment // '$' '' \
comment /\* \*/ ''
comment /\* \*/ '' \
comment '#' '$' ''
add-highlighter -group /php/double_string fill string
add-highlighter -group /php/single_string fill string