summaryrefslogtreecommitdiffhomepage
path: root/cpp.cpp
diff options
context:
space:
mode:
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});
}