From ac5516bd7d568bbcea4fe46273d4f44c891a71ae Mon Sep 17 00:00:00 2001 From: Dmitry Gutov <dgutov@yandex.ru> Date: Wed, 18 Jan 2023 00:55:09 +0200 Subject: 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. --- test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb') 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: -- cgit v1.2.3