Browse Source

Util: Run clang-format on Json::Lexer

master
Riyyi 2 years ago
parent
commit
8dd3f11d7b
  1. 7
      src/util/json/lexer.cpp

7
src/util/json/lexer.cpp

@ -144,8 +144,8 @@ bool Lexer::getString()
continue;
}
if (!escape &&
(character == '"'
if (!escape
&& (character == '"'
|| character == '\r'
|| character == '\n'
|| character == '\0')) {
@ -189,8 +189,7 @@ bool Lexer::getNumberOrLiteral(Token::Type type)
|| character == '\t'
|| character == '\r'
|| character == '\n'
|| character == '\0'
) {
|| character == '\0') {
break;
}

Loading…
Cancel
Save