diff options
| author | Dmitry Gutov | 2013-10-09 06:18:01 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2013-10-09 06:18:01 +0300 |
| commit | 238150c8ff55ab6d74f0fdcc7f163c8ee98c3749 (patch) | |
| tree | c349bb1dd0dca3f33983368d1aeb93b539d67532 /test/indent/ruby.rb | |
| parent | b0949cc4c9edcfea541ad72ee5e7579fac7466e1 (diff) | |
| download | emacs-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.rb | 8 |
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 | ||
| 151 | foo 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 | ||
| 153 | foo + | 156 | foo + |
| 154 | bar | 157 | bar |
| 155 | 158 | ||
| 156 | foo if | 159 | foo = [1, 2, 3].map do |i| |
| 157 | bar | 160 | i + 1 |
| 161 | end | ||