Skip to content

Commit f70dc95

Browse files
committed
Merge pull request #357 from gausby/remove-elixir-negation-face
Remove elixir-negation-face in favor of font-lock
2 parents 90e292b + 5a59bfa commit f70dc95

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

elixir-mode.el

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,6 @@
7272
(defvar elixir-key-label-offset 0)
7373
(defvar elixir-match-label-offset 2)
7474

75-
(defvar elixir-negation-face 'elixir-negation-face)
76-
(defface elixir-negation-face
77-
'((((class color) (min-colors 88) (background light))
78-
:foreground "#ff4500")
79-
(((class color) (background dark))
80-
(:foreground "#ff4500"))
81-
(t nil))
82-
"For use with standalone \"?\" to indicate code point."
83-
:group 'font-lock-faces)
84-
8575
(defvar elixir-attribute-face 'elixir-attribute-face)
8676
(defface elixir-attribute-face
8777
'((((class color) (min-colors 88) (background light))
@@ -135,7 +125,7 @@
135125
(builtin-namespace . ,(rx symbol-start
136126
(or "import" "require" "use" "alias")
137127
symbol-end))
138-
;; Set aside code point syntax for `elixir-negation-face'.
128+
;; Set aside code point syntax for negation face.
139129
(code-point . ,(rx symbol-start
140130
"?"
141131
anything
@@ -421,7 +411,7 @@ is used to limit the scan."
421411

422412
;; Code points
423413
(,(elixir-rx (group code-point))
424-
1 elixir-negation-face)))
414+
1 font-lock-negation-char-face)))
425415

426416
;;;###autoload
427417
(defun elixir-mode-open-modegithub ()

0 commit comments

Comments
 (0)