From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Validating tree-sitter major modes and grammar Date: Thu, 26 Dec 2024 04:23:15 +0200 Message-ID: <4b0ba91e-1b58-4762-a85b-d3348f1e309d@yandex.ru> References: <2F1CA2E3-4C86-4892-AF6B-0C9CFCE26629@gmail.com> <86pllh2ryo.fsf@gnu.org> <2723DC3D-0F51-445A-912E-4D441976AB2E@gmail.com> <57EDF134-EC93-4906-B37F-5A5ED5E4F77C@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7097"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Eli Zaretskii , Emacs Devel To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 26 03:24:31 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 1tQdY6-0001id-TK for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Dec 2024 03:24:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQdXD-0003Y8-4b; Wed, 25 Dec 2024 21:23:35 -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 1tQdXB-0003Xo-Jg for emacs-devel@gnu.org; Wed, 25 Dec 2024 21:23:33 -0500 Original-Received: from forward500d.mail.yandex.net ([178.154.239.208]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQdX9-0006LU-CG; Wed, 25 Dec 2024 21:23:33 -0500 Original-Received: from mail-nwsmtp-smtp-production-main-45.klg.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-45.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:37a1:0:640:203:0]) by forward500d.mail.yandex.net (Yandex) with ESMTPS id ADFD960F4D; Thu, 26 Dec 2024 05:23:21 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-45.klg.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id JNOvAFSOia60-dyE1l6GF; Thu, 26 Dec 2024 05:23:21 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1735179801; bh=jafoky4yD7lGG7z+PEXeF1yQTFIv1JGLpZjwFX0bHa8=; h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To; b=OJj4kjcnf66Wg9LlnDh/qDJGQlGOFtYme3H644crjtELHwd6Ss/llWICtMKt1NfzE FSCd5vEg3cZqkjTf9NWUC0GqTYDJ5kOy8S2i3o0Bma0XQPptmQmVVYBOl5TqmdAReh 2UBM7mSICiRnM1uar+iO5eOw6mNFxC0YoS5dFlps= Authentication-Results: mail-nwsmtp-smtp-production-main-45.klg.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfauth.phl.internal (Postfix) with ESMTP id DAD511200076; Wed, 25 Dec 2024 21:23:18 -0500 (EST) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Wed, 25 Dec 2024 21:23:18 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddujedggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegughhuthhovheshigrnhguvgigrd hruheqnecuggftrfgrthhtvghrnhepiefhjeeuveetffffvdefteffffekhfeuudejieeh heeiudelgfehgffffeduffdunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepughguhhtohhvodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhi thihqddufeeffeelleehhedvqddvleegjeejjeejiedqughguhhtohhvpeephigrnhguvg igrdhruhesfhgrshhtmhgrihhlrdgtohhmpdhnsggprhgtphhtthhopeefpdhmohguvgep shhmthhpohhuthdprhgtphhtthhopegtrghsohhurhhisehgmhgrihhlrdgtohhmpdhrtg hpthhtohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepvghmrggtshdquggvvhgv lhesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: ib1d9465d:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 Dec 2024 21:23:17 -0500 (EST) Content-Language: en-US In-Reply-To: <57EDF134-EC93-4906-B37F-5A5ED5E4F77C@gmail.com> Received-SPF: pass client-ip=178.154.239.208; envelope-from=dgutov@yandex.ru; helo=forward500d.mail.yandex.net 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, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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:327123 Archived-At: Hi Yuan, On 25/12/2024 10:39, Yuan Fu wrote: >> 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. Just a nit, but we could add "too" at the end: so a more recent grammar has a good chance to work too. (I removed the word "version" for easier refilling, but that's definitely not neccesary.) About the paragraph before, just a thought but do we want to use a standard phrase like "has been tested": ;; c-ts-mode has been tested with the following languages and version: ? Seems a bit more regular for a casual reader, which conveying the same meaning. I'm not a native speaker, though.