diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2014-02-01 16:54:58 +0200 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2014-02-01 16:54:58 +0200 |
commit | a09beb3df21677b0797e27cb75bd5c66226f6bc9 (patch) | |
tree | 305bfdfe3f0ff259d3215d1f3e40db20f6919a08 /test/indent | |
parent | 9ef58a52ac97a160e2818e69e7cd146e52fbdacf (diff) | |
download | emacs-a09beb3df21677b0797e27cb75bd5c66226f6bc9.tar.gz |
Fix bug#16609
* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Check for
`:' before binary operators. Don't check for `:'
before `[' and `(', or their syntax status. A percent literal
can't end with either.
Diffstat (limited to 'test/indent')
-rw-r--r-- | test/indent/ruby.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb index 49ed92f8fdc..cf6bcba8c39 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb @@ -135,6 +135,13 @@ end # Bug#15208 if something == :== do_something + + return false unless method == :+ + x = y + z # Bug#16609 + + a = 1 ? 2 :( + 2 + 3 + ) end # Example from http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html |