Use element as a sentence in html-ts-mode
* lisp/textmodes/html-ts-mode.el (html-ts-mode): Tweak the regexp.
This commit is contained in:
parent
f0971f94fe
commit
8febda46c4
1 changed files with 1 additions and 4 deletions
|
@ -106,10 +106,7 @@ 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
|
||||
(regexp-opt '("start_tag"
|
||||
"self_closing_tag"
|
||||
"end_tag")))
|
||||
(setq-local treesit-sentence-type-regexp "element")
|
||||
|
||||
(setq-local treesit-sexp-type-regexp
|
||||
(regexp-opt '("tag"
|
||||
|
|
Loading…
Add table
Reference in a new issue