CLI2: No longer attempts to canonicalize rc:<file> and rc.<name>:<value>
This commit is contained in:
22
src/CLI2.cpp
22
src/CLI2.cpp
@@ -869,13 +869,23 @@ void CLI2::canonicalizeNames ()
|
|||||||
{
|
{
|
||||||
if (a._lextype == Lexer::Type::pair)
|
if (a._lextype == Lexer::Type::pair)
|
||||||
{
|
{
|
||||||
std::string name = a.attribute ("name");
|
std::string raw = a.attribute ("raw");
|
||||||
std::string canonical;
|
if (raw.substr (0, 3) != "rc:" &&
|
||||||
if (canonicalize (canonical, "pseudo", name) ||
|
raw.substr (0, 3) != "rc.")
|
||||||
canonicalize (canonical, "attribute", name) ||
|
|
||||||
canonicalize (canonical, "uda", name))
|
|
||||||
{
|
{
|
||||||
a.attribute ("canonical", canonical);
|
std::string name = a.attribute ("name");
|
||||||
|
std::string canonical;
|
||||||
|
if (canonicalize (canonical, "pseudo", name) ||
|
||||||
|
canonicalize (canonical, "attribute", name) ||
|
||||||
|
canonicalize (canonical, "uda", name))
|
||||||
|
{
|
||||||
|
a.attribute ("canonical", canonical);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
a._lextype = Lexer::Type::word;
|
||||||
|
}
|
||||||
|
|
||||||
changes = true;
|
changes = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user