]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix elixir-ts-mode's range query
authorYuan Fu <casouri@gmail.com>
Mon, 9 Sep 2024 00:28:26 +0000 (17:28 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sat, 14 Sep 2024 20:15:19 +0000 (22:15 +0200)
* lisp/progmodes/elixir-ts-mode.el:
(elixir-ts--treesit-range-rules): Add underscore in front of the name
capture, so Emacs won't put heex parser on it.

(cherry picked from commit 0fd259d166c0dca4d097ad026ac748748ba88497)

lisp/progmodes/elixir-ts-mode.el

index 9804152d9abd508ce366c6eec2599cbf44d085bd..815827ed13cb9580edd967b0b79c58ca7a7840f2 100644 (file)
     (treesit-range-rules
      :embed 'heex
      :host 'elixir
-     '((sigil (sigil_name) @name (:match "^[HF]$" @name) (quoted_content) @heex)))))
+     '((sigil (sigil_name) @_name
+              (:match "^[HF]$" @_name)
+              (quoted_content) @heex)))))
 
 (defvar heex-ts--sexp-regexp)
 (defvar heex-ts--indent-rules)