lib/faml/element_parser.rb in faml-0.2.6 vs lib/faml/element_parser.rb in faml-0.2.7
- old
+ new
@@ -18,9 +18,11 @@
unless m
syntax_error!('Invalid element declaration')
end
element = Ast::Element.new
+ element.filename = @line_parser.filename
+ element.lineno = @line_parser.lineno
element.tag_name = m[1]
element.static_class, element.static_id = parse_class_and_id(m[2])
rest = m[3] || ''
element.attributes, rest = parse_attributes(rest)