diff options
| author | Dmitry Gutov | 2013-10-11 05:11:37 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2013-10-11 05:11:37 +0300 |
| commit | b68e29263fbe7c31a54c0dab55a0121701ad8ec3 (patch) | |
| tree | e9b16752a11a67132c01211d48e5bc6b1cbd7884 /test/indent/ruby.rb | |
| parent | 0922b8260ac76c153b253c992c1a656fca1a22e2 (diff) | |
| download | emacs-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.rb | 4 |
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 = { | |||
| 151 | foo if | 151 | foo if |
| 152 | bar | 152 | bar |
| 153 | 153 | ||
| 154 | if foo? | ||
| 155 | bar | ||
| 156 | end | ||
| 157 | |||
| 154 | # Examples below still fail with `ruby-use-smie' on: | 158 | # Examples below still fail with `ruby-use-smie' on: |
| 155 | 159 | ||
| 156 | foo + | 160 | foo + |