lib/faml/parser.rb in faml-0.2.9 vs lib/faml/parser.rb in faml-0.2.10

- old
+ new

@@ -149,11 +149,11 @@ if text.start_with?('-#') @ast << create_node(Ast::HamlComment) return end node = create_node(Ast::SilentScript) - node.script = text[/\A- *(.*)\z/, 1] - node.script += RubyMultiline.read(@line_parser, node.script) + script = text[/\A- *(.*)\z/, 1] + node.script = [script, *RubyMultiline.read(@line_parser, script)].join("\n") @ast << node end def parse_filter(text) filter_name = text[/\A#{FILTER_PREFIX}(\w+)\z/, 1]