private void next () {
current_token = reader.read_token (out begin, out end);
- // Skip <annotation /> (only generated by valac)
- if (current_token == MarkupTokenType.START_ELEMENT && reader.name == "annotation") {
- next (); // MarkupTokenType.END_ELEMENT, annotation
+ // Skip <annotation /> (only generated by valac) and <attribute />
+ if (current_token == MarkupTokenType.START_ELEMENT
+ && (reader.name == "annotation" || reader.name == "attribute")) {
+ next (); // MarkupTokenType.END_ELEMENT, annotation / attribute
next ();
}
}