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:
parent
c38b8d63f8
commit
29bc978564
Notes:
sideshowbarker
2024-07-19 04:35:04 +09:00
Author: https://github.com/nico
Commit: 29bc978564
Pull-request: https://github.com/SerenityOS/serenity/pull/2893
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;
|
||||
|
|
|
@ -65,6 +65,8 @@ namespace GUI {
|
|||
__TOKEN(SlashEquals) \
|
||||
__TOKEN(Percent) \
|
||||
__TOKEN(PercentEquals) \
|
||||
__TOKEN(Caret) \
|
||||
__TOKEN(CaretEquals) \
|
||||
__TOKEN(Equals) \
|
||||
__TOKEN(EqualsEquals) \
|
||||
__TOKEN(And) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue