From 2c72eecbaa4747ae287c0ab86810cfc1d3e87eb7 Mon Sep 17 00:00:00 2001 From: Wilhelm H Kirschbaum Date: Sat, 7 Oct 2023 10:37:49 +0200 Subject: [PATCH] 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). --- lisp/progmodes/elixir-ts-mode.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.39.2