aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier2013-10-12 16:40:50 -0400
committerStefan Monnier2013-10-12 16:40:50 -0400
commit650fa7bfb4143c3f6f46939982ae7e8f69e806f7 (patch)
tree0bb784e4d142bf8592141448742a83afd87ff406 /test
parent46e5e833d91758f31fbbea3c894cd0c90e78c484 (diff)
downloademacs-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.rb4
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)
170if foo && 170if foo &&
171 bar 171 bar
172end 172end
173
174method1 arg1, # bug#15594
175 method2 arg2,
176 arg3