Skip to content

Commit d4f4bdf

Browse files
committed
Fix regular expression for highlighting $this, $that
Thanks phil-s.
1 parent ae210e7 commit d4f4bdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ a completion list."
13281328
("->\\(\\sw+\\)\\s-*(" 1 'default)
13291329

13301330
;; Highlight special variables
1331-
("\\$\\(this\\|that\\)" 1 font-lock-constant-face)
1331+
("\\$\\(this\\|that\\)\\_>" 1 font-lock-constant-face)
13321332
("\\(\\$\\|->\\)\\([a-zA-Z0-9_]+\\)" 2 font-lock-variable-name-face)
13331333

13341334
;; Highlight function/method names

0 commit comments

Comments
 (0)