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


View this message in rfc822 format

From: Theodor Thornhill <theo <at> thornhill.no>
To: Juri Linkov <juri <at> linkov.net>
Cc: 60972 <at> debbugs.gnu.org
Subject: bug#60972: 30.0.50; [PATCH]: Add html-ts-mode
Date: Sun, 22 Jan 2023 19:20:01 +0100
Juri Linkov <juri <at> linkov.net> writes:

>>> 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")))


Ok, let's try that :-)

Theo




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.