X-Git-Url: https://jasonwoof.com/gitweb/?p=vim-syntax.git;a=blobdiff_plain;f=php.vim;fp=php.vim;h=eaf3f6213e0bda7850ab2647199bb50d05e2f37c;hp=ac3b20c0ab867f4bc8cfffcf379d3437215e2526;hb=fb8f7a4e5fa471649ee36e0021fb2966550bba48;hpb=c6013c9d470e024b55848ceeac0eb0e272609f42 diff --git a/php.vim b/php.vim index ac3b20c..eaf3f62 100644 --- a/php.vim +++ b/php.vim @@ -616,6 +616,11 @@ else exec "syn sync fromstart" endif +syntax match phpDocCustomTags "@[a-zA-Z]*\(\s\+\|\n\|\r\)" containedin=phpComment +syntax region phpDocTags start="{@\(example\|id\|internal\|inheritdoc\|link\|source\|toc\|tutorial\)" end="}" containedin=phpComment +syntax match phpDocTags "@\(abstract\|access\|author\|category\|copyright\|deprecated\|example\|final\|global\|ignore\|internal\|license\|link\|method\|name\|package\|param\|property\|return\|see\|since\|static\|staticvar\|subpackage\|tutorial\|uses\|var\|version\|contributor\|modified\|filename\|description\|filesource\|throws\)\(\s\+\)\?" containedin=phpComment +syntax match phpDocTodo "@\(todo\|fixme\|xxx\)\(\s\+\)\?" containedin=phpComment + " Define the default highlighting. " For version 5.7 and earlier: only when not done already " For version 5.8 and later: only when an item doesn't have highlighting yet @@ -630,6 +635,8 @@ if version >= 508 || !exists("did_php_syn_inits") HiLink phpConstant Constant HiLink phpCoreConstant Constant HiLink phpComment Comment + HiLink phpDocTags PreProc + HiLink phpDocCustomTags Type HiLink phpException Exception HiLink phpBoolean Boolean HiLink phpStorageClass StorageClass @@ -668,6 +675,7 @@ if version >= 508 || !exists("did_php_syn_inits") HiLink phpInterpSimpleCurly Delimiter HiLink phpInterpVarname Identifier HiLink phpTodo Todo + HiLink phpDocTodo Todo HiLink phpMemberSelector Structure if exists("php_oldStyle") hi phpIntVar guifg=Red ctermfg=DarkRed