From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Roi Martin Newsgroups: gmane.emacs.bugs Subject: bug#75362: 29.4; go-ts-mode.el: wrong indentation inside var list Date: Sat, 04 Jan 2025 16:40:18 +0100 Message-ID: <87h66e8u59.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13090"; mail-complaints-to="usenet@ciao.gmane.io" To: 75362@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 18:47:49 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 1tU8FY-0003Ev-Q1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 18:47:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU8Ev-0007qk-7t; Sat, 04 Jan 2025 12:47:09 -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 1tU8Ep-0007q7-Tl for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 12:47:04 -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 1tU8Ep-0000FD-HR for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 12:47:03 -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:Date:From:To:Subject; bh=5OcqN3Sx5aODpHAtDFDZW2inZDeC6/W9yypkutoNCj4=; b=M7+/H9OOu847t2muSfU65QwqCufT+FHFcvKbmhOEHNeolsDMseL/VJWBmNnbuaDIPw/JujmqmAD01aSn2hdL6tXU4J2nzEnSMjdgrq91SnfWtzU9Ek57ft0FpTqWwDQ7w3mfzyhgI7eb2pyz96gN8yfx7TkCGGD1Umm/hLKDzKAMg9/enwbsWLr+qEAlJ84HSYDwdkm59ahRWRm8nwZRQg09pr0hQUgplYFOkoMGoUrfrxVj0xKZgiBy1nIB+VuniZciFsLTkau55ZMLRwroMF07BlKiLBhYzhJsNmo6uyvtJWmyzysVt8CwOFvrpKbm1ivKe7bPrcdMl9JUc9BWWQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU8Ep-0004GL-9M for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 12:47:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Roi Martin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 17:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75362 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.173601278416289 (code B ref -1); Sat, 04 Jan 2025 17:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Jan 2025 17:46:24 +0000 Original-Received: from localhost ([127.0.0.1]:57143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU8EA-0004Ed-S4 for submit@debbugs.gnu.org; Sat, 04 Jan 2025 12:46:23 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:36266) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU6GX-0006rK-Na for submit@debbugs.gnu.org; Sat, 04 Jan 2025 10:40:42 -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 1tU6GL-0002EV-C5 for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 10:40:29 -0500 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tU6GJ-0000AR-AH for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 10:40:29 -0500 Original-Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4364a37a1d7so137369755e9.3 for ; Sat, 04 Jan 2025 07:40:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736005225; x=1736610025; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=5OcqN3Sx5aODpHAtDFDZW2inZDeC6/W9yypkutoNCj4=; b=Pv62D6rr5bmnzXVGZoXNh7h/66NTfxGtI4R/QNH3Eu/Bz0sneZdhWTVzqFw9fl4UrR CBX3W/2EsCUWEqHUCVvA832QEMaIZr4NjeFiRqCTsH8GLjG79BPl1mGjYpoAyKUrDolX JDDeCpvB6rhi5ql/+wso/ugwMjh7flnfOjNPL61/Z2GSGLpSZBqoZ2c29lUB6SvRZAqI EFRxYpvOd91hohN+E5CYYWE3e4gy1HkwhF01ZhrDFm/8qhBD90hBMTqyaEXzvZLE60QM UPG1VhAd1kj3nXOvEXtz9iOfpnOz6csDt1Q1kD7vR18EutxryEwaTdpqxpFHf+Y0qH2f YMjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736005225; x=1736610025; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5OcqN3Sx5aODpHAtDFDZW2inZDeC6/W9yypkutoNCj4=; b=Vl97lfe5gC+nMTXRxAgift/nmOBSTBANspywDRtVbfIprNk3LA0dOzqm4kQgRZyIPe nZitM4XF4mngTge8+gqQELKOORiQ9c2Rq00imUSWh41SwGp9QNOn5UbJNqOJosPxO5Sp 2yYsWJxwsNpE+2+1F6ytarf5U27JjFPZGotd7bTBDLSr3F3NkXSVf9IQS1L5OBH7+Gu+ +7jfsVKzNUBXKdKST+ZZO35437An7YlolJP7v9Pi2+1jvH4hJYdvvQWb93jxseThJZ6W P9HyULPehzuHl1S9BGC/ydPZOqnEkKpx3+MQRDBcYO9I19ECOaYwRSpekGFEKIXnp1jr dRJw== X-Gm-Message-State: AOJu0YzLarB2ph5jLZ1WE7FKg8hwpHihKyrufrw5qH9i/+O5btJEzIZq xf1J1FcdlOsT/ph4H4DVdIIoT9LJCPO+uhhV8EX+xmPEJBFQ0n7uCunXUw== X-Gm-Gg: ASbGncsauB2LtGnsXWiNTB8fg7lbLQfZm53j6AhZ55rLyPiqTuqAtYASANzYZhSFcDt moQ1NSFErVbKV48cOOL+HQQ2GUhPA7cTNshjgOp870eXrr7aQD3w92PV5m8gMIOoI4zwRUl6Fzm UWVsreo92vO846oWSpa88yhyKlDvSDCZ4B2/Vs7HW+BM0KeTxM6rMuFdPjnTIT1mCABWaZyqfEO ILwcOTWhUwkUbb3lyUigPWtCiXE7C4/ACj+5h9iz91tzeMeSDtsXjNpbFY/5YYZE910397uyNE+ h2QyGf5lFa7fVuGRonAuoQ== X-Google-Smtp-Source: AGHT+IHvbTayXd1I+RHI07RRugFQdnoLTYPNElev2S8ljMlDydZDy0vYQuwtoHBP4xWpW+qGNWT9wg== X-Received: by 2002:a05:600c:4f11:b0:435:9ed3:5698 with SMTP id 5b1f17b1804b1-43668b5e09bmr408403545e9.24.1736005225187; Sat, 04 Jan 2025 07:40:25 -0800 (PST) Original-Received: from localhost (149.red-83-37-56.dynamicip.rima-tde.net. [83.37.56.149]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c89e140sm44369151f8f.79.2025.01.04.07.40.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2025 07:40:24 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=jroi.martin@gmail.com; helo=mail-wm1-x332.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-Mailman-Approved-At: Sat, 04 Jan 2025 12:46:21 -0500 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:298438 Archived-At: 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. For instance, the following code is indented as: ``` var ( one = 1 ) ``` Instead of: ``` var ( one = 1 ) ``` Just in case it can help, I think this stopped working with grammar version `v0.21.1`, that introduced `var_spec_list`: https://github.com/tree-sitter/tree-sitter-go/compare/v0.21.0...v0.21.1 Please, take it with a pinch of salt because I'm not very familiar with tree-sitter. In GNU Emacs 29.4 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.0) of 2024-10-10 built on 4825182c94fc4195b65c80c30f523a16 System Description: Fedora Linux 41 (Workstation Edition) Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-cairo --with-dbus --with-gif --with-gpm=no --with-harfbuzz --with-jpeg --with-json --with-modules --with-native-compilation=aot --with-pgtk --with-png --with-rsvg --with-sqlite3 --with-tiff --with-tree-sitter --with-webp --with-xpm build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig CXX=g++ 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LC_MONETARY: en_IE.UTF-8 value of $LC_NUMERIC: en_IE.UTF-8 value of $LC_TIME: en_IE.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Go Minor modes in effect: eglot--managed-mode: t flymake-mode: t denote-menu-bar-mode: t server-mode: t icomplete-mode: t fido-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t column-number-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/n/.emacs.d/elpa/transient-20250103.1731/transient hides /usr/share/emacs/29.4/lisp/transient Features: (shadow sort mail-extr emacsbug message puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils yank-media markdown-mode color noutline outline time-date files-x find-dired grep eglot external-completion array filenotify jsonrpc ert ewoc debug backtrace find-func flymake-proc flymake thingatpt compile text-property-search comint ansi-osc ansi-color imenu go-ts-mode treesit dired-aux denote xref project ring comp comp-cstr warnings cl-extra help-mode server rx dired dired-loaddefs icomplete cus-edit pp cus-load icons wid-edit easy-mmode clang-rename clang-include-fixer let-alist clang-format xml denote-autoloads elfeed-autoloads forge-autoloads closql-autoloads emacsql-autoloads geiser-chez-autoloads geiser-guile-autoloads geiser-autoloads ghub-autoloads htmlize-autoloads magit-autoloads pcase magit-section-autoloads dash-autoloads markdown-mode-autoloads racket-mode-autoloads tmr-autoloads transient-autoloads treepy-autoloads with-editor-autoloads info compat-autoloads yaml-autoloads zig-mode-autoloads reformatter-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 198588 19413) (symbols 48 16484 6) (strings 32 50057 3480) (string-bytes 1 1645981) (vectors 16 31794) (vector-slots 8 605866 18429) (floats 8 196 642) (intervals 56 753 136) (buffers 984 20))