]> git.eshelyaron.com Git - emacs.git/commitdiff
Use element as a sentence in html-ts-mode
authorTheodor Thornhill <theo@thornhill.no>
Sat, 21 Jan 2023 19:05:52 +0000 (20:05 +0100)
committerTheodor Thornhill <theo@thornhill.no>
Sun, 22 Jan 2023 10:32:53 +0000 (11:32 +0100)
* lisp/textmodes/html-ts-mode.el (html-ts-mode): Tweak the regexp.

lisp/textmodes/html-ts-mode.el

index 7e4360747a3797ed66e993d0ba11fb909e5588b4..a2d85bff7d632df0e3169a27b7848e3f54bb33e0 100644 (file)
@@ -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"