]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve sigil fontification for elixir-ts-mode
authorWilhelm H Kirschbaum <wkirschbaum@gmail.com>
Sun, 2 Apr 2023 09:28:27 +0000 (11:28 +0200)
committerYuan Fu <casouri@gmail.com>
Wed, 5 Apr 2023 06:01:21 +0000 (23:01 -0700)
* lisp/progmodes/elixir-ts-mode.el:
(elixir-ts--font-lock-settings): Update sigil queries.

lisp/progmodes/elixir-ts-mode.el

index e0335fe15ed4f8d9e85c60a790e526b851bff44d..6d7420b63dce1564e719a1ce0ef71c9095744665 100644 (file)
    :override t
    `((sigil
       (sigil_name) @elixir-ts-font-sigil-name-face
-      quoted_start: _ @font-lock-string-face
-      quoted_end: _ @font-lock-string-face
-      (:match "^[sSwWpP]$" @elixir-ts-font-sigil-name-face))
+      (:match "^[sSwWpPUD]$" @elixir-ts-font-sigil-name-face))
      @font-lock-string-face
      (sigil
+      "~" @font-lock-string-face
       (sigil_name) @elixir-ts-font-sigil-name-face
-      quoted_start: _ @font-lock-regex-face
-      quoted_end: _ @font-lock-regex-face
       (:match "^[rR]$" @elixir-ts-font-sigil-name-face))
-     @font-lock-regex-face
+     @font-lock-regexp-face
      (sigil
       "~" @font-lock-string-face
       (sigil_name) @elixir-ts-font-sigil-name-face