mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibJS+LibGUI+js: Handle UnterminatedRegexLiteral in syntax highlighters
This commit is contained in:
parent
43b2928688
commit
7d83665635
Notes:
sideshowbarker
2024-07-19 02:13:45 +09:00
Author: https://github.com/linusg
Commit: 7d83665635
Pull-request: https://github.com/SerenityOS/serenity/pull/3601
3 changed files with 4 additions and 1 deletions
|
@ -49,6 +49,7 @@ static TextStyle style_for_token_type(Gfx::Palette palette, JS::TokenType type)
|
|||
case JS::TokenType::RegexLiteral:
|
||||
case JS::TokenType::RegexFlags:
|
||||
case JS::TokenType::UnterminatedStringLiteral:
|
||||
case JS::TokenType::UnterminatedRegexLiteral:
|
||||
return { palette.syntax_string() };
|
||||
case JS::TokenType::BracketClose:
|
||||
case JS::TokenType::BracketOpen:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue