diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-16 16:37:12 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-16 16:37:32 +0200 |
commit | 6833004a45448b7a4a3a463640edf32e93b0e1e4 (patch) | |
tree | 7e9b7f0a346d1072d882554598cb6fb980fd0dcb | |
parent | 7725b1970e5b7a9ee1e23331f3e19989f28fd03a (diff) | |
download | serenity-6833004a45448b7a4a3a463640edf32e93b0e1e4.zip |
js: Tweak the live syntax highlighting colors a bit
-rw-r--r-- | Userland/js.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Userland/js.cpp b/Userland/js.cpp index 2ef5892298..7d8d435b69 100644 --- a/Userland/js.cpp +++ b/Userland/js.cpp @@ -449,7 +449,7 @@ int main(int argc, char** argv) case JS::TokenType::StringLiteral: case JS::TokenType::RegexLiteral: case JS::TokenType::UnterminatedStringLiteral: - stylize({ start, end }, { Line::Style::Foreground(Line::Style::Color::Red) }); + stylize({ start, end }, { Line::Style::Foreground(Line::Style::Color::Green), Line::Style::Bold }); break; case JS::TokenType::BracketClose: case JS::TokenType::BracketOpen: @@ -502,14 +502,11 @@ int main(int argc, char** argv) case JS::TokenType::Tilde: case JS::TokenType::UnsignedShiftRight: case JS::TokenType::UnsignedShiftRightEquals: - stylize({ start, end }, { Line::Style::Foreground(Line::Style::Color::Magenta) }); break; + case JS::TokenType::BoolLiteral: case JS::TokenType::NullLiteral: stylize({ start, end }, { Line::Style::Foreground(Line::Style::Color::Yellow), Line::Style::Bold }); break; - case JS::TokenType::BoolLiteral: - stylize({ start, end }, { Line::Style::Foreground(Line::Style::Color::Green), Line::Style::Bold }); - break; case JS::TokenType::Class: case JS::TokenType::Const: case JS::TokenType::Delete: @@ -541,6 +538,7 @@ int main(int argc, char** argv) stylize({ start, end }, { Line::Style::Foreground(Line::Style::Color::Cyan), Line::Style::Italic }); break; case JS::TokenType::Identifier: + stylize({ start, end }, { Line::Style::Foreground(Line::Style::Color::White), Line::Style::Bold }); default: break; } |