From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: miha--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59633: 29.0.50; tree-sitter-bash: Incorrect behaviour of heredocs with expansions Date: Sun, 27 Nov 2022 17:33:11 +0100 Message-ID: <871qpocq7s.fsf@miha-pc> Reply-To: miha@kamnitnik.top Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4247"; mail-complaints-to="usenet@ciao.gmane.io" To: 59633@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 27 17:32:20 2022 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 1ozKZo-0000vH-3V for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Nov 2022 17:32:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozKZc-0004oW-RG; Sun, 27 Nov 2022 11:32:08 -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 1ozKZZ-0004o3-Qv for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2022 11:32:06 -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 1ozKZW-0001ax-7c for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2022 11:32:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ozKZV-0006SX-Nr for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2022 11:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: miha@kamnitnik.top Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Nov 2022 16:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59633 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.166956672024821 (code B ref -1); Sun, 27 Nov 2022 16:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Nov 2022 16:32:00 +0000 Original-Received: from localhost ([127.0.0.1]:42964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozKZT-0006SH-TN for submit@debbugs.gnu.org; Sun, 27 Nov 2022 11:32:00 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:36226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozKZS-0006SB-MY for submit@debbugs.gnu.org; Sun, 27 Nov 2022 11:31:59 -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 1ozKZR-0004mG-Lc for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2022 11:31:58 -0500 Original-Received: from kamnitnik.top ([2001:19f0:5001:bf2:5400:2ff:fee0:2626]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozKZP-0001aF-OX for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2022 11:31:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1669566711; bh=myy+EahM/VIVxUuuP2CgBNUV3WFFQzMHwrz76kYMvNQ=; h=From:To:Subject:Date:From; b=i8Z8k0x+dDEjieh4TirsoUsfayznl+O0CNawiBTlAXSjYppAoq36FgRCnXY90saj6 325QGvmacibNPu9kik1Jqgib3jPtyh3/KJ6c4QofQ9FWKBVOTt04a2MRtjnJpKUWzt pkCRtN+KY6DlT02aKgJUxcmtxBg+iStxOGj87UlzWtTawQxuiyhj2uRRJ9arlDQOLX ew0VdxTMfbZH+8zqOfLEfiihoLINGF6YqkE0yJUkz2Kaq8G/Bj7d3NkBeZBUuLOtqd iQOm1aaA/xBnRaSnmHVuv52uwT8r3i5fMGff+PiiK3+mZ947BBVDAbTbW8ouZQdQCM 5nVIKoHoTN2Qg== Received-SPF: pass client-ip=2001:19f0:5001:bf2:5400:2ff:fee0:2626; envelope-from=miha@kamnitnik.top; helo=kamnitnik.top X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 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, FROM_SUSPICIOUS_NTLD=0.001, FROM_SUSPICIOUS_NTLD_FP=0.695, PDS_OTHER_BAD_TLD=1.999, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:249232 Archived-At: --=-=-= Content-Type: text/plain 1. Visit empty buffer test in fundamental mode (C-x b test RET) 2. Insert tee << EOF text1 $var text2 $(echo cmd) text3 $var2 EOF 3. Put point before "text2" 4. M-x load-library RET treesit RET 5. M-: (treesit-node-children (treesit-node-at (point) 'bash)) => (# #) Note that this list is incorrect, "$var2" at the end of heredoc is missing. 6. M-: (treesit-node-first-child-for-pos (treesit-node-at (point) 'bash) (point)) => nil Expected return value here is # I'm not sure if this bug is on Emacs, tree-sitter-bash or even tree-sitter itself and I don't know how to check. tree-sitter-bash version: 0.19.0.r19.g77cf8a7-1 tree-sitter version: 0.20.7-1 Thanks and best regards. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmODkUcTHG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP0RLD/9VbZlWr7J2slHBrD3p6xMxSDpDjsaE jro1PGHsSkpgNAfDGoVxDBI9fiaen3/UVGgC95gQ6I/le3ChBB3V2Y8/opFIIY9Y uthQZRVOb1IA/9Sf4UERRW/G29ygUz6AyNmGyRUOk5kBiFHkiC4xBjlKMnIqcGoV HoJedWG5DOcAaly9ifCA8AWz2+pRe3GP941Jnhw/t8Do/UawzzcOB4+NNcop+vnE c8NVN69LmeEi6zBAmHM9gPfDnPK4RrEpzkATDlyjXnitB1G76bwAFOZVszpwNByp ehlKb/RUhl7cRWINc3Oyvw1iab/e6Mfay4WdF46gEzy/YSlA4y7aEx4EA7K4muCI JCBP1HGauUlpgcBZBtqi15MYISDD8OfvirNZIWBxQ+/L4LoqPQoujgm2BO0BQS9H y00kiZAiTd32FYHG/9P4B4pfrrY2GPGVFBuc6ne4SwryxrQPrXbdwaO5gf7PA/Uz coVcwFAHA5kEqFLi5/RXqiJBlS1HIEsLACVTiE8i2sD0DWYksMO/9jehbWvoTHU9 ShqRybrKo23FLbOr3aZRNaSs1IpBgAOukgn45g6Ddom3KAf3GamOvhn7fSEMbMGz RsQPbvQvDeZMr63r3zVGivE97k9D7CanhV4iqsG7/XtFave2lWVLFhcoUAXKrx32 hj9dIKgxagO4Yg== =uc6n -----END PGP SIGNATURE----- --=-=-=--