From 8a0c3e28bb9954e3937ea94fbc320bca883357ef Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Mon, 16 Dec 2024 10:39:50 +0100 Subject: [PATCH] Fix not being highlighted as keyword, Closes #23 --- .../core/language/LanguageHandlerJavaScript.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/cyclops/integratedscripting/core/language/LanguageHandlerJavaScript.java b/src/main/java/org/cyclops/integratedscripting/core/language/LanguageHandlerJavaScript.java index 51a5abec..a5ce5568 100644 --- a/src/main/java/org/cyclops/integratedscripting/core/language/LanguageHandlerJavaScript.java +++ b/src/main/java/org/cyclops/integratedscripting/core/language/LanguageHandlerJavaScript.java @@ -42,6 +42,7 @@ public LanguageHandlerJavaScript() { this.tokenStyles = Maps.newHashMap(); this.tokenStyles.put("const", KEYWORD); + this.tokenStyles.put("delete", KEYWORD); this.tokenStyles.put("let", KEYWORD); this.tokenStyles.put("var", KEYWORD); this.tokenStyles.put("function", KEYWORD);