Skip to content

Commit 4ee2f5c

Browse files
committed
Highlight FQCN in phpDocParam.
Fixes StanAngeloff#57. Borrowed syntax from phpClassExtends
1 parent 61292de commit 4ee2f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/php.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ if !exists("php_ignore_phpdoc") || !php_ignore_phpdoc
619619

620620
syn region phpDocTags start="{@\(example\|id\|internal\|inheritdoc\|link\|source\|toc\|tutorial\)" end="}" containedin=phpDocComment
621621
syn match phpDocTags "@\%(abstract\|access\|api\|author\|brief\|bug\|category\|class\|copyright\|created\|date\|deprecated\|details\|example\|exception\|file\|filesource\|final\|global\|id\|ignore\|inheritdoc\|internal\|license\|link\|magic\|method\|name\|package\|param\|property\|return\|see\|since\|source\|static\|staticvar\|struct\|subpackage\|throws\|toc\|todo\|tutorial\|type\|uses\|var\|version\|warning\)" containedin=phpDocComment nextgroup=phpDocParam,phpDocIdentifier skipwhite contained
622-
syn match phpDocParam "\s\+\zs\%(\h\w*|\?\)\+" nextgroup=phpDocIdentifier skipwhite contained
622+
syn match phpDocParam "\s\+\zs\(\\\|\h\w*\)*\h\w*" nextgroup=phpDocIdentifier skipwhite contained
623623
syn match phpDocIdentifier "\s\+\zs$\h\w*" contained
624624

625625
syn case match

0 commit comments

Comments
 (0)