]> git.eshelyaron.com Git - emacs.git/commitdiff
(ruby-ts--statement-container-regexp): Remove "parenthesized_statements"
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 19 Jan 2023 01:51:51 +0000 (03:51 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 19 Jan 2023 03:27:43 +0000 (05:27 +0200)
* 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.

lisp/progmodes/ruby-ts-mode.el
test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb

index 3a6d513c330a9d66fc6dac2ef6393a56a333a4b1..5df7e397f035fdabd5eda949638b5b80cb8e414b 100644 (file)
           "then"
           "ensure"
           "body_statement"
-          "parenthesized_statements"
           "interpolation")
       string-end)
   "Regular expression of the nodes that can contain statements.")
index 9959de4fe71fa6874eae6e759f91a5fbc7de1032..1f7caf64c343a64f5b0960a1ef90cd4aefd81190 100644 (file)
@@ -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