mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Lexer: Now uses std::make_tuple
This commit is contained in:
parent
248add6cea
commit
2e75326317
1 changed files with 2 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
|||
#include <cmake.h>
|
||||
#include <Lexer.h>
|
||||
#include <algorithm>
|
||||
#include <tuple>
|
||||
#include <ctype.h>
|
||||
#include <unicode.h>
|
||||
#include <utf8.h>
|
||||
|
@ -73,7 +74,7 @@ std::vector <std::tuple <std::string, Lexer::Type>> Lexer::tokenize (const std::
|
|||
Lexer::Type type;
|
||||
Lexer lexer (input);
|
||||
while (lexer.token (token, type))
|
||||
tokens.push_back (std::tuple <std::string, Lexer::Type> (token, type));
|
||||
tokens.push_back (std::make_tuple (token, type));
|
||||
|
||||
return tokens;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue