summaryrefslogtreecommitdiffstatshomepage
path: root/server/lexer/details/parse.cpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-04 15:38:28 +0200
committerEgor Tensin <egor@tensin.name>2026-06-04 15:38:28 +0200
commitde58d43d48c379ad8fa0ef2694d4fb2feaaefe7e (patch)
treebf3843cdf626c678f17e64704bd42125f5a6a5be /server/lexer/details/parse.cpp
parentupdate benchmark (diff)
downloadmath-server-de58d43d48c379ad8fa0ef2694d4fb2feaaefe7e.tar.gz
math-server-de58d43d48c379ad8fa0ef2694d4fb2feaaefe7e.zip
adjust the formatting a little bit
Diffstat (limited to 'server/lexer/details/parse.cpp')
-rw-r--r--server/lexer/details/parse.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/lexer/details/parse.cpp b/server/lexer/details/parse.cpp
index e6f0898..1ba8097 100644
--- a/server/lexer/details/parse.cpp
+++ b/server/lexer/details/parse.cpp
@@ -33,7 +33,9 @@ public:
// ^ I fucking hate C++.
}
- std::string to_str() const { return m_match[0].str(); }
+ std::string to_str() const {
+ return m_match[0].str();
+ }
protected:
MatchResultsT m_match;
@@ -64,7 +66,9 @@ protected:
R"REGEX(^(?:\d+(?:\.\d*)?|\.\d+)(e[+-]?(\d*))?)REGEX"};
private:
- bool matched_e() const { return this->m_match[1].matched; }
+ bool matched_e() const {
+ return this->m_match[1].matched;
+ }
bool matched_e_power() const {
return this->m_match[2].matched && this->m_match[2].length() != 0;