diff --git a/AK/GenericLexer.h b/AK/GenericLexer.h index 131c0b24dd..e824f473a8 100644 --- a/AK/GenericLexer.h +++ b/AK/GenericLexer.h @@ -56,6 +56,12 @@ public: --m_index; } + constexpr void retreat(size_t count) + { + VERIFY(m_index >= count); + m_index -= count; + } + constexpr char consume() { VERIFY(!is_eof());