summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2023-01-18 00:55:09 +0200
committerDmitry Gutov <dgutov@yandex.ru>2023-01-18 03:27:37 +0200
commitac5516bd7d568bbcea4fe46273d4f44c891a71ae (patch)
tree92655fcee895b0fcd2adbe388c3e0387f71a54d0 /test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb
parent5e2e68a0c2d7d4e06747ea9fc6112dae8d5e32b6 (diff)
downloademacs-ac5516bd7d568bbcea4fe46273d4f44c891a71ae.tar.gz
emacs-ac5516bd7d568bbcea4fe46273d4f44c891a71ae.tar.bz2
emacs-ac5516bd7d568bbcea4fe46273d4f44c891a71ae.zip
ruby-ts-mode: Fix/change indentation of a continuation method call
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules): Fix/change indentation of a continuation method call. * test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb: New examples.
Diffstat (limited to 'test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb')
-rw-r--r--test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb b/test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb
index 7de94ceadec..1a07ababc46 100644
--- a/test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb
+++ b/test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb
@@ -28,6 +28,19 @@ else
dog = 99
end
+foo1 =
+ subject.update(
+ 1
+ )
+
+foo2 =
+ subject.
+ update(
+ # Might make sense to indent this to 'subject' instead; but this
+ # style seems more popular.
+ 2
+ )
+
# Local Variables:
# mode: ruby-ts
# End: