Commit b420ccfc authored by Dmitry Gutov's avatar Dmitry Gutov
Browse files

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

"." compared to "do".
parent e2e894cf
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):
......
......@@ -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")
......
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment