Subject: Re: bug#60972: 30.0.50; [PATCH]: Add html-ts-mode

From: Juri Linkov <[email-masked]>
Date: Sun, 22 Jan 2023 19:02:15 +0200

>> I expected that one of them is moving over the HTML tags
>> and another over HTML elements.
>
> Is this more like you were thinking?
>
> -  (setq-local treesit-sentence-type-regexp
> -              (regexp-opt '("start_tag"
> -                            "self_closing_tag"
> -                            "end_tag")))
> +  (setq-local treesit-sentence-type-regexp "element")

According to the discussion in bug#60894 I expected it to be
rather like this:

  (setq-local treesit-sentence-type-regexp "tag")
  (setq-local treesit-sexp-type-regexp
              (regexp-opt '("element"
                            "text"
                            "attribute"
                            "value")))