From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#62416: 30.0.50; Symbols skipped in the navigation in ruby-ts-mode Date: Mon, 03 Apr 2023 19:03:34 +0300 Organization: LINKOV.NET Message-ID: <868rf99kyh.fsf@mail.linkov.net> References: <9cfb677e-2c3b-94f3-e09f-8b231dd9b8f5@yandex.ru> <86v8iomzk3.fsf@mail.linkov.net> <7f03efd3-b3d8-2a93-3414-63a7a2604943@yandex.ru> <86v8imfrbt.fsf@mail.linkov.net> <385443e1-4d17-317b-decf-36a3cf50111e@yandex.ru> <86o7odmlnr.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5380"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: =?UTF-8?Q?Bo=C5=A1ko_?= =?UTF-8?Q?Ivani=C5=A1evi=C4=87?= , 62416-done@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 03 18:30:35 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 1pjN4j-0001Fn-4S for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Apr 2023 18:30:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjN4K-0000e2-I0; Mon, 03 Apr 2023 12:30:08 -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 1pjN4H-0000b1-SH for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2023 12:30:05 -0400 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 1pjN4H-00081s-It for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2023 12:30:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pjN4H-0000CO-DP for bug-gnu-emacs@gnu.org; Mon, 03 Apr 2023 12:30:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Apr 2023 16:30:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62416 X-GNU-PR-Package: emacs Original-Received: via spool by 62416-done@debbugs.gnu.org id=D62416.1680539393653 (code D ref 62416); Mon, 03 Apr 2023 16:30:05 +0000 Original-Received: (at 62416-done) by debbugs.gnu.org; 3 Apr 2023 16:29:53 +0000 Original-Received: from localhost ([127.0.0.1]:45067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjN45-0000AT-6I for submit@debbugs.gnu.org; Mon, 03 Apr 2023 12:29:53 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:39313) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjN43-0000AC-N0 for 62416-done@debbugs.gnu.org; Mon, 03 Apr 2023 12:29:52 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id E3BDEE0007; Mon, 3 Apr 2023 16:29:43 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Wed, 29 Mar 2023 01:24:49 +0300") 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:259191 Archived-At: >> Looking at test/lisp/progmodes/ruby-mode-resources/ruby.rb >> for example here curly brackets are not matched with 'C-M-f C-M-b' >> in string interpolation and regexps: >> "abc/#{ddf}ghi" >> /foo/xi != %r{bar}mo.tee >> Do you think it is possible to handle these cases >> by crafting treesit-sexp-type-regexp? > > I don't think so. tree-sitter parse tree has no information about these > parens or their positions. Actually, it has information about string interpolation, so adding "interpolation" to 'treesit-sexp-type-regexp' allows to navigate "#{ddf}" in "abc/#{ddf}ghi". But other paired characters in strings have no parsed information and need examining the text in the buffer indeed.