GNU bug report logs -
#67036
30.0.50; treesit-forward-sexp not working properly in ruby-ts-mode
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Fri, 10 Nov 2023 07:53:02 UTC
Severity: normal
Fixed in version 30.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
X-Debbugs-Cc: dmitry <at> gutov.dev
Please try these 5 cases described in the comments of this diff:
[ruby-ts-mode.patch (text/x-diff, inline)]
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|
[Message part 3 (text/plain, inline)]
Is it possible to improve ruby-ts-mode to handle these cases?
This bug report was last modified 1 year and 71 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.