Add missing fontification matches for elixir-ts-mode
authorWilhelm Kirschbaum <wkirschbaum@gmail.com>
Sun, 15 Sep 2024 07:46:35 +0000 (09:46 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 28 Dec 2024 08:42:09 +0000 (09:42 +0100)
* lisp/progmodes/elixir-ts-mode.el (elixir-ts--font-lock-settings): Add
matches for missing tokens and fix atom type face.  (Bug#75156)

lisp/progmodes/elixir-ts-mode.el

index cacdb266298ff04a8767cb17e850bddf8e081d63..1ce9a65a1257c9fbb6859bd5ee19856dbe64d2c4 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 "]"))