Merge remote-tracking branch 'upstream/master'
Conflicts:
syntax/php.template
syntax/php.vim
Attempted to merge in upstream changes as they claimed to have fixed an issue
that broke spell checking presumably introduced by my branch. I was unable to
get spell checking working with the syntax file that was part of my original
fork: 36ccde5296
Because of this I left my script as is in favor of highlighting just the
@attribute part of the docblock and not highlighting the entire comment string
which appeared visually awkward to me. Ideally I'd love to get spell checking
working in all the places that it should be working but that seems to be a
bigger issue all together.
Also added support for the @usage attribute as it's something that is fairly
common albeit not standard docblocking
This commit is contained in:
commit
dfe51a3864
2 changed files with 2 additions and 2 deletions
|
@ -202,7 +202,7 @@ endif
|
|||
|
||||
" Todo
|
||||
syn keyword phpTodo todo fixme xxx note contained
|
||||
syn match phpCommentSelector "\v\@(return|var|param|abstract|access|author|copyright|deprecated|example|global|ignore|internal|link|name|magic|package|see|since|static|staticvar|subpackage|todo|version)" contained
|
||||
syn match phpCommentSelector "\v\@(return|var|param|abstract|access|author|copyright|deprecated|example|global|ignore|internal|link|name|magic|package|see|since|static|staticvar|subpackage|todo|version|usage)" contained
|
||||
|
||||
" Comment
|
||||
if exists("php_parent_error_open")
|
||||
|
|
|
@ -525,7 +525,7 @@ endif
|
|||
|
||||
" Todo
|
||||
syn keyword phpTodo todo fixme xxx note contained
|
||||
syn match phpCommentSelector "\v\@(return|var|param|abstract|access|author|copyright|deprecated|example|global|ignore|internal|link|name|magic|package|see|since|static|staticvar|subpackage|todo|version)" contained
|
||||
syn match phpCommentSelector "\v\@(return|var|param|abstract|access|author|copyright|deprecated|example|global|ignore|internal|link|name|magic|package|see|since|static|staticvar|subpackage|todo|version|usage)" contained
|
||||
|
||||
" Comment
|
||||
if exists("php_parent_error_open")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue