mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
LibJS+LibGUI+js: Handle UnterminatedRegexLiteral in syntax highlighters
This commit is contained in:
parent
43b2928688
commit
7d83665635
3 changed files with 4 additions and 1 deletions
|
@ -616,6 +616,7 @@ int main(int argc, char** argv)
|
|||
case JS::TokenType::RegexLiteral:
|
||||
case JS::TokenType::RegexFlags:
|
||||
case JS::TokenType::UnterminatedStringLiteral:
|
||||
case JS::TokenType::UnterminatedRegexLiteral:
|
||||
stylize({ start, end }, { Line::Style::Foreground(Line::Style::XtermColor::Green), Line::Style::Bold });
|
||||
break;
|
||||
case JS::TokenType::BracketClose:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue