From: Wilhelm Kirschbaum Date: Sun, 15 Sep 2024 07:46:35 +0000 (+0200) Subject: Add missing fontification matches for elixir-ts-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5d3772846be6169bd5d402c0ca6988b543bcf7f8;p=emacs.git 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. (Bug#75156) (cherry picked from commit 624322d5f6a8e92c641a5ce6087e3f6d91a44997) --- diff --git a/lisp/progmodes/elixir-ts-mode.el b/lisp/progmodes/elixir-ts-mode.el index 23ad04a662d..d0a692a214b 100644 --- a/lisp/progmodes/elixir-ts-mode.el +++ b/lisp/progmodes/elixir-ts-mode.el @@ -475,7 +475,8 @@ :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 @@ -540,6 +541,10 @@ (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 "]"))