* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Lower priority of
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 7 Nov 2013 01:58:12 +0000 (03:58 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 7 Nov 2013 01:58:12 +0000 (03:58 +0200)
"." compared to "do".

lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/indent/ruby.rb

index be01a0c..bbd86b5 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-07  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * progmodes/ruby-mode.el (ruby-smie-grammar): Lower priority of
+       "." compared to "do".
+
 2013-11-06  Glenn Morris  <rgm@gnu.org>
 
        * Makefile.in (setwins_almost, setwins_for_subdirs):
index 253a600..b502034 100644 (file)
@@ -280,7 +280,7 @@ explicitly declared in magic comment."
        (inst (exp) (inst "iuwu-mod" exp))
        (exp  (exp1) (exp "," exp) (exp "=" exp)
              (id " @ " exp)
-             (exp "." exp))
+             (exp "." id))
        (exp1 (exp2) (exp2 "?" exp1 ":" exp1))
        (exp2 ("def" insts "end")
              ("begin" insts-rescue-insts "end")
index 5e3db5a..3d881ed 100644 (file)
@@ -238,12 +238,10 @@ foo :bar do
   qux
 end
 
-# Examples below still fail with `ruby-use-smie' on:
-
 foo = [1, 2, 3].map do |i|
   i + 1
 end
 
-bar.foo do # "." is parent to "do"; it shouldn't be.
+bar.foo do
   bar
 end