Skip to content

Commit 2d0a01e

Browse files
committed
$that is not special variable.
1 parent 4347837 commit 2d0a01e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

php-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ a completion list."
13931393
("\\(->\\)\\(\\sw+\\)\\s-*(" (1 'php-object-op) (2 'php-method-call))
13941394

13951395
;; Highlight special variables
1396-
("\\(\\$\\)\\(this\\|that\\)\\_>" (1 'php-$this-sigil) (2 'php-$this))
1396+
("\\(\\$\\)\\(this\\)\\>" (1 'php-$this-sigil) (2 'php-$this))
13971397
("\\(\\$+\\)\\(\\sw+\\)" (1 'php-variable-sigil) (2 'php-variable-name))
13981398
("\\(->\\)\\([a-zA-Z0-9_]+\\)" (1 'php-object-op) (2 'php-property-name))
13991399

tests/issue-201.php.faces

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
("$" . php-$this-sigil)
1414
("this" . php-$this)
1515
(";\n")
16-
("$" . php-$this-sigil)
17-
("that" . php-$this)
16+
("$" . php-variable-sigil)
17+
("that" . php-variable-name)
1818
(";\n")
1919
("self" . php-keyword)
2020
("::" . php-paamayim-nekudotayim)

0 commit comments

Comments
 (0)