From: Yuan Fu Date: Mon, 9 Sep 2024 00:28:26 +0000 (-0700) Subject: Fix elixir-ts-mode's range query X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d5d1e9a2f2f4f73878cfeab4e873586a96de6c77;p=emacs.git Fix elixir-ts-mode's range query * 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) --- diff --git a/lisp/progmodes/elixir-ts-mode.el b/lisp/progmodes/elixir-ts-mode.el index 9804152d9ab..815827ed13c 100644 --- a/lisp/progmodes/elixir-ts-mode.el +++ b/lisp/progmodes/elixir-ts-mode.el @@ -572,7 +572,9 @@ (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)