* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Lower priority of

"." compared to "do".
This commit is contained in:
Dmitry Gutov 2013-11-07 03:58:12 +02:00
parent e2e894cf5c
commit b420ccfc4c
3 changed files with 7 additions and 4 deletions

View 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):

View 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")

View file

@ -238,12 +238,10 @@ def bar
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