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: New tree-sitter mode: bison-ts-mode Date: Fri, 22 Sep 2023 16:44:35 -0700 Message-ID: <51089848-D5D4-4C16-B329-067976E96181@gmail.com> References: <83a5te92m4.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) 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="12439"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?B?IkF1Z3VzdGluIENow6luZWF1IChCVHVpbiki?= , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 23 01:45:33 2023 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 1qjpq0-00031e-7T for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Sep 2023 01:45:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjppN-0003xZ-Q8; Fri, 22 Sep 2023 19:44:53 -0400 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 1qjppL-0003wB-0v for emacs-devel@gnu.org; Fri, 22 Sep 2023 19:44:51 -0400 Original-Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjppJ-0002qW-5t; Fri, 22 Sep 2023 19:44:50 -0400 Original-Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-2745cd2ba68so2203353a91.0; Fri, 22 Sep 2023 16:44:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695426287; x=1696031087; 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=whfQh1o3crgwCxL0xSchpxPY5le0o1g+HxlcIxjzuSo=; b=W8hUUG4O4iHk2JMuvj2Xxa90GtEwPZrOWCLhN6uDZQ12zYBTCfAIw9d6BqsGNhHKus UijwaBHHJyCaVffo2Q8k9lhRMcYZLukw0gAMh8zcAWU7EVlswjWBOYGogTYABjApmvkJ 8biT6HM9gi8MY9FRTBVkMZ0P3JHPcLt4UngCB4q9sZZ1j9G/8/zCrbX4n3x8wqCqkpTk Rw9xlq6LvE9F8wP9/xJqnqFLGhH2YMYzoCKGkPqTyb3rWxK7ly0/WMhp/1rZW1CqNcrK N04Rlgzps34Qv5UdBmCeBFQ+DXVHDruK4hER7dLCHmxLOgd/AkphTuwzOBchaOFhvcwk Kp/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695426287; x=1696031087; 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=whfQh1o3crgwCxL0xSchpxPY5le0o1g+HxlcIxjzuSo=; b=o0IQviX0VF2OoiAUzDOIJYGTi7kW92bW/9x0Bb83irmvU5aPSu4b8pNMx4j6J4hNls +LpsCq05FIL517y9TBO6FjlazeMFKUMOJLBpfw/cYHX7tsSim+vZnRNXEOzOlCQRUjbI tSlE8hX2ZhN4iIXAFF86aKNdYfhhS3jOpbB7OtperrmRN6d4c6ITavjFF2zjg/2W1/Lq jGjmU4FyPVkeZpm0gt0Hw3/j/ptUe4z6e6Wa4WO7oSut6S1DGuAP5Cl128LR3uk3rSJv aCAdGOE2v0ENdtaUP/001YnKla3Po+LcpqS51GIpQjju68AjkaR2j0GQSosaQr2bQFd+ kpaQ== X-Gm-Message-State: AOJu0Yzi/qNvvFnepCBbLLwVeKmO4KpJYALeRFwVJMFF5hnx9iXh5IDo 5QJtZP7i0c8DgIh2wHOYuxcGf9ouch8= X-Google-Smtp-Source: AGHT+IFQr7dJ8oFPTDrIymtK5zpPSIV0W/Agj3oE2Nse8IfdeHtsYMVFpSzX665EuFIowb9uoxnhIA== X-Received: by 2002:a17:90a:6547:b0:269:46d7:f1db with SMTP id f7-20020a17090a654700b0026946d7f1dbmr1118252pjs.32.1695426286883; Fri, 22 Sep 2023 16:44:46 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id 17-20020a17090a001100b00276a58e37c1sm5894815pja.38.2023.09.22.16.44.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Sep 2023 16:44:46 -0700 (PDT) In-Reply-To: <83a5te92m4.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.700.6) Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=casouri@gmail.com; helo=mail-pj1-x1034.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:310991 Archived-At: > On Sep 21, 2023, at 10:52 PM, Eli Zaretskii wrote: >=20 >> Date: Thu, 21 Sep 2023 22:15:45 +0200 >> From: Augustin Ch=C3=A9neau (BTuin) >>=20 >> I'd like to propose a new tree-sitter mode for Emacs, bison-ts-mode. >> This is a major mode for GNU Bison grammar files, and it supports the=20= >> embedded languages C, C++ and Java. Bison also supports D, but this=20= >> language is not yet supported in Emacs so this mode does not support = it=20 >> either. >>=20 >> Since Bison is a superset of Yacc, it should work with Yacc without=20= >> modification. >> The grammar is available here: = >=20 > Thanks. >=20 >> In addition of the mode, three patches are joined (should I open a = bug=20 >> report for those?). >>=20 >>=20 >> The first one is to add some missing rules in c-ts-mode. Currently=20= >> there is no rule if an identifier in a declaration is on a new line. >> In these two cases, "variable_name" is not indented: >>=20 >> static myttype * >> variable_name; >>=20 >> static myttype >> variable_name; >>=20 >> The new behavior is the same as c-mode. >=20 > I think this patch should be installed on the emacs-29 branch. (It is > a very small change, so we can install it even before the legal > paperwork is completed.) Yuan, any objections or comments to this > one? LGTM. How do you write the assignment except cookie? Is it = PAPERWORK-EXEMPT: yes? Yuan=