Swap tag and element in html-ts-mode (bug#60972)
* lisp/textmodes/html-ts-mode.el: New values for 'treesit-sentence-type-regexp' and 'treesit-sexp-type-regexp'.
This commit is contained in:
parent
860c3aada5
commit
b88d47beb0
1 changed files with 2 additions and 2 deletions
|
@ -106,10 +106,10 @@ Return nil if there is no name or if NODE is not a defun node."
|
|||
|
||||
(setq-local treesit-defun-name-function #'html-ts-mode--defun-name)
|
||||
|
||||
(setq-local treesit-sentence-type-regexp "element")
|
||||
(setq-local treesit-sentence-type-regexp "tag")
|
||||
|
||||
(setq-local treesit-sexp-type-regexp
|
||||
(regexp-opt '("tag"
|
||||
(regexp-opt '("element"
|
||||
"text"
|
||||
"attribute"
|
||||
"value")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue