From 973c1d24c6ab7515da7cda56200f7b8a1d91ad2f Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Thu, 9 Feb 2023 04:48:25 +0200 Subject: [PATCH] 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. --- lisp/progmodes/ruby-ts-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el index 20ffb38fb88..01b0cd784a3 100644 --- a/lisp/progmodes/ruby-ts-mode.el +++ b/lisp/progmodes/ruby-ts-mode.el @@ -571,7 +571,7 @@ a statement container is a node that matches ;; Incomplete buffer state, better not reindent (bug#61017). ((and (parent-is "ERROR") (or (node-is ,ruby-ts--class-or-module-regex) - (node-is "\\`def\\'"))) + (node-is "\\`\\(?:def\\|identifier\\)\\'"))) no-indent 0) ;; if then else elseif notes: -- 2.39.2