GNU bug report logs - #60972
30.0.50; [PATCH]: Add html-ts-mode

Previous Next

Package: emacs;

Reported by: Theodor Thornhill <theo <at> thornhill.no>

Date: Fri, 20 Jan 2023 20:12:01 UTC

Severity: normal

Tags: patch

Found in version 30.0.50

Fixed in version 30.1

Done: Theodor Thornhill <theo <at> thornhill.no>

Bug is archived. No further changes may be made.

Full log


Message #22 received at 60972 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Theodor Thornhill <theo <at> thornhill.no>
Cc: 60972 <at> debbugs.gnu.org
Subject: Re: bug#60972: 30.0.50; [PATCH]: Add html-ts-mode
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")))




This bug report was last modified 2 years and 172 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.