Subject: Re: [PATCH] Please install these elixir-ts-mode fixes

From: Wilhelm Kirschbaum <[email-masked]>
Date: Sat, 28 Dec 2024 08:53:32 +0200

On Sat, Dec 28, 2024 at 8:49 AM Wilhelm Kirschbaum <[email-masked]>
wrote:

> Attached are two updates to elixir-ts-mode for minor improvements. Can
> someone please install them if there are no concerns.
>
> The patches are from the emacs-30 branch. I can rebase them on master if
> required?
>
> Kind regards,
> Wilhelm
>

I see there is a typo in the commit message, apologies.

fontication, not fortification.

Modified patch attached.
From 6d31ee4f3dbba849fcaa8454e2aa4facd5a8fa02 Mon Sep 17 00:00:00 2001
From: Wilhelm Kirschbaum <[email-masked]>
Date: Sun, 15 Sep 2024 09:46:35 +0200
Subject: [PATCH 2/2] Add missing fontification matches for elixir-ts-mode

* lisp/progmodes/elixir-ts-mode.el (elixir-ts--font-lock-settings):
Add matches for missing tokens and fix atom type face.
---
 lisp/progmodes/elixir-ts-mode.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/elixir-ts-mode.el b/lisp/progmodes/elixir-ts-mode.el
index 4e0caae93e3..41662822713 100644
--- a/lisp/progmodes/elixir-ts-mode.el
+++ b/lisp/progmodes/elixir-ts-mode.el
@@ -488,7 +488,8 @@ elixir-ts--font-lock-settings
 
    :language 'elixir
    :feature 'elixir-data-type
-   '([(atom) (alias)] @font-lock-type-face
+   '((alias) @font-lock-type-face
+     (atom) @elixir-ts-atom
      (keywords (pair key: (keyword) @elixir-ts-keyword-key))
      [(keyword) (quoted_keyword)] @elixir-ts-atom
      [(boolean) (nil)] @elixir-ts-atom
@@ -553,6 +554,10 @@ elixir-ts--font-lock-settings
      (unary_operator operand: (identifier) @font-lock-variable-use-face)
      (interpolation (identifier) @font-lock-variable-use-face)
      (do_block (identifier) @font-lock-variable-use-face)
+     (rescue_block (identifier) @font-lock-variable-use-face)
+     (catch_block (identifier) @font-lock-variable-use-face)
+     (else_block (identifier) @font-lock-variable-use-face)
+     (after_block (identifier) @font-lock-variable-use-face)
      (access_call target: (identifier) @font-lock-variable-use-face)
      (access_call "[" key: (identifier) @font-lock-variable-use-face "]"))
 
-- 
2.45.2