lib/faml/static_hash_parser.rb in faml-0.7.2 vs lib/faml/static_hash_parser.rb in faml-0.7.3

- old
+ new

@@ -13,12 +13,11 @@ @static_attributes = {} @dynamic_attributes = {} end def parse(text) - builder = ::Parser::Builders::Default.new - builder.emit_file_line_as_literals = false - parser = ::Parser::CurrentRuby.new(builder) + parser = ::Parser::CurrentRuby.default_parser + parser.builder.emit_file_line_as_literals = false parser.diagnostics.consumer = nil buffer = ::Parser::Source::Buffer.new('(faml)') buffer.source = text walk(parser.parse(buffer)) rescue ::Parser::SyntaxError