Skip to content

Commit e43cd8c

Browse files
committed
Remove redundant font-lock pattern
1 parent 0ea4fbb commit e43cd8c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Diff for: php-mode.el

+1-7
Original file line numberDiff line numberDiff line change
@@ -1653,18 +1653,12 @@ a completion list."
16531653

16541654
;; Highlight special variables
16551655
("\\(\\$\\)\\(this\\|that\\)\\_>" (1 'php-$this-sigil) (2 'php-$this))
1656-
("\\(\\$\\)\\([a-zA-Z0-9_]+\\)" (1 'php-variable-sigil) (2 'php-variable-name))
1656+
("\\(\\$+\\)\\(\\sw+\\)" (1 'php-variable-sigil) (2 'php-variable-name))
16571657
("\\(->\\)\\([a-zA-Z0-9_]+\\)" (1 'php-object-op) (2 'php-property-name))
16581658

16591659
;; Highlight function/method names
16601660
("\\<function\\s-+&?\\(\\(?:\\sw\\|\\s_\\)+\\)\\s-*(" 1 'php-function-name)
16611661

1662-
;; The dollar sign should not get a variable-name face, below
1663-
;; pattern resets the face to default in case cc-mode sets the
1664-
;; variable-name face (cc-mode does this for variables prefixed
1665-
;; with type, like in arglist)
1666-
("\\(\\$\\)\\(\\sw+\\)" 1 'php-variable-sigil)
1667-
16681662
;; 'array' and 'callable' are keywords, except in the following situations:
16691663
;; - when used as a type hint
16701664
;; - when used as a return type

0 commit comments

Comments
 (0)