Skip to content
Snippets Groups Projects
Commit 2ed551f6 authored by ilor's avatar ilor
Browse files

ignore consecutive colons in tag parsing, so parsing 'subst::::' throws an...

ignore consecutive colons in tag parsing, so parsing 'subst::::' throws an attribute-missing error instead of a unknown-value
parent 1983e13a
Branches
No related merge requests found
...@@ -177,6 +177,7 @@ void Tagset::parse_tag(const string_range_vector &fields, bool allow_extra, ...@@ -177,6 +177,7 @@ void Tagset::parse_tag(const string_range_vector &fields, bool allow_extra,
std::vector<mask_t> values; std::vector<mask_t> values;
mask_t amask; mask_t amask;
foreach (string_range& dot, dots) { foreach (string_range& dot, dots) {
if (dot.empty()) continue;
mask_t v = get_value_mask(boost::copy_range<std::string>(dot)); mask_t v = get_value_mask(boost::copy_range<std::string>(dot));
mask_t curr = get_attribute_mask(get_value_attribute(v)); mask_t curr = get_attribute_mask(get_value_attribute(v));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment