(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.
This commit is contained in:
Dmitry Gutov 2023-01-19 03:51:51 +02:00
parent f2bedf695c
commit ba33b83ce4
2 changed files with 8 additions and 1 deletions

View file

@ -152,7 +152,6 @@
"then"
"ensure"
"body_statement"
"parenthesized_statements"
"interpolation")
string-end)
"Regular expression of the nodes that can contain statements.")

View file

@ -54,6 +54,14 @@
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