(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"
|
"then"
|
||||||
"ensure"
|
"ensure"
|
||||||
"body_statement"
|
"body_statement"
|
||||||
"parenthesized_statements"
|
|
||||||
"interpolation")
|
"interpolation")
|
||||||
string-end)
|
string-end)
|
||||||
"Regular expression of the nodes that can contain statements.")
|
"Regular expression of the nodes that can contain statements.")
|
||||||
|
|
|
@ -54,6 +54,14 @@
|
||||||
bar :
|
bar :
|
||||||
tee
|
tee
|
||||||
|
|
||||||
|
with_paren = (a + b *
|
||||||
|
c * d +
|
||||||
|
12)
|
||||||
|
|
||||||
|
without_paren = a + b *
|
||||||
|
c * d +
|
||||||
|
12
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
# mode: ruby-ts
|
# mode: ruby-ts
|
||||||
# ruby-after-operator-indent: t
|
# ruby-after-operator-indent: t
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue