mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 15:56:35 -04:00
ruby-ts-mode: Don't reindent when "class" or "def" is under "ERROR"
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules): Don't reindent when "class" or "def" is under "ERROR" (bug#61017).
This commit is contained in:
parent
abb3becb9f
commit
cfb180329b
|
|
@ -566,6 +566,12 @@ a statement container is a node that matches
|
|||
((n-p-gp nil nil "regex") no-indent 0)
|
||||
((parent-is "regex") no-indent 0)
|
||||
|
||||
;; Incomplete buffer state, better not reindent (bug#61017).
|
||||
((and (parent-is "ERROR")
|
||||
(or (node-is ,ruby-ts--class-or-module-regex)
|
||||
(node-is "\\`def\\'")))
|
||||
no-indent 0)
|
||||
|
||||
;; if then else elseif notes:
|
||||
;;
|
||||
;; 1. The "then" starts at the end of the line that ends
|
||||
|
|
|
|||
Loading…
Reference in a new issue