From f012d08ad3c22a9b4e2dce4d83aa4e33d248215a Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Fri, 29 Jul 2011 02:53:28 -0400 Subject: [PATCH] php.vim: make sure bogus-curly doesn't over-match --- php.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php.vim b/php.vim index 0d4342b..2c49c64 100644 --- a/php.vim +++ b/php.vim @@ -297,10 +297,10 @@ syn region phpIdentifierComplexP matchgroup=phpParent start="\[" end="]" contai " Interpolated indentifiers (inside strings) syn match phpBrackets "[][}{]" contained display " errors - syn match phpInterpSimpleError "\[[^]]*\]" contained display + syn match phpInterpSimpleError "\[[^]]*\]" contained display " fallback (if nothing else matches) syn match phpInterpSimpleError "->[^a-zA-Z_]" contained display " make sure these stay above the correct DollarCurlies so they don't take priority - syn match phpInterpBogusDollarCurley "${.*}" contained display + syn match phpInterpBogusDollarCurley "${[^}]*}" contained display " fallback (if nothing else matches) syn match phpinterpSimpleBracketsInner "\w\+" contained syn match phpInterpSimpleBrackets "\[\h\w*]" contained contains=phpBrackets,phpInterpSimpleBracketsInner syn match phpInterpSimpleBrackets "\[\d\+]" contained contains=phpBrackets,phpInterpSimpleBracketsInner -- 1.7.10.4