From 0e6244999d124651f64ab2580d68b6b1c0b7120b Mon Sep 17 00:00:00 2001
From: Matthias Bodenbenner <m.bodenbenner@wzl-mq.rwth-aachen.de>
Date: Thu, 27 Jun 2024 16:43:34 +0200
Subject: [PATCH] added syntax higlighting for lists

---
 src/features/soil-editor/SoilTextEditor/SoilHighlight.ts | 3 +++
 src/features/soil-editor/SoilTextEditor/styles.css       | 7 +++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/features/soil-editor/SoilTextEditor/SoilHighlight.ts b/src/features/soil-editor/SoilTextEditor/SoilHighlight.ts
index 0344ff5..fd82779 100644
--- a/src/features/soil-editor/SoilTextEditor/SoilHighlight.ts
+++ b/src/features/soil-editor/SoilTextEditor/SoilHighlight.ts
@@ -36,6 +36,9 @@ export const soilHighlight = {
     }
 
   },
+  "list": {
+    pattern: /\bList\b/
+  },
   "event": {
     pattern: /\b(critical|debug|error|if|info|warning)\b/
   },
diff --git a/src/features/soil-editor/SoilTextEditor/styles.css b/src/features/soil-editor/SoilTextEditor/styles.css
index de66e22..a7a9b42 100644
--- a/src/features/soil-editor/SoilTextEditor/styles.css
+++ b/src/features/soil-editor/SoilTextEditor/styles.css
@@ -128,14 +128,17 @@ body {
     color: #A8859E
 }
 
-.light-theme .token.event {
+.light-theme .token.event,
+.light-theme .token.list {
     color: #E30066
 }
 
-.dark-theme .token.event {
+.dark-theme .token.event,
+.dark-theme .token.list {
     color: #F19EB1
 }
 
+
 .light-theme .token.warning {
     color: #CC071E
 }
-- 
GitLab