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

- old
+ new

@@ -96,10 +96,10 @@ depth = ParserUtils.balance(s, '{', '}', depth) if depth == 0 attr = s.pre_match + s.matched return [attr[1, attr.size-2], s.rest] else - if text[-1] == ',' && @line_parser.has_next? + if /,\s*\z/ === text && @line_parser.has_next? text << @line_parser.next_line else syntax_error!('Unmatched brace') end end