Fix do-end block detection regexp

e.g
  form_for [:admin, @message] do |f|
  form_for @message, {:url => msg} do |f|