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:
parent
a5651c0c40
commit
973c1d24c6
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue