mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 03:47:34 +00:00
CppLexer: Add token types for "^", "^="
This commit is contained in:
parent
c38b8d63f8
commit
29bc978564
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue