diff --git a/lib/parser/ruby34.y b/lib/parser/ruby34.y index 439d835b8..c8be29773 100644 --- a/lib/parser/ruby34.y +++ b/lib/parser/ruby34.y @@ -3116,7 +3116,7 @@ require 'parser' ---- inner def version - 33 + 34 end def default_encoding diff --git a/test/test_parser.rb b/test/test_parser.rb index f76eadb38..df3c9a34a 100644 --- a/test/test_parser.rb +++ b/test/test_parser.rb @@ -33,6 +33,7 @@ def parser_for_ruby_version(version) SINCE_3_1 = SINCE_3_0 - %w(3.0) SINCE_3_2 = SINCE_3_1 - %w(3.1) SINCE_3_3 = SINCE_3_2 - %w(3.2) + SINCE_3_4 = SINCE_3_3 - %w(3.3) # Guidelines for test naming: # * Test structure follows structure of AST_FORMAT.md. @@ -9218,7 +9219,7 @@ def test_pattern_matching_hash_with_heredoc_keys # diagnostic error because of the wrong lvar name assert_diagnoses( [:error, :lvar_name, { name: "a\n" }], - %Q{case nil; in "\#{ <<-HERE }":;\na\nHERE\nelse\nend}, + "case nil; in \"\#{ <<-HERE }\":;\na\nHERE\nelse\nend", %q{ ~~~~~~~ location}, SINCE_2_7 ) @@ -10600,7 +10601,7 @@ def test_parser_drops_truncated_parts_of_squiggly_heredoc s(:dstr, s(:begin), s(:str, "\n")), - %q{<<~HERE! #{}!HERE}.gsub('!', "\n"), + "<<~HERE\n \#{}\nHERE", %q{}, SINCE_2_3) end