mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Rules: Stubbed ::parseRuleHolidays
This commit is contained in:
parent
ea5a5b743c
commit
78d29f8f1d
2 changed files with 13 additions and 0 deletions
|
@ -313,6 +313,10 @@ void Rules::parseRule (const std::string& input)
|
|||
else if (tokens.size () == 2 && tokens[1] == "theme:")
|
||||
parseRuleTheme (lines);
|
||||
|
||||
// define holidays:
|
||||
else if (tokens.size () == 2 && tokens[1] == "holidays:")
|
||||
parseRuleHolidays (lines);
|
||||
|
||||
// Error.
|
||||
else
|
||||
throw format ("Unrecognized rule type '{1}'", join (" ", tokens));
|
||||
|
@ -348,6 +352,14 @@ void Rules::parseRuleTag (const std::vector <std::string>& lines)
|
|||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Rules::parseRuleHolidays (const std::vector <std::string>& lines)
|
||||
{
|
||||
for (auto& line : lines)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
unsigned int Rules::getIndentation (const std::string& line)
|
||||
{
|
||||
|
|
|
@ -60,6 +60,7 @@ private:
|
|||
void parseRuleTheme (const std::vector <std::string>&);
|
||||
void parseRuleExclusions (const std::vector <std::string>&);
|
||||
void parseRuleTag (const std::vector <std::string>&);
|
||||
void parseRuleHolidays (const std::vector <std::string>&);
|
||||
|
||||
unsigned int getIndentation (const std::string&);
|
||||
std::vector <std::string> tokenizeLine (const std::string&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue