test/parse_helper.rb in parser-0.9.1 vs test/parse_helper.rb in parser-0.9.2

- old
+ new

@@ -1,11 +1,11 @@ require 'parser/all' module ParseHelper include AST::Sexp - ALL_VERSIONS = %w(1.8 1.9) + ALL_VERSIONS = %w(1.8 1.9 2.0) def setup @diagnostics = [] super if defined?(super) @@ -13,10 +13,10 @@ def parser_for_ruby_version(version) case version when '1.8'; parser = Parser::Ruby18.new when '1.9'; parser = Parser::Ruby19.new - # when '2.0'; parser = Parser::Ruby20.new # not yet + when '2.0'; parser = Parser::Ruby20.new else raise "Unrecognized Ruby version #{version}" end parser.diagnostics.consumer = lambda do |diagnostic| @diagnostics << diagnostic