lib/faml/element_parser.rb in faml-0.2.8 vs lib/faml/element_parser.rb in faml-0.2.9

- old
+ new

@@ -97,11 +97,11 @@ if depth == 0 attr = s.pre_match + s.matched return [attr[1, attr.size-2], s.rest] else if /,\s*\z/ === text && @line_parser.has_next? - text << @line_parser.next_line + text << "\n" << @line_parser.next_line else syntax_error!('Unmatched brace') end end end @@ -120,10 +120,10 @@ t = s.string.byteslice(pre_pos ... s.pos-1) new_attributes.concat(parse_new_attribute_list(t)) return [new_attributes, s.rest] else if @line_parser.has_next? - text << ' ' << @line_parser.next_line + text << "\n" << @line_parser.next_line else syntax_error!('Unmatched paren') end end end