From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Validating tree-sitter major modes and grammar Date: Mon, 23 Dec 2024 19:20:06 -0800 Message-ID: <8DF80F0D-E50A-4162-93E6-F7F55B2E7144@gmail.com> References: <2F1CA2E3-4C86-4892-AF6B-0C9CFCE26629@gmail.com> <6768b29d.050a0220.1b40f2.5574SMTPIN_ADDED_BROKEN@mx.google.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30521"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Devel , Peter Oliver , Stefan Kangas To: =?utf-8?Q?Bj=C3=B6rn_Bidar?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 24 04:20:51 2024 Return-path: Envelope-to: ged-emacs-devel@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 1tPvTX-0007jv-N8 for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Dec 2024 04:20:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPvT6-0003ju-AH; Mon, 23 Dec 2024 22:20:24 -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 1tPvT4-0003jk-Hz for emacs-devel@gnu.org; Mon, 23 Dec 2024 22:20:22 -0500 Original-Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPvT3-0005S3-3p for emacs-devel@gnu.org; Mon, 23 Dec 2024 22:20:22 -0500 Original-Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-21675fd60feso60079805ad.2 for ; Mon, 23 Dec 2024 19:20:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735010420; x=1735615220; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=fKIqYkaNkpXAinXwoZcx68YyRVlPqaUN96Do1TFhpZw=; b=bwypJLcp+ObEZSOLkj+nEV426uwAk22X0sg0StxLvugMpFlrqe9n8FI7YNhZNmB/Or hkolC/KUEofYfpruusUFPWE305meF81HhhMBwXQuYo4YUkDG8saqCTU6ucswx90gf/ZF pinTg7mFb8QJr9cQDS6z4rHMBkZ+aQC5ayjPULUX76RNjqhpx2FD3/t3cyQpa5Iw0qkJ 7Pu0p6qbL6ecalK9dJMu9fngWkzDsJxNjDgGHvrITdOgFgx1HQb12fcchzf8NXP1kdEL M8704QmkzY0hEfZgP9XSab9Jw/JeEb3PjZv6JimpYzZiY5d1n3913T1bhet7x0Uy0+Pk xIbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735010420; x=1735615220; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fKIqYkaNkpXAinXwoZcx68YyRVlPqaUN96Do1TFhpZw=; b=MwqCbtal0R3en7l9N0rxFVA0uenIIDLI58d3dXqDYGLAQT417tG+HZ26zFCpd1AzXU IF98WqepF7upJ4PzHhJWtkE4XQXAo7jQBvDMe2ooFywE1ik4B3tc+r3fZa1lgVMVP3yZ Yl2WGjQ+cCP/v/kEnxQF/KM+QFLfLZGgiwaS3yy9uxA0gXYsRwHYY3XOBqt/ScM12tdk /QZuYgr1vYRKcUHuXfX4caeoVNm5lV4qrxiOo+HacKrMRMGe5vx+AzmoP9iIpBs1/cnf rRx/JesHNOr0AaEOoD1to+E+t5NtlzkX4AJEGNiFdGBiuHC+VmIxYzzuQMqN9LkTgtgU huGQ== X-Gm-Message-State: AOJu0Yx0BTnZNcs9MNJ80AY/x0Cx8sc8UGbA33Gyv31Tufd2TPT0WpaB lQOSpQj3lbHxM1tt12e38HzZwVixFzjLilLbNMrswlpQP0QTW4D7X+zs/A== X-Gm-Gg: ASbGncszh99JOCn9lzHy10H23pCkK0F+mU8hDHSZg7rXjbyYWog9m606skJSsTJxMTB YZ9xo/tLTN86rEHNYOaboYCDlfoSwF6hRHIXxqR2V/a54Y6P0kFG32U+dhnYdyTXK1L1Gn7ck7O RAnnGG2iI+eNoEJGEIXeJ5ONZkQ4t8ssyXMHUzpVfB9sU7ucRu/e2KlL4i3uU+W+6R0AScNFmms xu2jnmRY5B28pt3dXUl7mg96OFqFNDpJgzqfuugYHCzceHD6ujXjztBCtpZnov1gKzata3ILWlW pa24 X-Google-Smtp-Source: AGHT+IGlfbeRutQ24JYAqyKL7OZlb5dIzhMJgPc1SVWQ4K9vfiZNiDMXiESsAUMZXa55MXdaHcbrog== X-Received: by 2002:a05:6a21:2d05:b0:1d8:a9c0:8853 with SMTP id adf61e73a8af0-1e5e049eb47mr24025648637.23.1735010419525; Mon, 23 Dec 2024 19:20:19 -0800 (PST) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:1d98:6810:9846:b152]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad8dba99sm8615856b3a.92.2024.12.23.19.20.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Dec 2024 19:20:18 -0800 (PST) In-Reply-To: <6768b29d.050a0220.1b40f2.5574SMTPIN_ADDED_BROKEN@mx.google.com> X-Mailer: Apple Mail (2.3776.700.51) Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=casouri@gmail.com; helo=mail-pl1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326945 Archived-At: > On Dec 22, 2024, at 4:44=E2=80=AFPM, Bj=C3=B6rn Bidar = wrote: >=20 > Yuan Fu writes: >=20 >> Continuing from the tree-sitter maternity thread, I cooked up some >> script to go over each builtin tree-sitter mode, clone the grammars = it >> uses, and check whether the font-lock queries are compatible with the >> latest version of the grammar. If everything works fine, the script >> adds some comment in the source file listing the version that was >> checked. >=20 > Oh that sounds very good. This could be a good workaround for the sort > of fast and lose nature of tree-sitter. >=20 Great. Do you think the =E2=80=9Cverified version=E2=80=9D comment will = be helpful for packagers? Yuan=