diff --git a/php-mode.el b/php-mode.el index fcbb223f..5097e7e1 100644 --- a/php-mode.el +++ b/php-mode.el @@ -1653,18 +1653,12 @@ a completion list." ;; Highlight special variables ("\\(\\$\\)\\(this\\|that\\)\\_>" (1 'php-$this-sigil) (2 'php-$this)) - ("\\(\\$\\)\\([a-zA-Z0-9_]+\\)" (1 'php-variable-sigil) (2 'php-variable-name)) + ("\\(\\$+\\)\\(\\sw+\\)" (1 'php-variable-sigil) (2 'php-variable-name)) ("\\(->\\)\\([a-zA-Z0-9_]+\\)" (1 'php-object-op) (2 'php-property-name)) ;; Highlight function/method names ("\\