diff options
Diffstat (limited to '.emacs.d/lisp/php-face.el')
| -rw-r--r-- | .emacs.d/lisp/php-face.el | 207 |
1 files changed, 0 insertions, 207 deletions
diff --git a/.emacs.d/lisp/php-face.el b/.emacs.d/lisp/php-face.el deleted file mode 100644 index 5f40257..0000000 --- a/.emacs.d/lisp/php-face.el +++ /dev/null | |||
| @@ -1,207 +0,0 @@ | |||
| 1 | ;;; php-face.el --- Face definitions for PHP script -*- lexical-binding: t; -*- | ||
| 2 | |||
| 3 | ;; Copyright (C) 2019 Friends of Emacs-PHP development | ||
| 4 | |||
| 5 | ;; Author: USAMI Kenta <tadsan@zonu.me> | ||
| 6 | ;; Created: 5 May 2019 | ||
| 7 | ;; Version: 1.22.1 | ||
| 8 | ;; Keywords: faces, php | ||
| 9 | ;; Homepage: https://github.com/emacs-php/php-mode | ||
| 10 | ;; Package-Requires: ((emacs "24.3")) | ||
| 11 | ;; License: GPL-3.0-or-later | ||
| 12 | |||
| 13 | ;; This program is free software; you can redistribute it and/or modify | ||
| 14 | ;; it under the terms of the GNU General Public License as published by | ||
| 15 | ;; the Free Software Foundation, either version 3 of the License, or | ||
| 16 | ;; (at your option) any later version. | ||
| 17 | |||
| 18 | ;; This program is distributed in the hope that it will be useful, | ||
| 19 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 20 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 21 | ;; GNU General Public License for more details. | ||
| 22 | |||
| 23 | ;; You should have received a copy of the GNU General Public License | ||
| 24 | ;; along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
| 25 | |||
| 26 | ;;; Commentary: | ||
| 27 | |||
| 28 | ;; Face definitions for PHP script. | ||
| 29 | |||
| 30 | ;;; Code: | ||
| 31 | |||
| 32 | ;;;###autoload | ||
| 33 | (defgroup php-faces nil | ||
| 34 | "Faces used in PHP Mode" | ||
| 35 | :tag "PHP Faces" | ||
| 36 | :group 'php-mode | ||
| 37 | :group 'faces) | ||
| 38 | |||
| 39 | (defface php-string '((t (:inherit font-lock-string-face))) | ||
| 40 | "PHP Mode face used to highlight string literals." | ||
| 41 | :group 'php-faces | ||
| 42 | :tag "PHP String") | ||
| 43 | |||
| 44 | (defface php-keyword '((t (:inherit font-lock-keyword-face))) | ||
| 45 | "PHP Mode face used to highlight keywords." | ||
| 46 | :group 'php-faces | ||
| 47 | :tag "PHP Keyword") | ||
| 48 | |||
| 49 | (defface php-builtin '((t (:inherit font-lock-builtin-face))) | ||
| 50 | "PHP Mode face used to highlight builtins." | ||
| 51 | :group 'php-faces | ||
| 52 | :tag "PHP Built-in") | ||
| 53 | |||
| 54 | (defface php-function-name '((t (:inherit font-lock-function-name-face))) | ||
| 55 | "PHP Mode face used to highlight function names." | ||
| 56 | :group 'php-faces | ||
| 57 | :tag "PHP Function Name") | ||
| 58 | |||
| 59 | (defface php-function-call '((t ())) | ||
| 60 | "PHP Mode face used to highlight function names in calles." | ||
| 61 | :group 'php-faces | ||
| 62 | :tag "PHP Function Call") | ||
| 63 | |||
| 64 | (defface php-method-call '((t (:inherit php-function-call))) | ||
| 65 | "PHP Mode face used to highlight method names in calles." | ||
| 66 | :group 'php-faces | ||
| 67 | :tag "PHP Method Call") | ||
| 68 | |||
| 69 | (defface php-static-method-call '((t (:inherit php-method-call))) | ||
| 70 | "PHP Mode face used to highlight static method names in calles." | ||
| 71 | :group 'php-faces | ||
| 72 | :tag "PHP Static Method Call") | ||
| 73 | |||
| 74 | (defface php-variable-name '((t (:inherit font-lock-variable-name-face))) | ||
| 75 | "PHP Mode face used to highlight variable names." | ||
| 76 | :group 'php-faces | ||
| 77 | :tag "PHP Variable Name") | ||
| 78 | |||
| 79 | (defface php-property-name '((t (:inherit php-variable-name))) | ||
| 80 | "PHP Mode face used to highlight property names." | ||
| 81 | :group 'php-faces | ||
| 82 | :tag "PHP Property Name") | ||
| 83 | |||
| 84 | (defface php-variable-sigil '((t ())) | ||
| 85 | "PHP Mode face used to highlight variable sigils ($)." | ||
| 86 | :group 'php-faces | ||
| 87 | :tag "PHP Variable Sigil") | ||
| 88 | |||
| 89 | (defface php-operator '((t ())) | ||
| 90 | "PHP Mode face used to operators." | ||
| 91 | :group 'php-faces | ||
| 92 | :tag "PHP Operator") | ||
| 93 | |||
| 94 | (defface php-assignment-op '((t (:inherit php-operator))) | ||
| 95 | "PHP Mode face used to assignment operators (=, +=, ...)." | ||
| 96 | :group 'php-faces | ||
| 97 | :tag "PHP Object Op") | ||
| 98 | |||
| 99 | (defface php-comparison-op '((t (:inherit php-operator))) | ||
| 100 | "PHP Mode face used to comparison operators (==, !=, ===, ...)." | ||
| 101 | :group 'php-faces | ||
| 102 | :tag "PHP Comparison Op") | ||
| 103 | |||
| 104 | (defface php-logical-op '((t (:inherit php-operator))) | ||
| 105 | "PHP Mode face used to logical operators (&&, ||, ?:)." | ||
| 106 | :group 'php-faces | ||
| 107 | :tag "PHP Logical Op") | ||
| 108 | |||
| 109 | (defface php-arithmetic-op '((t (:inherit php-operator))) | ||
| 110 | "PHP Mode face used to arithmetic operators (+, -, %, ...)." | ||
| 111 | :group 'php-faces | ||
| 112 | :tag "PHP Arithmetic Op") | ||
| 113 | |||
| 114 | (defface php-inc-dec-op '((t (:inherit php-operator))) | ||
| 115 | "PHP Mode face used to increment and decremt operators (--, ++)." | ||
| 116 | :group 'php-faces | ||
| 117 | :tag "PHP Increment/Decrement Op") | ||
| 118 | |||
| 119 | (defface php-string-op '((t (:inherit php-operator))) | ||
| 120 | "PHP Mode face used to logical operators (.)." | ||
| 121 | :group 'php-faces | ||
| 122 | :tag "PHP String Op") | ||
| 123 | |||
| 124 | (defface php-object-op '((t (:inherit php-operator))) | ||
| 125 | "PHP Mode face used to object operators (->)." | ||
| 126 | :group 'php-faces | ||
| 127 | :tag "PHP Object Op") | ||
| 128 | |||
| 129 | (defface php-paamayim-nekudotayim '((t ())) | ||
| 130 | "PHP Mode face used to highlight \"Paamayim Nekudotayim\" scope resolution operators (::)." | ||
| 131 | :group 'php-faces | ||
| 132 | :tag "PHP Paamayim Nekudotayim") | ||
| 133 | |||
| 134 | (defface php-type '((t (:inherit font-lock-type-face))) | ||
| 135 | "PHP Mode face used to highlight types." | ||
| 136 | :group 'php-faces | ||
| 137 | :tag "PHP Type") | ||
| 138 | |||
| 139 | (defface php-class '((t (:inherit font-lock-type-face))) | ||
| 140 | "PHP Mode face used to highlight class." | ||
| 141 | :group 'php-faces | ||
| 142 | :tag "PHP Class") | ||
| 143 | |||
| 144 | (defface php-constant '((t (:inherit font-lock-constant-face))) | ||
| 145 | "PHP Mode face used to highlight constants." | ||
| 146 | :group 'php-faces | ||
| 147 | :tag "PHP Constant") | ||
| 148 | |||
| 149 | (defface php-constant-assign '((t (:inherit font-lock-type-face))) | ||
| 150 | "PHP Mode face used to highlight constant assigning (\"const\" statement)." | ||
| 151 | :group 'php-faces | ||
| 152 | :tag "PHP Constant Assign") | ||
| 153 | |||
| 154 | (defface php-magical-constant '((t (:inherit font-lock-builtin-face))) | ||
| 155 | "PHP Mode face used to highlight magical constants." | ||
| 156 | :group 'php-faces | ||
| 157 | :tag "PHP Magical Constant") | ||
| 158 | |||
| 159 | (defface php-$this '((t (:inherit php-constant))) | ||
| 160 | "PHP Mode face used to highlight $this variables." | ||
| 161 | :group 'php-faces | ||
| 162 | :tag "PHP $this") | ||
| 163 | |||
| 164 | (defface php-$this-sigil '((t (:inherit php-constant))) | ||
| 165 | "PHP Mode face used to highlight sigils($) of $this variable." | ||
| 166 | :group 'php-faces | ||
| 167 | :tag "PHP $this Sigil") | ||
| 168 | |||
| 169 | (defface php-errorcontrol-op '((t (:inherit font-lock-type-face))) | ||
| 170 | "PHP Mode face used to highlight errorcontrol operators (@).." | ||
| 171 | :group 'php-faces | ||
| 172 | :tag "PHP ErrorControl Op") | ||
| 173 | |||
| 174 | (defface php-php-tag '((t (:inherit font-lock-preprocessor-face))) | ||
| 175 | "PHP Mode face used to highlight PHP tags." | ||
| 176 | :group 'php-faces | ||
| 177 | :tag "PHP php Tag") | ||
| 178 | |||
| 179 | (defface php-doc-annotation-tag '((t . (:inherit font-lock-constant-face))) | ||
| 180 | "Face used to highlight annotation tags in doc-comment." | ||
| 181 | :group 'php-faces | ||
| 182 | :tag "PHPDoc Annotation Tag") | ||
| 183 | |||
| 184 | (defface php-doc-variable-sigil '((t (:inherit font-lock-variable-name-face))) | ||
| 185 | "PHP Mode face used to highlight variable sigils($)." | ||
| 186 | :group 'php-faces | ||
| 187 | :tag "PHPDoc Variable Sigil") | ||
| 188 | |||
| 189 | (defface php-doc-$this '((t (:inherit php-type))) | ||
| 190 | "PHP Mode face used to highlight $this variable in doc-comment." | ||
| 191 | :group 'php-faces | ||
| 192 | :tag "PHPDoc $this") | ||
| 193 | |||
| 194 | (defface php-doc-$this-sigil '((t (:inherit php-type))) | ||
| 195 | "PHP Mode face used to highlight sigil of $this variable in doc-comment." | ||
| 196 | :group 'php-faces | ||
| 197 | :tag "PHPDoc $this Sigil") | ||
| 198 | |||
| 199 | (defface php-doc-class-name '((t (:inherit php-string))) | ||
| 200 | "Face used to class names in doc-comment." | ||
| 201 | :group 'php-faces | ||
| 202 | :tag "PHPDoc Class Name") | ||
| 203 | |||
| 204 | (define-obsolete-face-alias 'php-annotations-annotation-face 'php-doc-annotation-tag "1.19.0") | ||
| 205 | |||
| 206 | (provide 'php-face) | ||
| 207 | ;;; php-face.el ends here | ||
