From 9b786de5beed35c6735ad58c41e9b3f01d4d4263 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 4 Sep 2015 11:55:22 -0400 Subject: [PATCH] CLI2: Clarified intent for demotion --- src/CLI2.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/CLI2.cpp b/src/CLI2.cpp index a5a9bf31f..1d10e93a4 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -422,7 +422,7 @@ void CLI2::handleArg0 () } //////////////////////////////////////////////////////////////////////////////// -// All arguments must be individually, and wholly recognized by the Lexer. Any +// All arguments must be individually and wholly recognized by the Lexer. Any // argument not recognized is considered a Lexer::Type::word. // // As a side effect, tags all arguments after a terminator ('--') with @@ -494,11 +494,10 @@ void CLI2::lexArguments () } //////////////////////////////////////////////////////////////////////////////// -// Until the Lexer gains access to CLI2::_entities, it can only guess at whether -// a command is a DOM reference. +// Scan all args for the 'add' and 'log' commands, and demote any +// Lexer::Type::Tag args with sign '-' to Lexer::Type::word. // -// [1] Scan all MODIFICATION args for the 'add' and 'log' commands, and demote -// any Lexer::Type::Tag args with sense '-' to Lexer::Type::word. +// TODO This is obsolete, given FILTER, MODIFICATION, MISCELLANEOUS. void CLI2::demotion () { bool changes = false;