projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2329b36
)
Fix elixir-ts-mode's range query
author
Yuan Fu
<casouri@gmail.com>
Mon, 9 Sep 2024 00:28:26 +0000
(17:28 -0700)
committer
Yuan Fu
<casouri@gmail.com>
Mon, 9 Sep 2024 03:52:20 +0000
(20:52 -0700)
* 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.
lisp/progmodes/elixir-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/elixir-ts-mode.el
b/lisp/progmodes/elixir-ts-mode.el
index 9804152d9abd508ce366c6eec2599cbf44d085bd..815827ed13cb9580edd967b0b79c58ca7a7840f2 100644
(file)
--- 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)