So, taking a look at the syntax highlighting word file, I decided to experiment a little bit. I tried numerous things to no avail, until I finally made just one, small, minor adjustment.
In section /C3 I did the following:
- Code: Select all
** $ & ->
All I did there was add the "->" after the "&". I didn't do a sort, so I'm not sure if it was in the right location, but it worked.
Now, $this still highlights as a keyword. But the ->foobar afterward will highlight as a variable. Also, $foo->bar will highlight entirely as a variable. Then again, $foo->bar() will also highlight as a variable, minus the parentheses. Now, if there were some way to get $foo->bar() to highlight as a function... (There may be, but I haven't had time to work on that one yet.)