mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
CLI2: No longer attempts to canonicalize rc:<file> and rc.<name>:<value>
This commit is contained in:
parent
dcb13bd2b4
commit
0ee26a0cae
1 changed files with 16 additions and 6 deletions
22
src/CLI2.cpp
22
src/CLI2.cpp
|
@ -869,13 +869,23 @@ void CLI2::canonicalizeNames ()
|
|||
{
|
||||
if (a._lextype == Lexer::Type::pair)
|
||||
{
|
||||
std::string name = a.attribute ("name");
|
||||
std::string canonical;
|
||||
if (canonicalize (canonical, "pseudo", name) ||
|
||||
canonicalize (canonical, "attribute", name) ||
|
||||
canonicalize (canonical, "uda", name))
|
||||
std::string raw = a.attribute ("raw");
|
||||
if (raw.substr (0, 3) != "rc:" &&
|
||||
raw.substr (0, 3) != "rc.")
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue