diff options
| author | Wilhelm H Kirschbaum | 2023-10-07 10:37:49 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2023-10-26 03:26:23 +0300 |
| commit | 2c72eecbaa4747ae287c0ab86810cfc1d3e87eb7 (patch) | |
| tree | 35d5d93e066f8ec07a3470bef706e7a9c0c3b06d | |
| parent | 70e25298f160ffec62e363056904b6238a87d4e0 (diff) | |
| download | emacs-2c72eecbaa4747ae287c0ab86810cfc1d3e87eb7.tar.gz emacs-2c72eecbaa4747ae287c0ab86810cfc1d3e87eb7.zip | |
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).
| -rw-r--r-- | lisp/progmodes/elixir-ts-mode.el | 7 |
1 files 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 @@ | |||
| 469 | :override t | 469 | :override t |
| 470 | `((sigil | 470 | `((sigil |
| 471 | (sigil_name) @elixir-ts-font-sigil-name-face | 471 | (sigil_name) @elixir-ts-font-sigil-name-face |
| 472 | (:match "^[sSwWpPUD]$" @elixir-ts-font-sigil-name-face)) | 472 | (:match "^[^HF]$" @elixir-ts-font-sigil-name-face)) |
| 473 | @font-lock-string-face | 473 | @font-lock-string-face |
| 474 | (sigil | 474 | (sigil |
| 475 | "~" @font-lock-string-face | 475 | (sigil_name) @font-lock-regexp-face |
| 476 | (sigil_name) @elixir-ts-font-sigil-name-face | 476 | (:match "^[rR]$" @font-lock-regexp-face)) |
| 477 | (:match "^[rR]$" @elixir-ts-font-sigil-name-face)) | ||
| 478 | @font-lock-regexp-face | 477 | @font-lock-regexp-face |
| 479 | (sigil | 478 | (sigil |
| 480 | "~" @font-lock-string-face | 479 | "~" @font-lock-string-face |