From b88d47beb00da7b302aaf757be611f200ae803b3 Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Sun, 22 Jan 2023 19:17:41 +0100 Subject: [PATCH] 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'. --- lisp/textmodes/html-ts-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/textmodes/html-ts-mode.el b/lisp/textmodes/html-ts-mode.el index a2d85bff7d6..58dcc7d8cad 100644 --- a/lisp/textmodes/html-ts-mode.el +++ b/lisp/textmodes/html-ts-mode.el @@ -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"))) -- 2.39.5