diff options
author | Linus Groh <mail@linusgroh.de> | 2020-05-04 22:34:45 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-05 11:12:27 +0200 |
commit | 3e754a15d48e094bfaa6ce4faf4eb1bb1a07399a (patch) | |
tree | ce867e166b1a14257429b0dfdda8e38c4998b5ec /Libraries/LibGUI/JSSyntaxHighlighter.cpp | |
parent | 8e4301dea610850b847f92737de09f030e4efac7 (diff) | |
download | serenity-3e754a15d48e094bfaa6ce4faf4eb1bb1a07399a.zip |
LibJS: Implement bitwise assignment operators (&=, |=, ^=)
Diffstat (limited to 'Libraries/LibGUI/JSSyntaxHighlighter.cpp')
-rw-r--r-- | Libraries/LibGUI/JSSyntaxHighlighter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibGUI/JSSyntaxHighlighter.cpp b/Libraries/LibGUI/JSSyntaxHighlighter.cpp index 08769b2a56..30aa6d7e13 100644 --- a/Libraries/LibGUI/JSSyntaxHighlighter.cpp +++ b/Libraries/LibGUI/JSSyntaxHighlighter.cpp @@ -50,7 +50,6 @@ static TextStyle style_for_token_type(Gfx::Palette palette, JS::TokenType type) return { palette.syntax_string() }; case JS::TokenType::BracketClose: case JS::TokenType::BracketOpen: - case JS::TokenType::Caret: case JS::TokenType::Comma: case JS::TokenType::CurlyClose: case JS::TokenType::CurlyOpen: @@ -65,6 +64,8 @@ static TextStyle style_for_token_type(Gfx::Palette palette, JS::TokenType type) case JS::TokenType::Asterisk: case JS::TokenType::AsteriskAsteriskEquals: case JS::TokenType::AsteriskEquals: + case JS::TokenType::Caret: + case JS::TokenType::CaretEquals: case JS::TokenType::DoubleAmpersand: case JS::TokenType::DoubleAsterisk: case JS::TokenType::DoublePipe: |