diff options
| author | Yuan Fu | 2024-09-08 17:28:26 -0700 |
|---|---|---|
| committer | Yuan Fu | 2024-09-08 20:52:20 -0700 |
| commit | 0fd259d166c0dca4d097ad026ac748748ba88497 (patch) | |
| tree | 9fa9e79c9aa439a8cc4153d9f505ccdc5f9beef4 | |
| parent | 2329b36b1fb0dab969554eb9e1617e31a9755084 (diff) | |
| download | emacs-0fd259d166c0dca4d097ad026ac748748ba88497.tar.gz emacs-0fd259d166c0dca4d097ad026ac748748ba88497.zip | |
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.
| -rw-r--r-- | lisp/progmodes/elixir-ts-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ | |||
| 572 | (treesit-range-rules | 572 | (treesit-range-rules |
| 573 | :embed 'heex | 573 | :embed 'heex |
| 574 | :host 'elixir | 574 | :host 'elixir |
| 575 | '((sigil (sigil_name) @name (:match "^[HF]$" @name) (quoted_content) @heex))))) | 575 | '((sigil (sigil_name) @_name |
| 576 | (:match "^[HF]$" @_name) | ||
| 577 | (quoted_content) @heex))))) | ||
| 576 | 578 | ||
| 577 | (defvar heex-ts--sexp-regexp) | 579 | (defvar heex-ts--sexp-regexp) |
| 578 | (defvar heex-ts--indent-rules) | 580 | (defvar heex-ts--indent-rules) |