From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Juri Linkov <juri@linkov.net>
Cc: 60972@debbugs.gnu.org
Subject: bug#60972: 30.0.50; [PATCH]: Add html-ts-mode
Date: Sun, 22 Jan 2023 19:20:01 +0100 [thread overview]
Message-ID: <87cz7677ou.fsf@thornhill.no> (raw)
In-Reply-To: <86lelu8yu8.fsf@mail.linkov.net>
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
prev parent reply other threads:[~2023-01-22 18:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-20 20:10 bug#60972: 30.0.50; [PATCH]: Add html-ts-mode Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-20 20:28 ` Eli Zaretskii
2023-01-20 20:40 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-21 17:50 ` Juri Linkov
2023-01-21 19:08 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-22 17:02 ` Juri Linkov
2023-01-22 18:20 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cz7677ou.fsf@thornhill.no \
--to=bug-gnu-emacs@gnu.org \
--cc=60972@debbugs.gnu.org \
--cc=juri@linkov.net \
--cc=theo@thornhill.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).