summaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/php-face.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/lisp/php-face.el')
-rw-r--r--.emacs.d/lisp/php-face.el77
1 files changed, 51 insertions, 26 deletions
diff --git a/.emacs.d/lisp/php-face.el b/.emacs.d/lisp/php-face.el
index e01d517..a674dd4 100644
--- a/.emacs.d/lisp/php-face.el
+++ b/.emacs.d/lisp/php-face.el
@@ -4,7 +4,7 @@
4 4
5;; Author: USAMI Kenta <tadsan@zonu.me> 5;; Author: USAMI Kenta <tadsan@zonu.me>
6;; Created: 5 May 2019 6;; Created: 5 May 2019
7;; Version: 1.21.2 7;; Version: 1.21.3
8;; Keywords: faces, php 8;; Keywords: faces, php
9;; Homepage: https://github.com/emacs-php/php-mode 9;; Homepage: https://github.com/emacs-php/php-mode
10;; Package-Requires: ((emacs "24.3")) 10;; Package-Requires: ((emacs "24.3"))
@@ -38,103 +38,128 @@
38 38
39(defface php-string '((t (:inherit font-lock-string-face))) 39(defface php-string '((t (:inherit font-lock-string-face)))
40 "PHP Mode face used to highlight string literals." 40 "PHP Mode face used to highlight string literals."
41 :group 'php-faces) 41 :group 'php-faces
42 :tag "PHP String")
42 43
43(defface php-keyword '((t (:inherit font-lock-keyword-face))) 44(defface php-keyword '((t (:inherit font-lock-keyword-face)))
44 "PHP Mode face used to highlight keywords." 45 "PHP Mode face used to highlight keywords."
45 :group 'php-faces) 46 :group 'php-faces
47 :tag "PHP Keyword")
46 48
47(defface php-builtin '((t (:inherit font-lock-builtin-face))) 49(defface php-builtin '((t (:inherit font-lock-builtin-face)))
48 "PHP Mode face used to highlight builtins." 50 "PHP Mode face used to highlight builtins."
49 :group 'php-faces) 51 :group 'php-faces
52 :tag "PHP Built-in")
50 53
51(defface php-function-name '((t (:inherit font-lock-function-name-face))) 54(defface php-function-name '((t (:inherit font-lock-function-name-face)))
52 "PHP Mode face used to highlight function names." 55 "PHP Mode face used to highlight function names."
53 :group 'php-faces) 56 :group 'php-faces
57 :tag "PHP Function Name")
54 58
55(defface php-function-call '((t (:inherit default))) 59(defface php-function-call '((t (:inherit default)))
56 "PHP Mode face used to highlight function names in calles." 60 "PHP Mode face used to highlight function names in calles."
57 :group 'php-faces) 61 :group 'php-faces
62 :tag "PHP Function Call")
58 63
59(defface php-method-call '((t (:inherit php-function-call))) 64(defface php-method-call '((t (:inherit php-function-call)))
60 "PHP Mode face used to highlight method names in calles." 65 "PHP Mode face used to highlight method names in calles."
61 :group 'php-faces) 66 :group 'php-faces
67 :tag "PHP Method Call")
62 68
63(defface php-static-method-call '((t (:inherit php-method-call))) 69(defface php-static-method-call '((t (:inherit php-method-call)))
64 "PHP Mode face used to highlight static method names in calles." 70 "PHP Mode face used to highlight static method names in calles."
65 :group 'php-faces) 71 :group 'php-faces
72 :tag "PHP Static Method Call")
66 73
67(defface php-variable-name '((t (:inherit font-lock-variable-name-face))) 74(defface php-variable-name '((t (:inherit font-lock-variable-name-face)))
68 "PHP Mode face used to highlight variable names." 75 "PHP Mode face used to highlight variable names."
69 :group 'php-faces) 76 :group 'php-faces
77 :tag "PHP Variable Name")
70 78
71(defface php-property-name '((t (:inherit php-variable-name))) 79(defface php-property-name '((t (:inherit php-variable-name)))
72 "PHP Mode face used to highlight property names." 80 "PHP Mode face used to highlight property names."
73 :group 'php-faces) 81 :group 'php-faces
82 :tag "PHP Property Name")
74 83
75(defface php-variable-sigil '((t (:inherit default))) 84(defface php-variable-sigil '((t (:inherit default)))
76 "PHP Mode face used to highlight variable sigils ($)." 85 "PHP Mode face used to highlight variable sigils ($)."
77 :group 'php-faces) 86 :group 'php-faces
87 :tag "PHP Variable Sigil")
78 88
79(defface php-object-op '((t (:inherit default))) 89(defface php-object-op '((t (:inherit default)))
80 "PHP Mode face used to object operators (->)." 90 "PHP Mode face used to object operators (->)."
81 :group 'php-faces) 91 :group 'php-faces
92 :tag "PHP Object Op")
82 93
83(defface php-paamayim-nekudotayim '((t (:inherit default))) 94(defface php-paamayim-nekudotayim '((t (:inherit default)))
84 "PHP Mode face used to highlight \"Paamayim Nekudotayim\" scope resolution operators (::)." 95 "PHP Mode face used to highlight \"Paamayim Nekudotayim\" scope resolution operators (::)."
85 :group 'php-faces) 96 :group 'php-faces
97 :tag "PHP Paamayim Nekudotayim")
86 98
87(defface php-type '((t (:inherit font-lock-type-face))) 99(defface php-type '((t (:inherit font-lock-type-face)))
88 "PHP Mode face used to highlight types." 100 "PHP Mode face used to highlight types."
89 :group 'php-faces) 101 :group 'php-faces
102 :tag "PHP Type")
90 103
91(defface php-constant '((t (:inherit font-lock-constant-face))) 104(defface php-constant '((t (:inherit font-lock-constant-face)))
92 "PHP Mode face used to highlight constants." 105 "PHP Mode face used to highlight constants."
93 :group 'php-faces) 106 :group 'php-faces
107 :tag "PHP Constant")
94 108
95(defface php-constant-assign '((t (:inherit font-lock-type-face))) 109(defface php-constant-assign '((t (:inherit font-lock-type-face)))
96 "PHP Mode face used to highlight constant assigning (\"const\" statement)." 110 "PHP Mode face used to highlight constant assigning (\"const\" statement)."
97 :group 'php-faces) 111 :group 'php-faces
112 :tag "PHP Constant Assign")
98 113
99(defface php-magical-constant '((t (:inherit font-lock-builtin-face))) 114(defface php-magical-constant '((t (:inherit font-lock-builtin-face)))
100 "PHP Mode face used to highlight magical constants." 115 "PHP Mode face used to highlight magical constants."
101 :group 'php-faces) 116 :group 'php-faces
117 :tag "PHP Magical Constant")
102 118
103(defface php-$this '((t (:inherit php-constant))) 119(defface php-$this '((t (:inherit php-constant)))
104 "PHP Mode face used to highlight $this variables." 120 "PHP Mode face used to highlight $this variables."
105 :group 'php-faces) 121 :group 'php-faces
122 :tag "PHP $this")
106 123
107(defface php-$this-sigil '((t (:inherit php-constant))) 124(defface php-$this-sigil '((t (:inherit php-constant)))
108 "PHP Mode face used to highlight sigils($) of $this variable." 125 "PHP Mode face used to highlight sigils($) of $this variable."
109 :group 'php-faces) 126 :group 'php-faces
127 :tag "PHP $this Sigil")
110 128
111(defface php-errorcontrol-op '((t (:inherit font-lock-type-face))) 129(defface php-errorcontrol-op '((t (:inherit font-lock-type-face)))
112 "PHP Mode face used to highlight errorcontrol operators (@).." 130 "PHP Mode face used to highlight errorcontrol operators (@).."
113 :group 'php-face) 131 :group 'php-faces
132 :tag "PHP ErrorControl Op")
114 133
115(defface php-php-tag '((t (:inherit font-lock-preprocessor-face))) 134(defface php-php-tag '((t (:inherit font-lock-preprocessor-face)))
116 "PHP Mode face used to highlight PHP tags." 135 "PHP Mode face used to highlight PHP tags."
117 :group 'php-faces) 136 :group 'php-faces
137 :tag "PHP php Tag")
118 138
119(defface php-doc-annotation-tag '((t . (:inherit font-lock-constant-face))) 139(defface php-doc-annotation-tag '((t . (:inherit font-lock-constant-face)))
120 "Face used to highlight annotation tags in doc-comment." 140 "Face used to highlight annotation tags in doc-comment."
121 :group 'php-faces) 141 :group 'php-faces
142 :tag "PHPDoc Annotation Tag")
122 143
123(defface php-doc-variable-sigil '((t (:inherit font-lock-variable-name-face))) 144(defface php-doc-variable-sigil '((t (:inherit font-lock-variable-name-face)))
124 "PHP Mode face used to highlight variable sigils($)." 145 "PHP Mode face used to highlight variable sigils($)."
125 :group 'php-faces) 146 :group 'php-faces
147 :tag "PHPDoc Variable Sigil")
126 148
127(defface php-doc-$this '((t (:inherit php-type))) 149(defface php-doc-$this '((t (:inherit php-type)))
128 "PHP Mode face used to highlight $this variable in doc-comment." 150 "PHP Mode face used to highlight $this variable in doc-comment."
129 :group 'php-faces) 151 :group 'php-faces
152 :tag "PHPDoc $this")
130 153
131(defface php-doc-$this-sigil '((t (:inherit php-type))) 154(defface php-doc-$this-sigil '((t (:inherit php-type)))
132 "PHP Mode face used to highlight sigil of $this variable in doc-comment." 155 "PHP Mode face used to highlight sigil of $this variable in doc-comment."
133 :group 'php-faces) 156 :group 'php-faces
157 :tag "PHPDoc $this Sigil")
134 158
135(defface php-doc-class-name '((t (:inherit php-string))) 159(defface php-doc-class-name '((t (:inherit php-string)))
136 "Face used to class names in doc-comment." 160 "Face used to class names in doc-comment."
137 :group 'php-faces) 161 :group 'php-faces
162 :tag "PHPDoc Class Name")
138 163
139(define-obsolete-face-alias 'php-annotations-annotation-face 'php-doc-annotation-tag "1.19.0") 164(define-obsolete-face-alias 'php-annotations-annotation-face 'php-doc-annotation-tag "1.19.0")
140 165