mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 04:50:29 +00:00
js: Stylize TokenType::{Throw,Switch,Case}
This commit is contained in:
parent
2fdce695d6
commit
31d0dbe2a0
Notes:
sideshowbarker
2024-07-19 07:42:48 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/31d0dbe2a05 Pull-request: https://github.com/SerenityOS/serenity/pull/1743 Reviewed-by: https://github.com/alimpfard
1 changed files with 3 additions and 0 deletions
|
@ -516,12 +516,14 @@ int main(int argc, char** argv)
|
|||
case JS::TokenType::Interface:
|
||||
case JS::TokenType::Let:
|
||||
case JS::TokenType::New:
|
||||
case JS::TokenType::Throw:
|
||||
case JS::TokenType::Typeof:
|
||||
case JS::TokenType::Var:
|
||||
case JS::TokenType::Void:
|
||||
stylize({ start, end }, { Line::Style::Foreground(Line::Style::Color::Blue), Line::Style::Bold });
|
||||
break;
|
||||
case JS::TokenType::Await:
|
||||
case JS::TokenType::Case:
|
||||
case JS::TokenType::Catch:
|
||||
case JS::TokenType::Do:
|
||||
case JS::TokenType::Else:
|
||||
|
@ -529,6 +531,7 @@ int main(int argc, char** argv)
|
|||
case JS::TokenType::For:
|
||||
case JS::TokenType::If:
|
||||
case JS::TokenType::Return:
|
||||
case JS::TokenType::Switch:
|
||||
case JS::TokenType::Try:
|
||||
case JS::TokenType::While:
|
||||
case JS::TokenType::Yield:
|
||||
|
|
Loading…
Reference in a new issue