Apparently you can get a little performance boost in PHP by using fully qualified function calls, i.e. by writing backslash before (some) functions. As of now, RJ TE can't recognize functions' names preceded by this char:
Could you please add support for it, just as negation (i.e. !) is supported?
DONE? Highlight fully qualified PHP function calls
DONE? Highlight fully qualified PHP function calls
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
- Rickard Johansson
- Site Admin
- Posts: 6783
- Joined: 19 Jul 2006 14:29
Re: Highlight fully qualified PHP function calls
Made some extensive changes to the PHP syntax file to use regular expressions for class and functions. It should handle qualified PHP function calls.
Please test it and let me know what you think.
Please test it and let me know what you think.
Re: Highlight fully qualified PHP function calls
Frankly, I'm not sure where to look; I can't see any difference, with one exception: there's no "function" entry in theme's customization window, so functions aren't highlighted at all. Is it your intention?
Btw, is language server going to support semantic highlighting somehow? If so, perhaps it's better to implement any changes in syntax files later, provided you want to support semantic highlighting at all
Btw, is language server going to support semantic highlighting somehow? If so, perhaps it's better to implement any changes in syntax files later, provided you want to support semantic highlighting at all

Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus