diff --git a/lisp/progmodes/elixir-ts-mode.el b/lisp/progmodes/elixir-ts-mode.el index 1ce9a65a125..41662822713 100644 --- a/lisp/progmodes/elixir-ts-mode.el +++ b/lisp/progmodes/elixir-ts-mode.el @@ -402,11 +402,9 @@ (binary_operator left: (call target: (identifier) @font-lock-function-name-face)))))) - ;; A function definition like "def _foo" is valid, but we should - ;; not apply the comment-face unless its a non-function identifier, so - ;; the comment matches has to be after the function matches. :language 'elixir :feature 'elixir-comment + :override t '((comment) @font-lock-comment-face ((identifier) @font-lock-comment-face (:match "^_[a-z]\\|^_$" @font-lock-comment-face)))