From f9aa34cb679c1e96e0e5cf1004da07d72730e23d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 17 Aug 2014 16:04:50 -0400 Subject: [PATCH] Parser - When ::findPlainArgs promotes a WORD to a PATTERN, it needs to move the FILTER tag down to the child nodes. --- src/Parser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Parser.cpp b/src/Parser.cpp index cff8730a9..87035a453 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -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; } }