From: Dmitry Gutov Date: Thu, 19 Jan 2023 01:51:51 +0000 (+0200) Subject: (ruby-ts--statement-container-regexp): Remove "parenthesized_statements" X-Git-Tag: emacs-29.0.90~673 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ba33b83ce4b27b353441a174faaba024d59e4614;p=emacs.git (ruby-ts--statement-container-regexp): Remove "parenthesized_statements" * lisp/progmodes/ruby-ts-mode.el (ruby-ts--statement-container-regexp): Remove "parenthesized_statements", it's not really a statement container, not one we'd use for indentation alignment anyway. * test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb: Add examples. --- diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el index 3a6d513c330..5df7e397f03 100644 --- a/lisp/progmodes/ruby-ts-mode.el +++ b/lisp/progmodes/ruby-ts-mode.el @@ -152,7 +152,6 @@ "then" "ensure" "body_statement" - "parenthesized_statements" "interpolation") string-end) "Regular expression of the nodes that can contain statements.") diff --git a/test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb b/test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb index 9959de4fe71..1f7caf64c34 100644 --- a/test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb +++ b/test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb @@ -54,6 +54,14 @@ qux = foo.fee ? bar : tee +with_paren = (a + b * + c * d + + 12) + +without_paren = a + b * + c * d + + 12 + # Local Variables: # mode: ruby-ts # ruby-after-operator-indent: t