]> git.eshelyaron.com Git - emacs.git/commitdiff
Add missing fontification matches for elixir-ts-mode
authorWilhelm Kirschbaum <wkirschbaum@gmail.com>
Sun, 15 Sep 2024 07:46:35 +0000 (09:46 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:22:10 +0000 (21:22 +0100)
* 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)

lisp/progmodes/elixir-ts-mode.el

index 23ad04a662db344a73a317cbbef2bbde12d0c4f3..d0a692a214bcd31cef88b50b1dc99ee50cd3b7d4 100644 (file)
 
    :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
      (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 "]"))