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: Wed, 25 Dec 2024 00:39:09 -0800 Message-ID: <57EDF134-EC93-4906-B37F-5A5ED5E4F77C@gmail.com> References: <2F1CA2E3-4C86-4892-AF6B-0C9CFCE26629@gmail.com> <86pllh2ryo.fsf@gnu.org> <2723DC3D-0F51-445A-912E-4D441976AB2E@gmail.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="14422"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Emacs Devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 25 09:39:59 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 1tQMvu-0003ai-U2 for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Dec 2024 09:39:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQMvP-0003PO-Mn; Wed, 25 Dec 2024 03:39:28 -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 1tQMvM-0003OV-QX for emacs-devel@gnu.org; Wed, 25 Dec 2024 03:39:24 -0500 Original-Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQMvL-0004q0-80; Wed, 25 Dec 2024 03:39:24 -0500 Original-Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-21670dce0a7so81237795ad.1; Wed, 25 Dec 2024 00:39:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735115961; x=1735720761; 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=f9x+7e5tTTe636wvFhHYJmYDt+N0XpSqNYlSZEamrB4=; b=fIKHSI7OWbJ6HVC5+rki0M0R6oWQZkN+nQGZGq6YgadK/qcERg4vn81tpSp0qLrZ3r I8VFjltUoVlFj45vA3wvvOQYb6rnjkQSBcg2HKUE+lgOF0ldpPIImmSdmERjRsSA9xKb NZzlMw3CGsfKKZdCAVvejvjdRpn70wrx7vbVDkklypTEhGNzV0raAq6WFv/O5K8zELNQ +AjLCc9TvXSY3lGPdJlg6ETrzzQYrpjwXRvhxh9w3yxCYPHOwqkNPM4sFcJzYMLjOWjv bmAmvz7UttOMC6SiBzMp+jn3vs4wu65q8NLBBtvVhlk8UA8qS7Bv1Ng3RxFyCgiIiV5q gajw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735115961; x=1735720761; 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=f9x+7e5tTTe636wvFhHYJmYDt+N0XpSqNYlSZEamrB4=; b=HMd4Ga6eFhgZf36GMO/i1HIwipvpjqMRepBMIyrEeiI8WFFSXhbH9eB3j/K94+3U2n HGKQp9TZVvIRV0TzUdN6Nj3Ah+VHplOp9xoOF4tiW5Hn+6lGcg19bwxTkJ9q3wZDl3GP 87pcRAO6K+gPRPx3HA9hPgr1t/BVZSfRwP5Mw/CqW0NI/13yafyvXbYQrpQTI7BM31p6 oBTddbyhRSNWCB/4rGKp7bZ2SC6sspDVsCSauSg2G2/N2MXwwSk88C0q9U4IWQMFiVJp 0VoZLxzd0W5W57rdJcWkpR7xc4AlE5sO9PNOb0iKhpMJlU1GMzHSEqsvlifFBbzFJHD4 FI/w== X-Forwarded-Encrypted: i=1; AJvYcCWYQNI8pxGJVw60TfdNIrLN8NTrZxUyfc9C6/1sqQVqWv4a86hPhjQGOVnNlzipAVZR7QcM7c33E/P5VA==@gnu.org X-Gm-Message-State: AOJu0YxTA+9WuOdTnYAn5aDnGIUr48Z9BDU3rO43s+1WXURXwxbu+XJC D+NUNxbrPORKWiQ0J2aVgKKF9j8aEfwC0UYEZ6UfLeobhJIwkbQ8 X-Gm-Gg: ASbGnct7mi15mGCtbhTishlJmsSR4i2+udXzJg09n+sxLS9QzrTZKYeey52IP3uzVOk tc0JqxebuoQ2fh/WIKDWqJ+KYW2TGHlxaX6to4A3NrTarnuuMadrzhLpvuX0XUk1ifLzu+0bsro AgE5CW7fi+rzeY1xwE3uH1iPlhV5AzGUcy7OKyVHC04fREMDHeWJAYMGQvP3c+DkqS/sj+FBesx RAYfwk/qZLBfDu+IXNzQOUy+dNAoLGFjK2AZ6s3cihrgNVjuhlo/MQEtR49FYW6j37T7+FqaIEy wD4= X-Google-Smtp-Source: AGHT+IGZW/JKiW3Jf8EQLD2h0J3q+YLquUDidXRlOhavboA/hrDCCCBQXGSapSXg94ca8gAiEWkU3g== X-Received: by 2002:a17:903:2291:b0:216:4a8a:2665 with SMTP id d9443c01a7336-219e6f267femr231572245ad.50.1735115961398; Wed, 25 Dec 2024 00:39:21 -0800 (PST) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:e179:285e:283:33ae]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dca01450sm100520055ad.230.2024.12.25.00.39.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Dec 2024 00:39:20 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3776.700.51) Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=casouri@gmail.com; helo=mail-pl1-x62a.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:327061 Archived-At: > On Dec 24, 2024, at 3:09=E2=80=AFPM, Dmitry Gutov = wrote: >=20 > On 24/12/2024 23:30, Yuan Fu wrote: >> If most people think it=E2=80=99s a good idea, I=E2=80=99ll run the = script for all the builtin modes, which will add the comments. And I = plan to run it myself from time to time to update the comments. = Maintainers for a particular mode can also run it to update the comment = themselves. And I=E2=80=99ll add more detailed documentation about how = to use the script. >=20 > Sounds great to me. >=20 > Hopefully we manage to convey well that the "last tested version" is = not necessarily the latest that will work, just the one that we tested. Right now the comment says this at the end: ;; We try our best to make builtin modes work with latest grammar ;; versions, so a more recent grammar version has a good chance to work. ;; Send us a bug report if it doesn't. But let me know if it can be improved in some way. Yuan=