diff options
Diffstat (limited to 'Libraries/LibRegex/RegexLexer.cpp')
-rw-r--r-- | Libraries/LibRegex/RegexLexer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Libraries/LibRegex/RegexLexer.cpp b/Libraries/LibRegex/RegexLexer.cpp index d7ad83e11c..a9439ff656 100644 --- a/Libraries/LibRegex/RegexLexer.cpp +++ b/Libraries/LibRegex/RegexLexer.cpp @@ -99,6 +99,13 @@ bool Lexer::try_skip(char c) return true; } +char Lexer::skip() +{ + auto c = peek(); + consume(); + return c; +} + Token Lexer::next() { size_t token_start_position; |