php-mode
php-mode copied to clipboard
Symbol highlight
I've started using highlight-symbol package.
When I turn on hl-s-mode, it highlights only function names and strings, but no variables.
At the same time, when I use highlight-symbol-next
command it works fine: navigate me through variables too.
Link to the same issue on hl-s: https://github.com/nschum/highlight-symbol.el/issues/46
I've had a similar as well for some time (using idle-highlight-mode) and the issue seems to be related to php-mode. (No other modes are affected that I have discovered.)
Steps to reproduce, run emacs -Q
, open a php file, move point to a local variable (not an object property), and run M-x highlight-symbol-at-point
. Notice the symbol does not highlight.
Attached is a screenshot that shows this happening with the variable named $workers
. Some things do highlight, like comments, and function names, but not the actual variable.