]> git.eshelyaron.com Git - emacs.git/commit
Support indentation of Ruby pattern matching expressions
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 21 Mar 2022 01:18:36 +0000 (03:18 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 21 Mar 2022 01:20:36 +0000 (03:20 +0200)
commitf0e8f4a4ca34c6510d87266951948f527b289631
tree676392a8a0a4868a32687b69114e2073965bc0a8
parent01336a2582269040a05bca4376285b1b1c8e3449
Support indentation of Ruby pattern matching expressions

* lisp/progmodes/ruby-mode.el (ruby-smie-grammar, ruby-smie-rules)
(ruby-block-mid-keywords): Treat 'in' token similarly to 'when'.

* test/lisp/progmodes/ruby-mode-resources/ruby.rb:
Add indentation example.
lisp/progmodes/ruby-mode.el
test/lisp/progmodes/ruby-mode-resources/ruby.rb