From 24aefc00b3102a70349c5670ce8f358ba1bf5ac2 Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Sat, 23 Mar 2019 14:59:09 +0100 Subject: [PATCH 1/2] Colorize interpolated string literal begin and end characters The begin and end characters of a interpolated string literal `${}` is now colorized as keyword (`nord9`) for better visual distinction. GH-106 --- themes/nord.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/themes/nord.json b/themes/nord.json index 96dae5b..9df3532 100644 --- a/themes/nord.json +++ b/themes/nord.json @@ -839,9 +839,13 @@ }, { "name": "[JavaScript] String Template Literals Punctuation", - "scope": "source.js string.template punctuation.definition.template-expression", + "scope": [ + "source.js string.quoted.template punctuation.quasi.element.begin", + "source.js string.quoted.template punctuation.quasi.element.end", + "source.js string.template punctuation.definition.template-expression" + ], "settings": { - "foreground": "#5E81AC" + "foreground": "#81A1C1" } }, { From a218f629fd7075570443aa4528f89e93ead8a301 Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Sat, 23 Mar 2019 15:02:26 +0100 Subject: [PATCH 2/2] Adust color for function braces in string templates Before this commit the braces of functions in string templates used the color for strings. This has been improved to use `nord6` instead. GH-106 --- themes/nord.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/themes/nord.json b/themes/nord.json index 9df3532..bd2c0bb 100644 --- a/themes/nord.json +++ b/themes/nord.json @@ -848,6 +848,13 @@ "foreground": "#81A1C1" } }, + { + "name": "[JavaScript] Interpolated String Template Punctuation Functions", + "scope": "source.js string.quoted.template meta.method-call.with-arguments", + "settings": { + "foreground": "#ECEFF4" + } + }, { "name": "[JavaScript] String Template Literal Variable", "scope": [