From: Wilhelm H Kirschbaum Date: Sat, 7 Oct 2023 08:37:49 +0000 (+0200) Subject: Simplify sigil font-lock match for elixir-ts-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2c72eecbaa4747ae287c0ab86810cfc1d3e87eb7;p=emacs.git Simplify sigil font-lock match for elixir-ts-mode There is no need to match on specific sigils, except for regex. * lisp/progmodes/elixir-ts-mode.el (elixir-ts--font-lock-settings): Update sigil match (bug#64275). --- diff --git a/lisp/progmodes/elixir-ts-mode.el b/lisp/progmodes/elixir-ts-mode.el index 2ddce3de105..05edb4159a1 100644 --- a/lisp/progmodes/elixir-ts-mode.el +++ b/lisp/progmodes/elixir-ts-mode.el @@ -469,12 +469,11 @@ :override t `((sigil (sigil_name) @elixir-ts-font-sigil-name-face - (:match "^[sSwWpPUD]$" @elixir-ts-font-sigil-name-face)) + (:match "^[^HF]$" @elixir-ts-font-sigil-name-face)) @font-lock-string-face (sigil - "~" @font-lock-string-face - (sigil_name) @elixir-ts-font-sigil-name-face - (:match "^[rR]$" @elixir-ts-font-sigil-name-face)) + (sigil_name) @font-lock-regexp-face + (:match "^[rR]$" @font-lock-regexp-face)) @font-lock-regexp-face (sigil "~" @font-lock-string-face