TW-1377
- TW-1377 Tags in default.command are treated as "operator text".
This commit is contained in:
@@ -567,12 +567,15 @@ void Parser::injectDefaults ()
|
||||
// because captureFirst inserts args immediately after the command, and
|
||||
// so has the effect of reversing the list.
|
||||
std::vector <std::string> args;
|
||||
Lexer::token_split (args, defaultCommand);
|
||||
split (args, defaultCommand, ' ');
|
||||
std::vector <std::string>::reverse_iterator r;
|
||||
for (r = args.rbegin (); r != args.rend (); ++r)
|
||||
{
|
||||
Tree* t = captureFirst (*r);
|
||||
t->tag ("DEFAULT");
|
||||
if (*r != "")
|
||||
{
|
||||
Tree* t = captureFirst (*r);
|
||||
t->tag ("DEFAULT");
|
||||
}
|
||||
}
|
||||
|
||||
std::string combined;
|
||||
|
||||
Reference in New Issue
Block a user