diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2016-03-14 00:34:01 +0200 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2016-03-14 01:45:01 +0200 |
commit | 9d463aec8b3d848556bbe320c0cf8bd310528168 (patch) | |
tree | a18418ddf6d45fdf2bab2c15b68610407577b04a /test | |
parent | 5b705bc97d3928e6550d271c415c54e00e020011 (diff) | |
download | emacs-9d463aec8b3d848556bbe320c0cf8bd310528168.tar.gz |
Tweak the left precedence of '=>'
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Tweak the left
precedence of '=>', to improve indentation and sexp navigation.
Diffstat (limited to 'test')
-rw-r--r-- | test/indent/ruby.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb index 941fffb2209..6ab814a4214 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb @@ -415,6 +415,12 @@ foo(bar: foo(:bar => tee) +regions = foo( + OpenStruct.new(id: 0, name: "foo") => [ + 10 + ] +) + {'a' => { 'b' => 'c', 'd' => %w(e f) |