From 4dcdad4cc46ed79fe447608be39e2d4ba0c8abc9 Mon Sep 17 00:00:00 2001 From: Jack Karamanian Date: Tue, 30 Jun 2020 19:55:41 -0500 Subject: [PATCH] LibGUI: Highlight JS Extends and Super tokens --- Libraries/LibGUI/JSSyntaxHighlighter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibGUI/JSSyntaxHighlighter.cpp b/Libraries/LibGUI/JSSyntaxHighlighter.cpp index 1de5d0bd72..3d8785c22c 100644 --- a/Libraries/LibGUI/JSSyntaxHighlighter.cpp +++ b/Libraries/LibGUI/JSSyntaxHighlighter.cpp @@ -110,6 +110,7 @@ static TextStyle style_for_token_type(Gfx::Palette palette, JS::TokenType type) case JS::TokenType::Const: case JS::TokenType::Delete: case JS::TokenType::Debugger: + case JS::TokenType::Extends: case JS::TokenType::Function: case JS::TokenType::In: case JS::TokenType::Instanceof: @@ -117,6 +118,7 @@ static TextStyle style_for_token_type(Gfx::Palette palette, JS::TokenType type) case JS::TokenType::Let: case JS::TokenType::New: case JS::TokenType::NullLiteral: + case JS::TokenType::Super: case JS::TokenType::Typeof: case JS::TokenType::Var: case JS::TokenType::Void: