[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 2c72eecbaa4: Simplify sigil font-lock match for elixir-ts-mode
From: |
Dmitry Gutov |
Subject: |
master 2c72eecbaa4: Simplify sigil font-lock match for elixir-ts-mode |
Date: |
Wed, 25 Oct 2023 20:26:50 -0400 (EDT) |
branch: master
commit 2c72eecbaa4747ae287c0ab86810cfc1d3e87eb7
Author: Wilhelm H Kirschbaum <wkirschbaum@gmail.com>
Commit: Dmitry Gutov <dmitry@gutov.dev>
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 2c72eecbaa4: Simplify sigil font-lock match for elixir-ts-mode,
Dmitry Gutov <=