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: Fri, 20 Dec 2024 08:22:56 -0800 Message-ID: <76AA835A-34D8-4550-81F7-F9632D308BD5@gmail.com> References: <2F1CA2E3-4C86-4892-AF6B-0C9CFCE26629@gmail.com> <86jzbua6fu.fsf@gnu.org> 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="28602"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Devel , Peter Oliver , =?utf-8?Q?Bj=C3=B6rn_Bidar?= , stefankangas@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 20 17:27:52 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 1tOfqx-0007H4-Q1 for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Dec 2024 17:27:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOfmu-0007Mw-0w; Fri, 20 Dec 2024 11:23:40 -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 1tOfmU-00073l-15 for emacs-devel@gnu.org; Fri, 20 Dec 2024 11:23:15 -0500 Original-Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tOfmR-0000Sv-SD; Fri, 20 Dec 2024 11:23:13 -0500 Original-Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-725dbdf380aso1832404b3a.3; Fri, 20 Dec 2024 08:23:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734711788; x=1735316588; 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=ZVBIISd2yQZM+mxg1tSuV7JoZxPBNpodMVgM1H86YIc=; b=ZDZADLzeqbNJbqZgjQm+X1Yz7HibNQ6q6qw46EiDybXv0plwipZZWK1+qckGFNuPZo +y1CiQs15y479XFyNMbVlJ/NgR5WruO5taQtMaMScfUDMnJHtWb8TALsCTzZVKp5Wssn QB02QvK/N5srYbzuFWx4D1QadopImUCtxC/9ofvLehnBpCey686YlCVvhzNL3A6cLy3B wcn8Ywk7kyoKss8tfEWNkL8XxA8vloQnyCDd8zN1KeBsxoZi4TIUuBzMrWW5IDOIfE6+ UDsYwHex6QBILg/SCoFouuwhum3dRtL4ONAeoRxr7FHPeKCmx3OjZRqpBJc20v3NtyOo r1yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734711788; x=1735316588; 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=ZVBIISd2yQZM+mxg1tSuV7JoZxPBNpodMVgM1H86YIc=; b=rVyyGblXxSI0hS5uFL/uZxFs0xUfT/vFC75gnenvpJg/v9iO1mygahvmDLhFaN9744 V5Bqg6DvmQqu6U8oKneww6HkbehLA5jp975hl0EOmzQg2XPqZI263bTndfZtXF+wcD2J DO/gnOhhCpkYZmLVEjpoLuuP9Z6w2Gg4jO4uPASk45WumyTpeGZvQxRn70VWmKAFYyRv cQ0IqpyuNmyL8lhwEIHxV6EAPHMYwBloSgpcRbgwrV+XZaznyyZ+oDrwpZcs/JgUmUgK PclaUgnAqC+9+oqyz8mJGEWeDFmf4jiiE4QYgfllWjexAkbYaobyyhvjSzOIlAQJui/1 lHtA== X-Gm-Message-State: AOJu0YwcNxBScfbBjtzd/zddm+AdDMCpFdLYK0cpuZPRk5mP3HrkqdKE B8fwyl+S4hNGpkNBVAy0Jwqfes9RSHWfhKKpxqwBsQ2noytskD87I8r8PQ== X-Gm-Gg: ASbGncumrwCTsqdh5ys14K3ccxtrt7ihd0Xfh3NJ2kOhV/UxpWMQbBZnNWvd3WcsBl1 72or+0D2uNLbu55Y3qDlUhvB/NbrzCqGaGV3VN5hk8r90zVY+F1wr8ckWj/mBkqDg46wvQ2ZSC4 CwxBzmu5TXvjkFuxus2gYZzFHkFcfKrAADVs9fKq7aQzjeywVhQsvvHLfZXaGe8wa/dPUvUJ7yQ u4ln+vSbdOk520i/i/2TVcsFZCw23BipkpXndsCLiZp03s1y9JdzNY2swK+OtoS9xc2ZSXkfJfF F7vC X-Google-Smtp-Source: AGHT+IHWu3rqumw/58cfga7Ic4or0eETOMlCqPW6WLYXKWMWtbJwlnTbH60ggpsjrMTM4tObEN3ZPg== X-Received: by 2002:a05:6a00:3a02:b0:724:bf30:147d with SMTP id d2e1a72fcca58-72abddb20cfmr3908713b3a.11.1734711788336; Fri, 20 Dec 2024 08:23:08 -0800 (PST) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:256b:fd6a:4865:b807]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-842e2590f78sm3018337a12.70.2024.12.20.08.23.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Dec 2024 08:23:07 -0800 (PST) In-Reply-To: <86jzbua6fu.fsf@gnu.org> X-Mailer: Apple Mail (2.3776.700.51) Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=casouri@gmail.com; helo=mail-pf1-x42e.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:326803 Archived-At: > On Dec 20, 2024, at 4:24=E2=80=AFAM, Eli Zaretskii = wrote: >=20 >> From: Yuan Fu >> Date: Fri, 20 Dec 2024 01:09:10 -0800 >> Cc: Peter Oliver , >> Bj=C3=B6rn Bidar , >> Stefan Kangas >>=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 >> For example, I ran the script for c-ts-mode and c++-ts-mode, and this = is the comment inserted to c-ts-mode.el: >=20 > I'm not sure what exactly you are suggesting, but commands and Lisp > programs that are for the Emacs maintainers (as opposed to users) > should be in the admin/ directory, not in the lisp/ directory. >=20 > If you think this should be used by Emacs users, please describe how > would a user use such a command, because I don't think I understand > that. It=E2=80=99s for maintainers, I moved the script to = admin/treesit-admin.el. Yuan