ruby-ts-mode: Also don't reindent 'identifier' when inside ERROR

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules):
Also don't reindent 'identifier' when inside ERROR.
This commit is contained in:
Dmitry Gutov 2023-02-09 04:48:25 +02:00
parent a5651c0c40
commit 973c1d24c6

View file

@ -571,7 +571,7 @@ a statement container is a node that matches
;; Incomplete buffer state, better not reindent (bug#61017). ;; Incomplete buffer state, better not reindent (bug#61017).
((and (parent-is "ERROR") ((and (parent-is "ERROR")
(or (node-is ,ruby-ts--class-or-module-regex) (or (node-is ,ruby-ts--class-or-module-regex)
(node-is "\\`def\\'"))) (node-is "\\`\\(?:def\\|identifier\\)\\'")))
no-indent 0) no-indent 0)
;; if then else elseif notes: ;; if then else elseif notes: