(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:
parent
f2bedf695c
commit
ba33b83ce4
2 changed files with 8 additions and 1 deletions
|
@ -152,7 +152,6 @@
|
|||
"then"
|
||||
"ensure"
|
||||
"body_statement"
|
||||
"parenthesized_statements"
|
||||
"interpolation")
|
||||
string-end)
|
||||
"Regular expression of the nodes that can contain statements.")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue