1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

CppLexer: Add token types for "^", "^="

This commit is contained in:
Nico Weber 2020-07-26 18:16:22 -04:00 committed by Andreas Kling
parent c38b8d63f8
commit 29bc978564
Notes: sideshowbarker 2024-07-19 04:35:04 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -433,6 +433,10 @@ Vector<CppToken> 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;

View file

@ -65,6 +65,8 @@ namespace GUI {
__TOKEN(SlashEquals) \
__TOKEN(Percent) \
__TOKEN(PercentEquals) \
__TOKEN(Caret) \
__TOKEN(CaretEquals) \
__TOKEN(Equals) \
__TOKEN(EqualsEquals) \
__TOKEN(And) \