aboutsummaryrefslogtreecommitdiffstats
path: root/test/indent/ruby.rb
diff options
context:
space:
mode:
authorDmitry Gutov2013-10-11 05:11:37 +0300
committerDmitry Gutov2013-10-11 05:11:37 +0300
commitb68e29263fbe7c31a54c0dab55a0121701ad8ec3 (patch)
treee9b16752a11a67132c01211d48e5bc6b1cbd7884 /test/indent/ruby.rb
parent0922b8260ac76c153b253c992c1a656fca1a22e2 (diff)
downloademacs-b68e29263fbe7c31a54c0dab55a0121701ad8ec3.tar.gz
emacs-b68e29263fbe7c31a54c0dab55a0121701ad8ec3.zip
* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Split the
cases of ? and =. (ruby-smie-rules): Simplify the "do" rule. The cases when the predicate would return nil are almost non-existent. (ruby-smie--redundant-do-p): Include "until" and "for" statements.
Diffstat (limited to 'test/indent/ruby.rb')
-rw-r--r--test/indent/ruby.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index 48275ee3e31..b280ec93ce2 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -151,6 +151,10 @@ z = {
151foo if 151foo if
152 bar 152 bar
153 153
154if foo?
155 bar
156end
157
154# Examples below still fail with `ruby-use-smie' on: 158# Examples below still fail with `ruby-use-smie' on:
155 159
156foo + 160foo +