bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Theodor Thornhill
Subject: bug#60972: 30.0.50; [PATCH]: Add html-ts-mode
Date: Sun, 22 Jan 2023 19:20:01 +0100

Juri Linkov <juri@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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]