diff options
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibCpp/Lexer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCpp/Lexer.cpp b/Userland/Libraries/LibCpp/Lexer.cpp index bbd622ad67..b7d0917e9c 100644 --- a/Userland/Libraries/LibCpp/Lexer.cpp +++ b/Userland/Libraries/LibCpp/Lexer.cpp @@ -757,6 +757,13 @@ Vector<Token> Lexer::lex() commit_token(Token::Type::Identifier); continue; } + + if (ch == '\\' && peek(1) == '\n') { + consume(); + consume(); + continue; + } + dbgln("Unimplemented token character: {}", ch); emit_single_char_token(Token::Type::Unknown); } |