From 16620bed45659819981681840ccc91603fed236f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 27 Jul 2015 02:13:43 -0400 Subject: [PATCH] CLI2: Demoting Lexer::Type::dom args that fail to canonicalize no longer makes sense --- src/CLI2.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/CLI2.cpp b/src/CLI2.cpp index 86f5dd4f0..0a22bc111 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -473,9 +473,7 @@ void CLI2::lexArguments () // Until the Lexer gains access to CLI2::_entities, it can only guess at whether // a command is a DOM reference. // -// [1] Scan all Lexer::Type::dom arguments, and demote to Lexer::Type::word any -// unrecognized arguments. -// [2] Scan all MODIFICATION args for the 'add' and 'log' commands, and demote +// [1] Scan all MODIFICATION args for the 'add' and 'log' commands, and demote // any Lexer::Type::Tag args with sense '-' to Lexer::Type::word. void CLI2::demotion () { @@ -483,16 +481,6 @@ void CLI2::demotion () for (auto& a : _args) { - if (a._lextype == Lexer::Type::dom) - { - std::string canonicalized; - if (! canonicalize (canonicalized, "attribute", a.attribute ("raw"))) - { - a._lextype = Lexer::Type::word; - changes = true; - } - } - if (a._lextype == Lexer::Type::tag && a.attribute ("sign") == "-") {