aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/server/lexer/token_type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'server/lexer/token_type.cpp')
-rw-r--r--server/lexer/token_type.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/server/lexer/token_type.cpp b/server/lexer/token_type.cpp
index b0ab9e0..d26e6a4 100644
--- a/server/lexer/token_type.cpp
+++ b/server/lexer/token_type.cpp
@@ -54,8 +54,9 @@ private:
for (const auto& [type, str] : m_map) {
const auto [_, inserted] = strings.emplace(str);
if (!inserted) {
- throw std::logic_error{"multiple tokens have the same string representation: " +
- str};
+ throw std::logic_error{
+ "multiple tokens have the same string representation: " + str
+ };
}
}
}
@@ -82,8 +83,9 @@ private:
for (const auto& [type, str] : to_string) {
const auto [_, inserted] = from_string.emplace(str, type);
if (!inserted) {
- throw std::logic_error{"multiple tokens have the same string representation: " +
- str};
+ throw std::logic_error{
+ "multiple tokens have the same string representation: " + str
+ };
}
}
return from_string;