diff --git a/src/layout_abstract_syntax.rs b/src/layout_abstract_syntax.rs index cc92b3ec2..3477d4956 100644 --- a/src/layout_abstract_syntax.rs +++ b/src/layout_abstract_syntax.rs @@ -25,7 +25,7 @@ pub struct LayoutAbstractTag { /// The special content attribute, representing the inner elements of this tag. pub content: Option, /// User-defined attributes, which are prefixed with ':' - pub attributes: Vec, + pub user_attributes: Vec, } impl LayoutAbstractTag { @@ -35,14 +35,14 @@ impl LayoutAbstractTag { name, layout_attributes: Default::default(), content: None, - attributes: Vec::new(), + user_attributes: Vec::new(), } } pub fn add_attribute(&mut self, attribute: Attribute) { // User-defined attribute if attribute.name.chars().next().unwrap() == ':' { - self.attributes.push(attribute); + self.user_attributes.push(attribute); } else { self.add_builtin_attribute(attribute);