diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-02-28 11:11:39 +0000 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2023-02-28 12:55:10 +0000 |
commit | c06f4ac6f58261c079721b54058989d7695ef9c3 (patch) | |
tree | 0416efe327f8b9be6b8b2ba4abf1d283335a3ac2 /Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp | |
parent | 0511059d604d7544a4af4e8ebd990c755fd1cff2 (diff) | |
download | serenity-c06f4ac6f58261c079721b54058989d7695ef9c3.zip |
AK+Everywhere: Make GenericLexer::ignore_until() stop before the value
`consume_until(foo)` stops before foo, and so does
`ignore_until(Predicate)`, so let's make the other `ignore_until()`
overloads consistent with that so they're less confusing.
Diffstat (limited to 'Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp b/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp index e6a988bafe..f03f5a571b 100644 --- a/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp @@ -105,7 +105,7 @@ Vector<Endpoint> parse(ByteBuffer const& file_contents) auto consume_whitespace = [&lexer] { lexer.ignore_while([](char ch) { return isspace(ch); }); if (lexer.peek() == '/' && lexer.peek(1) == '/') - lexer.ignore_until([](char ch) { return ch == '\n'; }); + lexer.ignore_until('\n'); }; auto parse_parameter = [&](Vector<Parameter>& storage) { |