aboutsummaryrefslogtreecommitdiffstats
path: root/test/indent/ruby.rb
diff options
context:
space:
mode:
authorDmitry Gutov2013-10-09 06:18:01 +0300
committerDmitry Gutov2013-10-09 06:18:01 +0300
commit238150c8ff55ab6d74f0fdcc7f163c8ee98c3749 (patch)
treec349bb1dd0dca3f33983368d1aeb93b539d67532 /test/indent/ruby.rb
parentb0949cc4c9edcfea541ad72ee5e7579fac7466e1 (diff)
downloademacs-238150c8ff55ab6d74f0fdcc7f163c8ee98c3749.tar.gz
emacs-238150c8ff55ab6d74f0fdcc7f163c8ee98c3749.zip
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent after hanging
iuwu-mod token. (ruby-smie--implicit-semi-p): Prohibit implicit semicolon after hanging iuwu-mod token. (ruby-smie--forward-token): Do not include a dot after a token in that token. (ruby-smie--backward-token): Likewise.
Diffstat (limited to 'test/indent/ruby.rb')
-rw-r--r--test/indent/ruby.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index 2b2b95bf47b..48275ee3e31 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -148,10 +148,14 @@ z = {
148 } 148 }
149} 149}
150 150
151foo if
152 bar
153
151# Examples below still fail with `ruby-use-smie' on: 154# Examples below still fail with `ruby-use-smie' on:
152 155
153foo + 156foo +
154 bar 157 bar
155 158
156foo if 159foo = [1, 2, 3].map do |i|
157 bar 160 i + 1
161end