diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2016-05-02 10:42:37 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2016-05-02 10:42:37 +0200 |
commit | 5dd1a7e83966c92d220073185f1738dfe441f59e (patch) | |
tree | 9c4bee389a51a9bb111dcc894c9db0f6d1809d81 /syntax/php.vim | |
parent | bc098370c1bb81840734f5764f431dee270e75ce (diff) | |
download | vim-polyglot-5dd1a7e83966c92d220073185f1738dfe441f59e.tar.gz vim-polyglot-5dd1a7e83966c92d220073185f1738dfe441f59e.zip |
Update
Diffstat (limited to 'syntax/php.vim')
-rw-r--r-- | syntax/php.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/syntax/php.vim b/syntax/php.vim index ba396037..007ddbd2 100644 --- a/syntax/php.vim +++ b/syntax/php.vim @@ -539,6 +539,8 @@ syn match phpMemberSelector "->\|::" contained display syn match phpVarSelector "\$" contained display " highlight static and object variables inside strings syn match phpMethodsVar "\%(->\|::$\?\)\h\w*" contained contains=phpMethods,phpMemberSelector,phpIdentifier display containedin=phpStringDouble +syn match phpMethodsVar "\%(->\|::\%($\)\@!\)\s*\h\w*\s*("me=e-1 skipwhite skipempty contained contains=phpMemberSelector,phpMethod display containedin=phpStringDouble +syn match phpMethod /\h\w*/ syn match phpSplatOperator "\.\.\." contained display " Identifier @@ -597,7 +599,7 @@ syn match phpCommentStar contained "^\s*\*$" if !exists("php_ignore_phpdoc") || !php_ignore_phpdoc syn case ignore - SynFoldDoc syn region phpDocComment start="/\*\*" end="\*/" keepend contains=phpCommentTitle,phpDocTags,phpTodo,@Spell + SynFoldDoc syn region phpDocComment start="/\*\*" end="\*/" keepend contains=phpCommentTitle,phpDocTags,phpTodo,@Spell extend syn region phpCommentTitle contained matchgroup=phpDocComment start="/\*\*" matchgroup=phpCommentTitle keepend end="\.$" end="\.[ \t\r<&]"me=e-1 end="[^{]@"me=s-2,he=s-1 end="\*/"me=s-1,he=s-1 contains=phpCommentStar,phpTodo,phpDocTags,@Spell containedin=phpDocComment syn region phpDocTags start="{@\(example\|id\|internal\|inheritdoc\|link\|source\|toc\|tutorial\)" end="}" containedin=phpDocComment @@ -849,7 +851,7 @@ let b:current_syntax = "php" let &iskeyword = s:iskeyword_save unlet s:iskeyword_save -if main_syntax == 'php' +if (exists("main_syntax") && main_syntax == 'php') unlet main_syntax endif |