crystal-lang-tools / emacs-crystal-mode

A minimal crystal mode for emacs, based on ruby-mode.
https://melpa.org/#/crystal-mode
GNU General Public License v3.0
47 stars 19 forks source link

forward-sexp position error. #46

Open zw963 opened 2 years ago

zw963 commented 2 years ago

Plese check following code:

def self.get_user_by_auth_token(auth_token)
  decoded_open_id = decoded["open_id"]?

  if decoded_auth_token_salt.nil?
    return nil
  end

  user
end

When the cursor is upon the def, after pressing C-M-F, What we expected is to jump to the last line after end.

But, the actual behavior is: (cursor is I)

def self.get_user_by_auth_token(auth_token)
  decoded_open_id = decoded["open_id"]?

  if decoded_auth_token_salt.nil?
    return nil
  endI

  user
end

the jumped position is after the end of if.