From fa48b788cfbefda4bab1b20179185ebd178a174b Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Mon, 17 Mar 2025 12:45:44 +0100 Subject: [PATCH] String inside an array isn't colored correctly (#243742) Fixes #243345 --- src/vs/editor/common/languages/highlights/typescript.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/editor/common/languages/highlights/typescript.scm b/src/vs/editor/common/languages/highlights/typescript.scm index 7b789592f61..813ce090dcc 100644 --- a/src/vs/editor/common/languages/highlights/typescript.scm +++ b/src/vs/editor/common/languages/highlights/typescript.scm @@ -19,10 +19,10 @@ (escape_sequence) @constant.character.escape.ts ((string) @string.quoted.single.ts - (#match? @string.quoted.single.ts "^'[^']*'$")) + (#match? @string.quoted.single.ts "^'.*'$")) ((string) @string.quoted.double.ts - (#match? @string.quoted.double.ts "^\"[^\"]*\"$")) + (#match? @string.quoted.double.ts "^\".*\"$")) ([ (template_string)