From 162bfa1c7cf325f6efce6f6e080d29db91fbcf78 Mon Sep 17 00:00:00 2001 From: Josh Cheek Date: Wed, 6 Feb 2019 00:43:27 -0600 Subject: Test comments between multiline method chain --- test/ruby/test_syntax.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 4e8ffe56fb..1eefbf1c7c 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -981,6 +981,13 @@ eom assert_syntax_error("a&.x,=0", /multiple assignment destination/) end + def test_fluent_dot_with_empty_lines_between + assert_valid_syntax("a #\n #\n.foo") + assert_valid_syntax("a #\n #\n&.foo") + # assert_valid_syntax("a\n\n.foo") + # assert_valid_syntax("a \n \n &.foo") + end + def test_no_warning_logop_literal assert_warning("") do eval("true||raise;nil") -- cgit v1.2.3