diff --git a/Libraries/LibGUI/CppLexer.cpp b/Libraries/LibGUI/CppLexer.cpp index 66d8647977..943cbf105f 100644 --- a/Libraries/LibGUI/CppLexer.cpp +++ b/Libraries/LibGUI/CppLexer.cpp @@ -433,6 +433,10 @@ Vector CppLexer::lex() emit_token_equals(CppToken::Type::Percent, CppToken::Type::PercentEquals); continue; } + if (ch == '^') { + emit_token_equals(CppToken::Type::Caret, CppToken::Type::CaretEquals); + continue; + } if (ch == '=') { emit_token_equals(CppToken::Type::Equals, CppToken::Type::EqualsEquals); continue; diff --git a/Libraries/LibGUI/CppLexer.h b/Libraries/LibGUI/CppLexer.h index 8bd80c355d..6a69584a88 100644 --- a/Libraries/LibGUI/CppLexer.h +++ b/Libraries/LibGUI/CppLexer.h @@ -65,6 +65,8 @@ namespace GUI { __TOKEN(SlashEquals) \ __TOKEN(Percent) \ __TOKEN(PercentEquals) \ + __TOKEN(Caret) \ + __TOKEN(CaretEquals) \ __TOKEN(Equals) \ __TOKEN(EqualsEquals) \ __TOKEN(And) \