lib/faml/static_hash_parser.rb in faml-0.2.8 vs lib/faml/static_hash_parser.rb in faml-0.2.9
- old
+ new
@@ -12,10 +12,12 @@
@static_attributes = {}
@dynamic_attributes = {}
end
def parse(text)
- parser = ::Parser::CurrentRuby.new
+ builder = ::Parser::Builders::Default.new
+ builder.emit_file_line_as_literals = false
+ parser = ::Parser::CurrentRuby.new(builder)
parser.diagnostics.consumer = nil
buffer = ::Parser::Source::Buffer.new('(faml)')
buffer.source = text
walk(parser.parse(buffer))
rescue ::Parser::SyntaxError