mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-03 16:17:19 +02:00
Parser
- Now tags ORIGINAL arguments that were quoted or escaped with QUOTED.
This commit is contained in:
parent
9dd7acac0b
commit
46c9ddc91f
1 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,10 @@ void Parser::initialize (int argc, const char** argv)
|
|||
branch->tag ("ORIGINAL");
|
||||
branch->tag ("?");
|
||||
|
||||
// If the argument contains a space, it was quoted. Remember that.
|
||||
if (! noSpaces (raw))
|
||||
branch->tag ("QUOTED");
|
||||
|
||||
std::vector <std::pair <std::string, Lexer::Type> > lexemes;
|
||||
Lexer::token_split (lexemes, raw);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue