From 4d5e8161a0c819688d852c9a5f75050daa4d6a47 Mon Sep 17 00:00:00 2001 From: CozyWhiteBear Date: Tue, 18 Jul 2023 11:21:30 +0200 Subject: [PATCH] Fixed highlighting for initializing variable with a value (Issue #25) Applied suggestion from @Si13n7 --- witcherscript/grammar.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/witcherscript/grammar.json b/witcherscript/grammar.json index eab428a..e6eccf5 100644 --- a/witcherscript/grammar.json +++ b/witcherscript/grammar.json @@ -110,7 +110,7 @@ "name": "storage.type.ws" } }, - "end": ":\\s*(array\\s*<\\s*\\w+\\s*>|\\w*)\\s*;", + "end": ":\\s*(array\\s*<\\s*\\w+\\s*>|\\w*)\\s*(\\s*=.+)?;", "endCaptures": { "1": { "patterns": [ @@ -233,4 +233,4 @@ ] } } -} \ No newline at end of file +}