- syn match phpInterpEmptyKey "\[\]" contained display
- syn match phpInterpEmptyKey "->[^a-zA-Z_]" contained display
- syn match phpInterpBogusDollarCurley "${\H\?}"
- syn match phpInterpSimple "\$\h\w*\(\[\w*\]\|->\h*\w*\)\?" contained contains=phpIdentifier,phpInterpEmptyKey,phpMethods,phpMemberSelector display
+ " errors
+ syn match phpInterpEmptyKey "\[\]" contained display
+ syn match phpInterpEmptyKey "->[^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 phpBrackets "[][}{]" contained display
+ syn match phpinterpSimpleBracketsInner "\w\+" contained
+ syn match phpInterpSimpleBrackets "\[\w*]" contained contains=phpBrackets,phpInterpSimpleBracketsInner
+ syn match phpInterpSimple "\$\h\w*\(\[\w*\]\|->\h\w*\)\?" contained contains=phpInterpSimpleBrackets,phpIdentifier,phpInterpEmptyKey,phpMethods,phpMemberSelector display