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.bugs Subject: bug#62109: 29.0.60; rust-ts-mode missing indentation for patterns Date: Sat, 11 Mar 2023 15:53:21 -0800 Message-ID: <5559DA03-EC90-4878-9DA6-30A034AF0E9F@gmail.com> References: <2E6E52D0-723C-4CC0-8FE2-AE291E9048B6@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_6037CC0F-2F82-45C2-BD13-57EBCBC5A420" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24240"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62109-done@debbugs.gnu.org To: Randy Taylor Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 12 00:54:30 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pb92j-00065V-6A for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Mar 2023 00:54:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pb92K-0008Pc-F6; Sat, 11 Mar 2023 18:54:04 -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 1pb92I-0008P1-On for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2023 18:54:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pb92I-00006G-Ep for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2023 18:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pb92I-0004I8-25 for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2023 18:54:02 -0500 Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Mar 2023 23:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 62109 X-GNU-PR-Package: emacs Mail-Followup-To: 62109@debbugs.gnu.org, casouri@gmail.com, casouri@gmail.com Original-Received: via spool by 62109-done@debbugs.gnu.org id=D62109.167857882416465 (code D ref 62109); Sat, 11 Mar 2023 23:54:01 +0000 Original-Received: (at 62109-done) by debbugs.gnu.org; 11 Mar 2023 23:53:44 +0000 Original-Received: from localhost ([127.0.0.1]:58811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pb91z-0004HV-Vc for submit@debbugs.gnu.org; Sat, 11 Mar 2023 18:53:44 -0500 Original-Received: from mail-pl1-f170.google.com ([209.85.214.170]:38707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pb91x-0004HI-Co for 62109-done@debbugs.gnu.org; Sat, 11 Mar 2023 18:53:42 -0500 Original-Received: by mail-pl1-f170.google.com with SMTP id n6so9313695plf.5 for <62109-done@debbugs.gnu.org>; Sat, 11 Mar 2023 15:53:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678578815; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=oNzL9NRiKvdfMNhUQG8jlFZpe8T8EMY1ecOXqxgZ03o=; b=ht8WiamqAnr6D62gj+IWOqZ5c14DIZUbp0FX9KjwCy5e1KGQQo3jEH4DXD53BgdHOT DaDSwyySzV0fMjNdO/ddzyAXjQnJtaIGB177Kj6kcA6+Dgobq4RCD+/IdyR3x6y2Bj94 5hRzBtFS3p1OtiDUs3D+EYUeTEFq75hmxop1GAMfFYNyxokIey/uVrDmceruY7abUgZK KidxeZxor1jb0uHjKl0gOapaKsFKfNHTdZxKlorMhlL6HmJMK7bBFiCJSiQpo9PBA13l t8irdbAlJ25VidsHQwNAAWHVqCGmGx3ZAqX0E7EgTafXgtmg/kHtWqjuwlmFbdMYD5dU VESw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678578815; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oNzL9NRiKvdfMNhUQG8jlFZpe8T8EMY1ecOXqxgZ03o=; b=JrJ2/0zB85sKOP0UD9FhgADc5xznofFV8RHgoaLWY09Fqb7O6oha/tbN/P3CL63yQs t3UEUQOcWic4g0NUqwi5pJ1FK9SKkkLyF+UnMJ+wUb6hI1IrO4PtaT/jDsmJkVJKmVWK UU2i4Vi+z+Dg5GsV8Zdb2GOuCDT0o8qJmNoGdZiUJTPuXScBiHwlTZxl3j06hloMGQty KnFr6QYqfyz2W+khW+4IKzW2xXh/iMpHovSTj7jZMZ0cf97vF3M59EmeMgnyFpfumQ8G CT0XtKTwq9sXFDD4tyX80fkbhPXglCx0zaJQgC+Yj7e2yyINWlO2LqjQIOZWgJERsXxe EG7g== X-Gm-Message-State: AO0yUKWdutBY+XDHh26rqziruOfdqaG94rgJ52tMACIXjDikCtKCNHY+ szQcHVgRw/0Wz0uoj8vfRyM= X-Google-Smtp-Source: AK7set/HWtEZpCt8JUMO/BUVFGAzWpSwknPn3LNGyRQSpj37ZZke8muY8INI7cOkVOcnB3qP/Oo4Hg== X-Received: by 2002:a17:90b:3b8b:b0:237:62c6:ab64 with SMTP id pc11-20020a17090b3b8b00b0023762c6ab64mr30275944pjb.38.1678578815247; Sat, 11 Mar 2023 15:53:35 -0800 (PST) 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 r8-20020a17090a1bc800b0023b3179f0fcsm1674679pjr.6.2023.03.11.15.53.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Mar 2023 15:53:33 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3731.400.51.1.1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:257824 Archived-At: --Apple-Mail=_6037CC0F-2F82-45C2-BD13-57EBCBC5A420 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 10, 2023, at 6:04 PM, Randy Taylor wrote: >=20 > On Friday, March 10th, 2023 at 21:03, Randy Taylor = wrote: >>=20 >> On Friday, March 10th, 2023 at 17:32, Yuan Fu casouri@gmail.com = wrote: >>=20 >>> X-Debbugs-CC: dev@rjt.dev >>>=20 >>> Try this snippet: >>>=20 >>> fn main() { >>> match &cli.command { >>> Commands::Run { >>> a, >>> b, >>> c, >>> d, >>> } =3D> todo!(), >>>=20 >>> } >>> } >>>=20 >>> The a, b, c, d don=E2=80=99t have corresponding indentation rules. I = can add >>> some myself, but I=E2=80=99m not sure where to add and what=E2=80=99s = the best rule to >>> add. >>>=20 >>> Yuan >>=20 >>=20 >> Thanks for the report, I've attached a patch fixing it. >=20 > Sorry, forgot to include the bug #. Same patch with the bug # this = time! >=20 --Apple-Mail=_6037CC0F-2F82-45C2-BD13-57EBCBC5A420 Content-Disposition: attachment; filename=0001-Add-missing-indentation-rule-for-rust-ts-mode-Bug-62.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Add-missing-indentation-rule-for-rust-ts-mode-Bug-62.patch" Content-Transfer-Encoding: quoted-printable =46rom=2016522d2626d3ec5d9de70d3a90ecd137258ed98f=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Randy=20Taylor=20=0ADate:=20Fri,=20= 10=20Mar=202023=2020:56:04=20-0500=0ASubject:=20[PATCH]=20Add=20missing=20= indentation=20rule=20for=20rust-ts-mode=20(Bug#62109)=0A=0A*=20= lisp/progmodes/rust-ts-mode.el=20(rust-ts-mode--indent-rules):=20Add=0A= missing=20rule.=0A---=0A=20lisp/progmodes/rust-ts-mode.el=20|=201=20+=0A=20= 1=20file=20changed,=201=20insertion(+)=0A=0Adiff=20--git=20= a/lisp/progmodes/rust-ts-mode.el=20b/lisp/progmodes/rust-ts-mode.el=0A= index=20696c2633231..a07a6649dc2=20100644=0A---=20= a/lisp/progmodes/rust-ts-mode.el=0A+++=20= b/lisp/progmodes/rust-ts-mode.el=0A@@=20-91,6=20+91,7=20@@=20= rust-ts-mode--indent-rules=0A=20=20=20=20=20=20((parent-is=20= "let_declaration")=20parent-bol=20rust-ts-mode-indent-offset)=0A=20=20=20= =20=20=20((parent-is=20"macro_definition")=20parent-bol=20= rust-ts-mode-indent-offset)=0A=20=20=20=20=20=20((parent-is=20= "parameters")=20parent-bol=20rust-ts-mode-indent-offset)=0A+=20=20=20=20=20= ((parent-is=20"struct_pattern")=20parent-bol=20= rust-ts-mode-indent-offset)=0A=20=20=20=20=20=20((parent-is=20= "token_tree")=20parent-bol=20rust-ts-mode-indent-offset)=0A=20=20=20=20=20= =20((parent-is=20"use_list")=20parent-bol=20= rust-ts-mode-indent-offset)))=0A=20=20=20"Tree-sitter=20indent=20rules=20= for=20`rust-ts-mode'.")=0A--=20=0A2.39.2=0A=0A= --Apple-Mail=_6037CC0F-2F82-45C2-BD13-57EBCBC5A420 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Brilliant, thanks! I applied it. Yuan --Apple-Mail=_6037CC0F-2F82-45C2-BD13-57EBCBC5A420--