diff options
| author | Dmitry Gutov | 2016-03-14 00:15:06 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2016-03-14 01:45:01 +0200 |
| commit | 5b705bc97d3928e6550d271c415c54e00e020011 (patch) | |
| tree | dea5346c13e94e024a5fc9e5ed57450b4f36743a /test | |
| parent | 04f5525fbb961f6006280be340ca0f03df9e80a7 (diff) | |
| download | emacs-5b705bc97d3928e6550d271c415c54e00e020011.tar.gz emacs-5b705bc97d3928e6550d271c415c54e00e020011.zip | |
Indent '.' relative to the first sibling expression
* lisp/progmodes/ruby-mode.el (ruby-smie-rules):
Indent '.' relative to the first sibling expression, instead of the
parent token (bug#17213).
Diffstat (limited to 'test')
| -rw-r--r-- | test/indent/ruby.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb index 51923f79373..941fffb2209 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb | |||
| @@ -317,6 +317,11 @@ def bar | |||
| 317 | .baz | 317 | .baz |
| 318 | end | 318 | end |
| 319 | 319 | ||
| 320 | abc(foo | ||
| 321 | .bar, | ||
| 322 | tee | ||
| 323 | .qux) | ||
| 324 | |||
| 320 | # http://stackoverflow.com/questions/17786563/emacs-ruby-mode-if-expressions-indentation | 325 | # http://stackoverflow.com/questions/17786563/emacs-ruby-mode-if-expressions-indentation |
| 321 | tee = if foo | 326 | tee = if foo |
| 322 | bar | 327 | bar |