From 65e2b0ae8513f67624f724e76e53ac7e3cc8fcb5 Mon Sep 17 00:00:00 2001 From: Justin Charette Date: Wed, 8 Jan 2014 23:15:33 -0500 Subject: [PATCH] Stop phpDocParam highlight leakage Problem: The new Java-like syntax highligting added phpDocComment, et al. However phpDocParams highlighted indented html tags in a file with no doc comments. Fix: Mark phpDocParams as contained, so phpDocParams must reside in phpDocComments to receive vim highlights. Signed-off-by: Justin Charette --- syntax/php.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/php.vim b/syntax/php.vim index 7e9f7d0..3147e0e 100644 --- a/syntax/php.vim +++ b/syntax/php.vim @@ -420,7 +420,7 @@ if !exists("php_ignore_phpdoc") syn region phpDocTags start="{@\(example\|id\|internal\|inheritdoc\|link\|source\|toc\|tutorial\)" end="}" containedin=phpComment syn 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\|todo\|tutorial\|uses\|var\|version\)\s\+\S\+.*" contains=phpDocParam containedin=phpComment - syn match phpDocParam "\s\S\+" contains=phpDocIdentifier + syn match phpDocParam "\s\S\+" contained contains=phpDocIdentifier syn match phpDocIdentifier contained "$\h\w*" syn match phpDocTags "@filesource" containedin=phpComment