aboutsummaryrefslogtreecommitdiffstats
path: root/test/indent/ruby.rb
diff options
context:
space:
mode:
authorDmitry Gutov2016-03-15 03:12:19 +0200
committerDmitry Gutov2016-03-15 03:16:27 +0200
commit040362001d66fd721d3a85cddfadf8041cc23f7f (patch)
tree3a4a11905728e90916dd2be93be148d2c07ca707 /test/indent/ruby.rb
parente6776f8362bbf6466c671cc8d381ba7da9e95301 (diff)
downloademacs-040362001d66fd721d3a85cddfadf8041cc23f7f.tar.gz
emacs-040362001d66fd721d3a85cddfadf8041cc23f7f.zip
Don't misindent arguments of a method call inside continuation
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Use smie-indent-virtual instead of smie-rule-parent (bug#23015). Simplify the traversal loop.
Diffstat (limited to 'test/indent/ruby.rb')
-rw-r--r--test/indent/ruby.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index 6ab814a4214..6793bfdec2a 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -405,6 +405,17 @@ zoo
405a.records().map(&:b).zip( 405a.records().map(&:b).zip(
406 foo) 406 foo)
407 407
408foo1 =
409 subject.update(
410 1
411 )
412
413foo2 =
414 subject.
415 update(
416 2
417 )
418
408# FIXME: This is not consistent with the example below it, but this 419# FIXME: This is not consistent with the example below it, but this
409# offset only happens if the colon is at eol, which wouldn't be often. 420# offset only happens if the colon is at eol, which wouldn't be often.
410# Tokenizing `bar:' as `:bar =>' would be better, but it's hard to 421# Tokenizing `bar:' as `:bar =>' would be better, but it's hard to