From: Eli Zaretskii <eliz@gnu.org>
To: Juri Linkov <juri@linkov.net>, Yuan Fu <casouri@gmail.com>,
dmitry@gutov.dev
Cc: 67036@debbugs.gnu.org
Subject: bug#67036: 30.0.50; treesit-forward-sexp not working properly in ruby-ts-mode
Date: Sat, 25 Nov 2023 11:25:06 +0200 [thread overview]
Message-ID: <83a5r2dw25.fsf@gnu.org> (raw)
In-Reply-To: <86bkc2nktq.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 10 Nov 2023 09:42:17 +0200)
Ping! Yuan and Dmitry, can we please make some progress here?
> Cc: dmitry@gutov.dev
> From: Juri Linkov <juri@linkov.net>
> Date: Fri, 10 Nov 2023 09:42:17 +0200
>
> Please try these 5 cases described in the comments of this diff:
>
> diff --git a/test/lisp/progmodes/ruby-mode-resources/ruby.rb b/test/lisp/progmodes/ruby-mode-resources/ruby.rb
> index 81d0dfd75c9..abe6a0789b9 100644
> --- a/test/lisp/progmodes/ruby-mode-resources/ruby.rb
> +++ b/test/lisp/progmodes/ruby-mode-resources/ruby.rb
> @@ -123,6 +123,7 @@ def test2 (arg)
> puts "there"
> end
>
> + # from "elsif" and "then" C-M-f should jump to next "elsif"/"else" like with { }
> if a == 2 then
> puts "hello"
> elsif a == 3
> @@ -179,6 +180,7 @@ def test2 (arg)
> bar,
> :a
>
> +# when point is after @, C-M-f should jump to the end of symbol
> zzz @abc,
> 4
>
> @@ -211,10 +213,16 @@ def test2 (arg)
>
> class C
> def foo
> - self.end
> + self.end # when point between 'e' and 'n', C-M-b should jump to "self"
> D.new.class
> end
>
> + class << self
> + def bar
> + end
> + end
> + # C-M-b at the end of "end" should jump to "class"
> +
> def begin
> end
> end
> @@ -522,6 +530,9 @@ def qux
> puts "Japanese translation: #{orig_text} => #{trans_text}"
> end
>
> +# C-M-f on '[' doesn't jump to after ']'
> +hash['key']
> +
> # Tokenizing "**" and "|" separately.
> def resolve(**args)
> members = proc do |**args|
>
> Is it possible to improve ruby-ts-mode to handle these cases?
next prev parent reply other threads:[~2023-11-25 9:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-10 7:42 bug#67036: 30.0.50; treesit-forward-sexp not working properly in ruby-ts-mode Juri Linkov
2023-11-25 9:25 ` Eli Zaretskii [this message]
2023-11-26 16:12 ` Dmitry Gutov
2023-11-27 17:06 ` Juri Linkov
2023-11-28 22:15 ` Dmitry Gutov
2023-11-29 7:04 ` Juri Linkov
2023-12-11 0:47 ` Dmitry Gutov
2023-12-11 17:09 ` Juri Linkov
2024-04-14 16:25 ` Juri Linkov
2024-05-02 6:29 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83a5r2dw25.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=67036@debbugs.gnu.org \
--cc=casouri@gmail.com \
--cc=dmitry@gutov.dev \
--cc=juri@linkov.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).