- When unsweetening tags, preserve the FILTER tag.
This commit is contained in:
Paul Beckingham 2014-10-15 02:33:50 -04:00
parent 8dd9082697
commit ae4272f477

View file

@ -526,14 +526,17 @@ void CLI::unsweetenTags ()
{ {
A left ("argTag", "tags"); A left ("argTag", "tags");
left.tag ("ATT"); left.tag ("ATT");
left.tag ("FILTER");
reconstructed.push_back (left); reconstructed.push_back (left);
A op ("argTag", sign == "+" ? "_hastag_" : "_notag_"); A op ("argTag", sign == "+" ? "_hastag_" : "_notag_");
op.tag ("OP"); op.tag ("OP");
op.tag ("FILTER");
reconstructed.push_back (op); reconstructed.push_back (op);
A right ("argTag", tag); A right ("argTag", tag);
right.tag ("LITERAL"); right.tag ("LITERAL");
right.tag ("FILTER");
reconstructed.push_back (right); reconstructed.push_back (right);
} }
else else