ruby-toggle-block: Fix in ruby-ts-mode
* lisp/progmodes/ruby-mode.el (ruby-toggle-block): Make it work with ruby-ts-mode. ruby-forward-sexp checks ruby-use-smie.
This commit is contained in:
parent
0d3b6518e3
commit
a0ce569d3b
1 changed files with 1 additions and 1 deletions
|
@ -1927,7 +1927,7 @@ If the result is do-end block, it will always be multiline."
|
|||
(end-of-line)
|
||||
(unless
|
||||
(if (and (re-search-backward "\\(?:[^#]\\)\\({\\)\\|\\(\\_<do\\_>\\)")
|
||||
(progn
|
||||
(let ((ruby-use-smie (and ruby-use-smie (consp smie-grammar))))
|
||||
(goto-char (or (match-beginning 1) (match-beginning 2)))
|
||||
(setq beg (point))
|
||||
(with-suppressed-warnings ((obsolete ruby-forward-sexp))
|
||||
|
|
Loading…
Add table
Reference in a new issue