aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2023-01-19 03:51:51 +0200
committerDmitry Gutov2023-01-19 05:27:43 +0200
commitba33b83ce4b27b353441a174faaba024d59e4614 (patch)
tree4a5647675b702fbe152159726bf1bc24121527b8
parentf2bedf695c15da93e8e240ad11a350a8dc8b5549 (diff)
downloademacs-ba33b83ce4b27b353441a174faaba024d59e4614.tar.gz
emacs-ba33b83ce4b27b353441a174faaba024d59e4614.zip
(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.
-rw-r--r--lisp/progmodes/ruby-ts-mode.el1
-rw-r--r--test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb8
2 files changed, 8 insertions, 1 deletions
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 @@
152 "then" 152 "then"
153 "ensure" 153 "ensure"
154 "body_statement" 154 "body_statement"
155 "parenthesized_statements"
156 "interpolation") 155 "interpolation")
157 string-end) 156 string-end)
158 "Regular expression of the nodes that can contain statements.") 157 "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 ?
54 bar : 54 bar :
55 tee 55 tee
56 56
57with_paren = (a + b *
58 c * d +
59 12)
60
61without_paren = a + b *
62 c * d +
63 12
64
57# Local Variables: 65# Local Variables:
58# mode: ruby-ts 66# mode: ruby-ts
59# ruby-after-operator-indent: t 67# ruby-after-operator-indent: t