summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-09-25 20:56:28 +0100
committerAndreas Kling <kling@serenityos.org>2020-09-25 23:58:42 +0200
commit7d836656355c0766b71bb7b34d2ef461128b68ef (patch)
tree603263cc2eeb4c956604f1c65423a9e6915c6854 /Libraries/LibGUI
parent43b29286888994560f9df815ac05e286174bdc9f (diff)
downloadserenity-7d836656355c0766b71bb7b34d2ef461128b68ef.zip
LibJS+LibGUI+js: Handle UnterminatedRegexLiteral in syntax highlighters
Diffstat (limited to 'Libraries/LibGUI')
-rw-r--r--Libraries/LibGUI/JSSyntaxHighlighter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGUI/JSSyntaxHighlighter.cpp b/Libraries/LibGUI/JSSyntaxHighlighter.cpp
index 3d8785c22c..5fba9bc2db 100644
--- a/Libraries/LibGUI/JSSyntaxHighlighter.cpp
+++ b/Libraries/LibGUI/JSSyntaxHighlighter.cpp
@@ -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: