diff options
| author | Dmitry Gutov | 2013-11-02 09:18:11 +0400 |
|---|---|---|
| committer | Dmitry Gutov | 2013-11-02 09:18:11 +0400 |
| commit | 3d42b9689949b927cd5e8e5d42ad96149abf5c45 (patch) | |
| tree | 89c0ba7ef27a2ce0e02b6b7cb7c830d22a7cf3b6 /test | |
| parent | a90e5a330c68cd42347083c21a6d495bbff7b547 (diff) | |
| download | emacs-3d42b9689949b927cd5e8e5d42ad96149abf5c45.tar.gz emacs-3d42b9689949b927cd5e8e5d42ad96149abf5c45.zip | |
* lisp/progmodes/ruby-mode.el (ruby-smie--rule-parent-skip-assign): New
function, replacement for `smie-rule-parent' for when we want to
skip over our direct parent if it's an assignment token..
(ruby-smie-rules): Use it.
Diffstat (limited to 'test')
| -rw-r--r-- | test/indent/ruby.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb index 633b2991d5e..65c33bb3ecf 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb | |||
| @@ -225,6 +225,14 @@ tee = if foo | |||
| 225 | bar | 225 | bar |
| 226 | end | 226 | end |
| 227 | 227 | ||
| 228 | a = b { | ||
| 229 | c | ||
| 230 | } | ||
| 231 | |||
| 232 | aa = bb do | ||
| 233 | cc | ||
| 234 | end | ||
| 235 | |||
| 228 | # Examples below still fail with `ruby-use-smie' on: | 236 | # Examples below still fail with `ruby-use-smie' on: |
| 229 | 237 | ||
| 230 | foo = [1, 2, 3].map do |i| | 238 | foo = [1, 2, 3].map do |i| |