mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 04:55:15 +00:00
js: Tweak the live syntax highlighting colors a bit
This commit is contained in:
parent
7725b1970e
commit
6833004a45
Notes:
sideshowbarker
2024-07-19 07:32:58 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6833004a454
1 changed files with 4 additions and 6 deletions
|
@ -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,13 +502,10 @@ 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::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 });
|
||||
case JS::TokenType::NullLiteral:
|
||||
stylize({ start, end }, { Line::Style::Foreground(Line::Style::Color::Yellow), Line::Style::Bold });
|
||||
break;
|
||||
case JS::TokenType::Class:
|
||||
case JS::TokenType::Const:
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue