diff options
| author | Stefan Monnier | 2013-10-12 16:40:50 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-10-12 16:40:50 -0400 |
| commit | 650fa7bfb4143c3f6f46939982ae7e8f69e806f7 (patch) | |
| tree | 0bb784e4d142bf8592141448742a83afd87ff406 /test | |
| parent | 46e5e833d91758f31fbbea3c894cd0c90e78c484 (diff) | |
| download | emacs-650fa7bfb4143c3f6f46939982ae7e8f69e806f7.tar.gz emacs-650fa7bfb4143c3f6f46939982ae7e8f69e806f7.zip | |
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for paren-free
method calls (bug#bug#15594).
(ruby-smie--args-separator-p): New function.
(ruby-smie--forward-token, ruby-smie--backward-token): Use it to
recognize paren-free method calls.
Diffstat (limited to 'test')
| -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 287cbfd0ec4..67584c01c7a 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb | |||
| @@ -170,3 +170,7 @@ foo_bar_tee(1, 2, 3) | |||
| 170 | if foo && | 170 | if foo && |
| 171 | bar | 171 | bar |
| 172 | end | 172 | end |
| 173 | |||
| 174 | method1 arg1, # bug#15594 | ||
| 175 | method2 arg2, | ||
| 176 | arg3 | ||