Commit d85a89e3 authored by Dominik Charousset's avatar Dominik Charousset

Fix formatting

parent 73bd12e6
...@@ -103,7 +103,7 @@ struct parser_state { ...@@ -103,7 +103,7 @@ struct parser_state {
/// Consumes the next character if it satisfies given predicate (skips any /// Consumes the next character if it satisfies given predicate (skips any
/// whitespaces). /// whitespaces).
template<class Predicate> template <class Predicate>
bool consume_if(Predicate predicate) noexcept { bool consume_if(Predicate predicate) noexcept {
skip_whitespaces(); skip_whitespaces();
if (predicate(current())) { if (predicate(current())) {
...@@ -124,7 +124,7 @@ struct parser_state { ...@@ -124,7 +124,7 @@ struct parser_state {
/// Consumes the next character if it satisfies given predicate, not allowing /// Consumes the next character if it satisfies given predicate, not allowing
/// any whitespaces. /// any whitespaces.
template<class Predicate> template <class Predicate>
bool consume_strict_if(Predicate predicate) noexcept { bool consume_strict_if(Predicate predicate) noexcept {
if (predicate(current())) { if (predicate(current())) {
next(); next();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment