Parser
- When ::findPlainArgs promotes a WORD to a PATTERN, it needs to move the FILTER tag down to the child nodes.
This commit is contained in:
@@ -1656,19 +1656,22 @@ void Parser::findPlainArgs ()
|
||||
std::string canonical;
|
||||
if (! canonicalize (canonical, "attribute", raw))
|
||||
{
|
||||
// This tag also prevents further expanѕion.
|
||||
(*i)->unTag ("FILTER");
|
||||
(*i)->tag ("PATTERN");
|
||||
|
||||
Tree* branch = (*i)->addBranch (new Tree ("argPat"));
|
||||
branch->attribute ("raw", "description");
|
||||
branch->tag ("FILTER");
|
||||
|
||||
branch = (*i)->addBranch (new Tree ("argPat"));
|
||||
branch->attribute ("raw", "~");
|
||||
branch->tag ("OP");
|
||||
branch->tag ("FILTER");
|
||||
|
||||
branch = (*i)->addBranch (new Tree ("argPat"));
|
||||
branch->attribute ("raw", raw);
|
||||
branch->tag ("STRING");
|
||||
branch->tag ("FILTER");
|
||||
action = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user