From 46c9ddc91fce72d38ac728ac012e91277784774d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 27 Jun 2014 19:06:35 -0400 Subject: [PATCH] Parser - Now tags ORIGINAL arguments that were quoted or escaped with QUOTED. --- src/Parser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Parser.cpp b/src/Parser.cpp index 53afd409e..d225a6440 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -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 > lexemes; Lexer::token_split (lexemes, raw);