From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#60972: 30.0.50; [PATCH]: Add html-ts-mode Date: Sun, 22 Jan 2023 19:20:01 +0100 Message-ID: <87cz7677ou.fsf@thornhill.no> References: <87edrpklv3.fsf@thornhill.no> <86o7qrg36l.fsf@mail.linkov.net> <87tu0j7liw.fsf@thornhill.no> <86lelu8yu8.fsf@mail.linkov.net> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6478"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60972@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 22 19:21:23 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pJey2-0001TK-Is for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Jan 2023 19:21:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJexj-0007ae-H9; Sun, 22 Jan 2023 13:21:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJexi-0007Zv-3b for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 13:21:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pJexh-0005lD-Rr for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 13:21:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJexh-0001AU-LV for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 13:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Jan 2023 18:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60972 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 60972-submit@debbugs.gnu.org id=B60972.16744116084403 (code B ref 60972); Sun, 22 Jan 2023 18:21:01 +0000 Original-Received: (at 60972) by debbugs.gnu.org; 22 Jan 2023 18:20:08 +0000 Original-Received: from localhost ([127.0.0.1]:52627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJewq-00018x-Ej for submit@debbugs.gnu.org; Sun, 22 Jan 2023 13:20:08 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]:63664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJewo-00018o-0E for 60972@debbugs.gnu.org; Sun, 22 Jan 2023 13:20:07 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1674411604; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xOP5MqJARuXX77NkxS2Q/v9j6jwwEWbD6a0iz3zJl6E=; b=kz4Gu1NVW+bGvowk8zZqhD+hw4Aw7uuC4Fum1Fg9ZYakoyNqXzcCV5QiwnDYpdl912OXim e2R2lFrn/sqrJkhSZTE9jEmydoOXXtm4FbF8qUG+jLUNzrVfQJ1M/r3W+swla43p6wE/dM 5WhmLSIkqQo/rbDiOut3erVfjiK1RoDrD5ZTw/1cyKLxpHza3nAslmY9y12h0gSAULh3RU a+OWbC8cs8cHzeATbWCiZAF3IjcS38xhr2ejf9XO/974HNw1D6Ed+0EVFJN/j3OCpRaOZ4 yCMPxQAw+fN6yeTRHWa1YMst+V55KJKrZkecVvIcnUhZp7ncUB7xinKkfc/A8w== In-Reply-To: <86lelu8yu8.fsf@mail.linkov.net> X-Migadu-Flow: FLOW_OUT X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:253956 Archived-At: Juri Linkov 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