From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Randy Taylor Newsgroups: gmane.emacs.bugs Subject: bug#75362: 29.4; go-ts-mode.el: wrong indentation inside var list Date: Sun, 05 Jan 2025 22:05:09 +0000 Message-ID: References: <87h66e8u59.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="b1=_wzzwfNmEbjgtsozcj4iDjvp9WYvnPJCt5zWSRxFf6Zo" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18990"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75362@debbugs.gnu.org To: Roi Martin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 05 23:06:28 2025 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 1tUYlQ-0004oc-EA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 23:06:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUYl3-0000bY-Hz; Sun, 05 Jan 2025 17:06:05 -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 1tUYl1-0000b7-17 for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 17:06:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tUYl0-0001HT-OI for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 17:06:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=xnXl87MC3Lbg+fNQoXhhvKAm3si5JVhj/DdIR1DbjyA=; b=SvD7FNAYn/ebXsb8sCzJlDloghcylVnM9bfFJ5BdjbDzMgWJNlW78o/4LQpws6mA0BJ4ikG1wal7q+rKpEL5p7tgtrTR4jOIMOxj0LFHvXCHR+e8v+VlEmRke+83kaJMjlcMAeVONq4zLf/1DxGD8xRJFR6xxobxNTlvCCD3ROTFW4LCGEap0Xs5KSbYo4Q/Fd+k4+MvRxyps4W5Y1fR5CtvSkACEpWUR9UxBPGN4fVrBRiv2Jgl2DKzYo98a08FNE9lHqI3eC+P3S7NBy5tGc3tNZa3XAdCabe1KGDYNaJAQzY6YZbJQRDa/+pKzEQELqqN5vMb9F/i3a7aGbPzIQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUYl0-0006hB-Ey for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 17:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Randy Taylor Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2025 22:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75362 X-GNU-PR-Package: emacs Original-Received: via spool by 75362-submit@debbugs.gnu.org id=B75362.173611472625662 (code B ref 75362); Sun, 05 Jan 2025 22:06:02 +0000 Original-Received: (at 75362) by debbugs.gnu.org; 5 Jan 2025 22:05:26 +0000 Original-Received: from localhost ([127.0.0.1]:35684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUYkQ-0006fp-DA for submit@debbugs.gnu.org; Sun, 05 Jan 2025 17:05:26 -0500 Original-Received: from mail-4022.proton.ch ([185.70.40.22]:35613) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUYkM-0006dv-UB for 75362@debbugs.gnu.org; Sun, 05 Jan 2025 17:05:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rjt.dev; s=protonmail3; t=1736114715; x=1736373915; bh=xnXl87MC3Lbg+fNQoXhhvKAm3si5JVhj/DdIR1DbjyA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=l+J3qdszxUtbnXDA5aCwW7IC7NFJq5fxlgpIBpZ0LkkavP+uPJA5uxeJ2+vJJ/w94 VGqVlOS1t2fqb0brIbi/7OCLkAhFKnvJZGmeeHx/CzbxDECGL8c8REeMTJuwNVUM+L iD+IsXotx/eomFmN97ai9RJYlw7PiepDeK7vKkxN+Rocth/kf7LmUOw/2TNnny0+Dq m2ITGF02DggC/7IACPdbzQdOg4fSulCNxmSWehTrYJjOx+VNahPUAxrZr1YrTRiLid lgQ7T+css3NRiAzXtSyd24CrD0vX9wUeE1FdzJo8gg0UaySn6eb0Wt5acEqhbw+vD2 gIEvlmxXzNwrA== In-Reply-To: <87h66e8u59.fsf@gmail.com> Feedback-ID: 44397038:user:proton X-Pm-Message-ID: 164f0a62f82a11dc1225254269186de2197f94da 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:298619 Archived-At: --b1=_wzzwfNmEbjgtsozcj4iDjvp9WYvnPJCt5zWSRxFf6Zo Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Saturday, January 4th, 2025 at 10:40, Roi Martin = wrote: >=20 > When using the Go tree-sitter grammar v0.23.4 from > https://github.com/tree-sitter/tree-sitter-go.git, indentation inside > var lists does not work correctly. >=20 > For instance, the following code is indented as: >=20 > `var ( one =3D 1 )` >=20 > Instead of: >=20 > `var ( one =3D 1 )` >=20 > Just in case it can help, I think this stopped working with grammar > version `v0.21.1`, that introduced `var_spec_list`: >=20 > https://github.com/tree-sitter/tree-sitter-go/compare/v0.21.0...v0.21.1 >=20 > Please, take it with a pinch of salt because I'm not very familiar with > tree-sitter. >=20 > [...] >=20 Thanks for the report. The attached patch fixes it for me. --b1=_wzzwfNmEbjgtsozcj4iDjvp9WYvnPJCt5zWSRxFf6Zo Content-Type: text/x-patch; name=0001-Fix-go-ts-mode-var-spec-indentation-Bug-75362.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=0001-Fix-go-ts-mode-var-spec-indentation-Bug-75362.patch RnJvbSBlY2I4MGI4NDljM2JjNDkwMDg1YTQxNDZiOGY4ZDQ5OTk0OTIyMGMyIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBSYW5keSBUYXlsb3IgPGRldkByanQuZGV2PgpEYXRlOiBTdW4s IDUgSmFuIDIwMjUgMTY6NDg6MDAgLTA1MDAKU3ViamVjdDogW1BBVENIXSBGaXggZ28tdHMtbW9k ZSB2YXIgc3BlYyBpbmRlbnRhdGlvbiAoQnVnIzc1MzYyKQoKdjAuMjEuMSBhbmQgb253YXJkcyBj aGFuZ2VkIGhvdyB0aGlzIHdhcyBpbmRlbnRlZC4KCiogbGlzcC9wcm9nbW9kZXMvZ28tdHMtbW9k ZS5lbCAoZ28tdHMtbW9kZS0taW5kZW50LXJ1bGVzKToKQWRkIHJ1bGUgZm9y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