1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

LibRegex: Use GenericLexer to consume escaped code points

This commit is contained in:
Timothy Flynn 2021-08-18 14:43:11 -04:00 committed by Andreas Kling
parent 5ff9596678
commit 6131c0485e
2 changed files with 29 additions and 61 deletions

View file

@ -80,6 +80,7 @@ protected:
ALWAYS_INLINE Token consume();
ALWAYS_INLINE Token consume(TokenType type, Error error);
ALWAYS_INLINE bool consume(String const&);
ALWAYS_INLINE Optional<u32> consume_escaped_code_point(bool unicode);
ALWAYS_INLINE bool try_skip(StringView);
ALWAYS_INLINE bool lookahead_any(StringView);
ALWAYS_INLINE char skip();