LibJS+LibGUI+js: Handle UnterminatedRegexLiteral in syntax highlighters

This commit is contained in:
Linus Groh 2020-09-25 20:56:28 +01:00 committed by Andreas Kling
commit 7d83665635
Notes: sideshowbarker 2024-07-19 02:13:45 +09:00
3 changed files with 4 additions and 1 deletions

View file

@ -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: