StanAngeloff / php.vim

An up-to-date Vim syntax for PHP (7.x supported)
477 stars 69 forks source link

Class constant colorization #62

Closed polc closed 6 years ago

polc commented 8 years ago

Hello, I'm trying to colorize class constant and class attributes the same color than variables.

Do you know how I could proceed ?

Thanks for this great plugin!

StanAngeloff commented 8 years ago

At present both class constants and static properties are highlighted as part of a larger match phpMethodsVar.

I had previously played around with attempting to match constants as part of #55 and didn't get reliable results. If you are happy to play around with the syntax file, give it a go -- you may be luckier than I was. PRs are welcome.