File tree Expand file tree Collapse file tree 10 files changed +27
-19
lines changed
Expand file tree Collapse file tree 10 files changed +27
-19
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ All notable changes of the PHP Mode 1.19.1 release series are documented in this
1515 * Modify indentation of [ PEAR Coding Standards] ([ #774 ] , [ #777 ] )
1616 * No longer overindent it by default, since we don't see any mention in the coding style that it should hang ` . ` . (refs [ #227 ] and [ #229 ] )
1717 * ** If you have any feedback on PEAR style, please let us know in [ the discussion #776 ] [ #776 ] .**
18+ * Remove ` $ ` from face names for interoperability with treesit ([ #780 ] , [ emacs-php/php-ts-mode #68 ] )
19+ * ` php-$this ` → ` php-this `
20+ * ` php-$this-sigil ` → ` php-this-sigil `
1821
1922### Removed
2023
@@ -28,6 +31,8 @@ All notable changes of the PHP Mode 1.19.1 release series are documented in this
2831[ #775 ] : https://github.com/emacs-php/php-mode/pull/775
2932[ #776 ] : https://github.com/emacs-php/php-mode/discussions/776
3033[ #777 ] : https://github.com/emacs-php/php-mode/pull/777
34+ [ #780 ] : https://github.com/emacs-php/php-mode/issues/780
35+ [ emacs-php/php-ts-mode#68 ] : https://github.com/emacs-php/php-ts-mode/pull/68
3136[ PEAR Coding Standards ] : https://pear.php.net/manual/en/standards.php
3237
3338## [ 1.25.1] - 2023-11-24
Original file line number Diff line number Diff line change @@ -156,16 +156,19 @@ The operator is also knows as \"Paamayim Nekudotayim\"."
156156 :group 'php-faces
157157 :tag " PHP Magical Constant" )
158158
159- (defface php-$ this '((t (:inherit php-constant)))
159+ (defface php-this '((t (:inherit php-constant)))
160160 " PHP Mode face used to highlight $this variables."
161161 :group 'php-faces
162162 :tag " PHP $this" )
163163
164- (defface php-$ this-sigil '((t (:inherit php-constant)))
164+ (defface php-this-sigil '((t (:inherit php-constant)))
165165 " PHP Mode face used to highlight sigils($) of $this variable."
166166 :group 'php-faces
167167 :tag " PHP $this Sigil" )
168168
169+ (define-obsolete-face-alias 'php-$this 'php-this " 1.26.0" )
170+ (define-obsolete-face-alias 'php-$this-sigil 'php-this-sigil " 1.26.0" )
171+
169172(defface php-errorcontrol-op '((t (:inherit font-lock-type-face )))
170173 " PHP Mode face used to highlight errorcontrol operators (@).."
171174 :group 'php-faces
Original file line number Diff line number Diff line change @@ -1378,7 +1378,7 @@ for \\[find-tag] (which see)."
13781378 (" \\ (!\\ )[^=]" 1 'php-logical-op )
13791379
13801380 ; ; Highlight special variables
1381- (" \\ (\\ $\\ )\\ (this\\ )\\ >" (1 'php-$ this-sigil ) (2 'php-$ this ))
1381+ (" \\ (\\ $\\ )\\ (this\\ )\\ >" (1 'php-this-sigil ) (2 'php-this ))
13821382 (" \\ (\\ $+\\ )\\ (\\ sw+\\ )" (1 'php-variable-sigil ) (2 'php-variable-name ))
13831383 (" \\ (->\\ )\\ ([a-zA-Z0-9_]+\\ )" (1 'php-object-op ) (2 'php-property-name ))
13841384
Original file line number Diff line number Diff line change 3232 (" " )
3333 (" null" . php-constant)
3434 (" )\n {\n " )
35- (" $" . php-$ this-sigil)
36- (" this" . php-$ this)
35+ (" $" . php-this-sigil)
36+ (" this" . php-this)
3737 (" ->" . php-object-op)
3838 (" string" . php-property-name)
3939 (" " )
5050 (" ()\n {\n " )
5151 (" var_dump" . php-function-call)
5252 (" (" )
53- (" $" . php-$ this-sigil)
54- (" this" . php-$ this)
53+ (" $" . php-this-sigil)
54+ (" this" . php-this)
5555 (" ->" . php-object-op)
5656 (" string" . php-property-name)
5757 (" );\n }\n }\n\n (" )
Original file line number Diff line number Diff line change 103103 (" $" . php-variable-sigil)
104104 (" name" . php-variable-name)
105105 (" )\n {\n " )
106- (" $" . php-$ this-sigil)
107- (" this" . php-$ this)
106+ (" $" . php-this-sigil)
107+ (" this" . php-this)
108108 (" ->" . php-object-op)
109109 (" name" . php-property-name)
110110 (" = " )
Original file line number Diff line number Diff line change 88 (" \n\n " )
99 (" // " . font-lock-comment-delimiter-face )
1010 (" Start:\n " . font-lock-comment-face )
11- (" $" . php-$ this-sigil)
12- (" this" . php-$ this)
11+ (" $" . php-this-sigil)
12+ (" this" . php-this)
1313 (" ;\n " )
1414 (" $" . php-variable-sigil)
1515 (" that" . php-variable-name)
Original file line number Diff line number Diff line change 105105 (" $" . php-variable-sigil)
106106 (" name" . php-variable-name)
107107 (" )\n {\n " )
108- (" $" . php-$ this-sigil)
109- (" this" . php-$ this)
108+ (" $" . php-this-sigil)
109+ (" this" . php-this)
110110 (" ->" . php-object-op)
111111 (" name" . php-property-name)
112112 (" " )
Original file line number Diff line number Diff line change 106106 (" $" . php-variable-sigil)
107107 (" name" . php-variable-name)
108108 (" )\n {\n " )
109- (" $" . php-$ this-sigil)
110- (" this" . php-$ this)
109+ (" $" . php-this-sigil)
110+ (" this" . php-this)
111111 (" ->" . php-object-op)
112112 (" name" . php-property-name)
113113 (" " )
Original file line number Diff line number Diff line change 105105 (" $" . php-variable-sigil)
106106 (" name" . php-variable-name)
107107 (" )\n {\n " )
108- (" $" . php-$ this-sigil)
109- (" this" . php-$ this)
108+ (" $" . php-this-sigil)
109+ (" this" . php-this)
110110 (" ->" . php-object-op)
111111 (" name" . php-property-name)
112112 (" " )
Original file line number Diff line number Diff line change @@ -533,8 +533,8 @@ style from Drupal."
533533 (should (eq 'php-variable-name (get-text-property (1- (point )) 'face )))
534534
535535 (search-forward " $this" )
536- (should (eq 'php-$ this-sigil (get-text-property (match-beginning 0 ) 'face )))
537- (should (eq 'php-$ this (get-text-property (1+ (match-beginning 0 )) 'face )))
536+ (should (eq 'php-this-sigil (get-text-property (match-beginning 0 ) 'face )))
537+ (should (eq 'php-this (get-text-property (1+ (match-beginning 0 )) 'face )))
538538
539539 (search-forward " $x" )
540540 (should (eq 'php-variable-sigil (get-text-property (match-beginning 0 ) 'face )))
You can’t perform that action at this time.
0 commit comments