emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master c1cdbb98729 1/3: Add access_call fontification to elixir-ts-mode


From: Dmitry Gutov
Subject: master c1cdbb98729 1/3: Add access_call fontification to elixir-ts-mode
Date: Tue, 6 Feb 2024 21:19:26 -0500 (EST)

branch: master
commit c1cdbb987299f6878072fec539bd363e2c3ca015
Author: Wilhelm Kirschbaum <wkirschbaum@gmail.com>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    Add access_call fontification to elixir-ts-mode
    
    * lisp/progmodes/elixir-ts-mode.el
    (elixir-ts--font-lock-settings):
    Add access_call queries to the elixir-variable feature (bug#67246).
---
 lisp/progmodes/elixir-ts-mode.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/elixir-ts-mode.el b/lisp/progmodes/elixir-ts-mode.el
index b493195eedd..2c7323c318d 100644
--- a/lisp/progmodes/elixir-ts-mode.el
+++ b/lisp/progmodes/elixir-ts-mode.el
@@ -546,7 +546,9 @@
      (body (identifier) @font-lock-variable-name-face)
      (unary_operator operand: (identifier) @font-lock-variable-name-face)
      (interpolation (identifier) @font-lock-variable-name-face)
-     (do_block (identifier) @font-lock-variable-name-face))
+     (do_block (identifier) @font-lock-variable-name-face)
+     (access_call target: (identifier) @font-lock-variable-name-face)
+     (access_call "[" key: (identifier) @font-lock-variable-name-face "]"))
 
    :language 'elixir
    :feature 'elixir-builtin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]