From 2f84ba10862ccbd5fb70044b160c43e4c00b5822 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Mon, 7 Oct 2013 16:27:29 +0300 Subject: [PATCH] * test/indent/ruby.rb: Fix a spurious change, add more failing examples. --- test/ChangeLog | 4 ++++ test/indent/ruby.rb | 20 +++++++++++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/test/ChangeLog b/test/ChangeLog index 7392010cb93..7673e35e4bd 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,7 @@ +2013-10-07 Dmitry Gutov + + * indent/ruby.rb: Fix a spurious change, add more failing examples. + 2013-10-06 Dmitry Gutov * automated/ruby-mode-tests.el: Add tests for `ruby-forward-sexp' diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb index 7c8de323bdb..366d572449f 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb @@ -114,7 +114,7 @@ ensure end # Bug#15369 -MSG = 'Separate every 3 digits in the integer portion of a number' + +MSG = 'Separate every 3 digits in the integer portion of a number' \ 'with underscores(_).' class C @@ -137,7 +137,21 @@ desc "foo foo" \ foo. bar -# FIXME: is this really valid Ruby? Isn't the newline after "foo" treated as -# an implicit semi-colon? +# Examples below still fail with `ruby-use-smie' on: + +# https://github.com/rails/rails/blob/17f5d8e062909f1fcae25351834d8e89967b645e/activesupport/lib/active_support/time_with_zone.rb#L206 foo .bar + +z = { + foo: { + a: "aaa", + b: "bbb" + } +} + +foo + + bar + +foo if + bar -- 2.39.2