Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support Ruby’s endless methods #143

Open
tofuya opened this issue Sep 26, 2023 · 1 comment
Open

Does not support Ruby’s endless methods #143

tofuya opened this issue Sep 26, 2023 · 1 comment

Comments

@tofuya
Copy link

tofuya commented Sep 26, 2023

Problem Description:

evil-matchit seems to not support ruby’s endless method. I confirmed that it fails with the following test case.
Endless methods are a new feature in Ruby 3.0 that allows developers to write more concise and expressive code.

class Bar
  def foo(abc) = bar +
                 baz

  def self.bar =
    123 +
    4

  def foo(...) = z

  def request_params = {
    headers: request_headers,
    body: request_body
  }

  def self.foo(
        baz,
        bar
      ) =
    what
end

Expected behavior:

The expected behavior is to jump between the definition line and the end of the endless method.

Actual behavior:

Pressing key % does not jump to the correct corresponding method or block.

Environment

Emacs Version: GNU Emacs 29.1 (build 2, aarch64-apple-darwin21.6.0)
Terminal Emacs
Evil-Matchit Version: 3.0.2
Evil Version: 1.15.0
Ruby: 3.1.2

@redguardtoo
Copy link
Owner

I'm looking into this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants