From: Theodor Thornhill Date: Sat, 21 Jan 2023 19:05:52 +0000 (+0100) Subject: Use element as a sentence in html-ts-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8febda46c458f11270350d0b68c69d8a58b59f8d;p=emacs.git Use element as a sentence in html-ts-mode * lisp/textmodes/html-ts-mode.el (html-ts-mode): Tweak the regexp. --- diff --git a/lisp/textmodes/html-ts-mode.el b/lisp/textmodes/html-ts-mode.el index 7e4360747a3..a2d85bff7d6 100644 --- a/lisp/textmodes/html-ts-mode.el +++ b/lisp/textmodes/html-ts-mode.el @@ -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"