diff options
author | Linus Groh <mail@linusgroh.de> | 2020-09-25 20:56:28 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-25 23:58:42 +0200 |
commit | 7d836656355c0766b71bb7b34d2ef461128b68ef (patch) | |
tree | 603263cc2eeb4c956604f1c65423a9e6915c6854 /Libraries/LibGUI | |
parent | 43b29286888994560f9df815ac05e286174bdc9f (diff) | |
download | serenity-7d836656355c0766b71bb7b34d2ef461128b68ef.zip |
LibJS+LibGUI+js: Handle UnterminatedRegexLiteral in syntax highlighters
Diffstat (limited to 'Libraries/LibGUI')
-rw-r--r-- | Libraries/LibGUI/JSSyntaxHighlighter.cpp | 1 |
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: |