summaryrefslogtreecommitdiffhomepage
path: root/cpp.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-03-23 22:02:40 +0100
committerRoland Reichwein <mail@reichwein.it>2020-03-23 22:02:40 +0100
commitfce1c18103f208857af477ca47af9aa908bd69b6 (patch)
tree3d0affeca1328825e81be8950f19e956f39ab213 /cpp.cpp
parent365183e243d164185bca6ad9fa4e0d75664800f4 (diff)
Helper functions for grammer
Diffstat (limited to 'cpp.cpp')
-rw-r--r--cpp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp.cpp b/cpp.cpp
index 69ca847..f59859d 100644
--- a/cpp.cpp
+++ b/cpp.cpp
@@ -198,7 +198,7 @@ std::vector<Token> CPP::tokens_from_pptokens(std::vector<Token> pp_tokens)
if (pp_types.find(token.type) != pp_types.end()) {
if (token.type == "identifier") {
if (keywords.find(token.value) != keywords.end())
- result.emplace_back(token.value, token.value);
+ result.emplace_back(Token{token.value, token.value});
else
result.emplace_back(Token{"identifier"s, token.value});
}