diff --git a/AK/GenericLexer.h b/AK/GenericLexer.h index 3c317782d4..57649f9840 100644 --- a/AK/GenericLexer.h +++ b/AK/GenericLexer.h @@ -229,6 +229,11 @@ constexpr auto is_any_of(StringView values) return [values](auto c) { return values.contains(c); }; } +constexpr auto is_not_any_of(StringView values) +{ + return [values](auto c) { return !values.contains(c); }; +} + constexpr auto is_path_separator = is_any_of("/\\"); constexpr auto is_quote = is_any_of("'\"");