]> git.eshelyaron.com Git - emacs.git/commitdiff
Simplify sigil font-lock match for elixir-ts-mode
authorWilhelm H Kirschbaum <wkirschbaum@gmail.com>
Sat, 7 Oct 2023 08:37:49 +0000 (10:37 +0200)
committerDmitry Gutov <dmitry@gutov.dev>
Thu, 26 Oct 2023 00:26:23 +0000 (03:26 +0300)
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

index 2ddce3de105986af820b04a98abb7f4587d5e2bb..05edb4159a14948466549ca8ba72c28004d2e3a6 100644 (file)
    :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