aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/server/lexer/token.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'server/lexer/token.cpp')
-rw-r--r--server/lexer/token.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/lexer/token.cpp b/server/lexer/token.cpp
index 61ab1e7..e2d0a3f 100644
--- a/server/lexer/token.cpp
+++ b/server/lexer/token.cpp
@@ -49,8 +49,9 @@ bool Token::operator==(const Token& other) const {
if (m_type == Type::NUMBER) {
return numbers_equal(as_number(), other.as_number());
}
- throw LexerError{"internal: can't compare tokens of type: " +
- token::type_to_int_string(m_type)};
+ throw LexerError{
+ "internal: can't compare tokens of type: " + token::type_to_int_string(m_type)
+ };
}
double Token::as_number() const {