From 3c30990b5088680e9bff1bd7a0c2e3816fab867c Mon Sep 17 00:00:00 2001 From: deathaxe Date: Fri, 18 Oct 2024 17:42:09 +0200 Subject: [PATCH] Add color rules for embedded/interpolation punctuation This commit highlights punctuation of embedded and interpolated code blocks like html/xml tags. Example: Jinja/Twig/... tags like {% tag ... %} {{ variable }} --- Base16 Eighties Dark.sublime-color-scheme | 12 +++++++++++- Base16 Mocha Dark.sublime-color-scheme | 12 +++++++++++- Base16 Ocean Dark.sublime-color-scheme | 12 +++++++++++- Base16 Ocean Light.sublime-color-scheme | 12 +++++++++++- Base16 Oceanic.sublime-color-scheme | 13 ++++++++++++- .../Widget - Spacegray Eighties.hidden-color-scheme | 12 +++++++++++- .../Widget - Spacegray Light.hidden-color-scheme | 12 +++++++++++- .../Widget - Spacegray Mocha.hidden-color-scheme | 12 +++++++++++- .../Widget - Spacegray Oceanic.hidden-color-scheme | 12 +++++++++++- widgets/Widget - Spacegray.hidden-color-scheme | 12 +++++++++++- 10 files changed, 111 insertions(+), 10 deletions(-) diff --git a/Base16 Eighties Dark.sublime-color-scheme b/Base16 Eighties Dark.sublime-color-scheme index fc5104d..7d60e79 100644 --- a/Base16 Eighties Dark.sublime-color-scheme +++ b/Base16 Eighties Dark.sublime-color-scheme @@ -83,7 +83,7 @@ }, { "name": "Definition Punctuation", - "scope": "punctuation.", + "scope": "punctuation.definition", "foreground": "var(base0C)" }, { @@ -91,6 +91,16 @@ "scope": "punctuation.section", "foreground": "var(base04)" }, + { + "name": "Embedded Punctuation", + "scope": "meta.embedded punctuation.section.embedded", + "foreground": "var(base0C)", + }, + { + "name": "Interpolation Punctuation", + "scope": "meta.interpolation punctuation.section.interpolation, meta.interpolation punctuation.definition.variable - meta.interpolation variable", + "foreground": "var(base0C)", + }, // Keywords diff --git a/Base16 Mocha Dark.sublime-color-scheme b/Base16 Mocha Dark.sublime-color-scheme index 0403715..ee39c36 100644 --- a/Base16 Mocha Dark.sublime-color-scheme +++ b/Base16 Mocha Dark.sublime-color-scheme @@ -83,7 +83,7 @@ }, { "name": "Definition Punctuation", - "scope": "punctuation.", + "scope": "punctuation.definition", "foreground": "var(base0C)" }, { @@ -91,6 +91,16 @@ "scope": "punctuation.section", "foreground": "var(base04)" }, + { + "name": "Embedded Punctuation", + "scope": "meta.embedded punctuation.section.embedded", + "foreground": "var(base0C)", + }, + { + "name": "Interpolation Punctuation", + "scope": "meta.interpolation punctuation.section.interpolation, meta.interpolation punctuation.definition.variable - meta.interpolation variable", + "foreground": "var(base0C)", + }, // Keywords diff --git a/Base16 Ocean Dark.sublime-color-scheme b/Base16 Ocean Dark.sublime-color-scheme index 4839bfd..7750f00 100644 --- a/Base16 Ocean Dark.sublime-color-scheme +++ b/Base16 Ocean Dark.sublime-color-scheme @@ -83,7 +83,7 @@ }, { "name": "Definition Punctuation", - "scope": "punctuation.", + "scope": "punctuation.definition", "foreground": "var(base0C)" }, { @@ -91,6 +91,16 @@ "scope": "punctuation.section", "foreground": "var(base04)" }, + { + "name": "Embedded Punctuation", + "scope": "meta.embedded punctuation.section.embedded", + "foreground": "var(base0C)", + }, + { + "name": "Interpolation Punctuation", + "scope": "meta.interpolation punctuation.section.interpolation, meta.interpolation punctuation.definition.variable - meta.interpolation variable", + "foreground": "var(base0C)", + }, // Keywords diff --git a/Base16 Ocean Light.sublime-color-scheme b/Base16 Ocean Light.sublime-color-scheme index c17d6fb..aaca193 100644 --- a/Base16 Ocean Light.sublime-color-scheme +++ b/Base16 Ocean Light.sublime-color-scheme @@ -85,7 +85,7 @@ }, { "name": "Definition Punctuation", - "scope": "punctuation.", + "scope": "punctuation.definition", "foreground": "var(base0C)" }, { @@ -93,6 +93,16 @@ "scope": "punctuation.section", "foreground": "var(base03)" }, + { + "name": "Embedded Punctuation", + "scope": "meta.embedded punctuation.section.embedded", + "foreground": "var(base0C)", + }, + { + "name": "Interpolation Punctuation", + "scope": "meta.interpolation punctuation.section.interpolation, meta.interpolation punctuation.definition.variable - meta.interpolation variable", + "foreground": "var(base0C)", + }, // Keywords diff --git a/Base16 Oceanic.sublime-color-scheme b/Base16 Oceanic.sublime-color-scheme index 7548a42..08e5090 100644 --- a/Base16 Oceanic.sublime-color-scheme +++ b/Base16 Oceanic.sublime-color-scheme @@ -83,7 +83,7 @@ }, { "name": "Definition Punctuation", - "scope": "punctuation.", + "scope": "punctuation.definition", "foreground": "var(base0C)" }, { @@ -91,6 +91,16 @@ "scope": "punctuation.section", "foreground": "var(base04)" }, + { + "name": "Embedded Punctuation", + "scope": "meta.embedded punctuation.section.embedded", + "foreground": "var(base0C)", + }, + { + "name": "Interpolation Punctuation", + "scope": "meta.interpolation punctuation.section.interpolation, meta.interpolation punctuation.definition.variable - meta.interpolation variable", + "foreground": "var(base0C)", + }, // Keywords @@ -106,6 +116,7 @@ }, // Classes, Functions, Types, Variables, ... + { "name": "Entities", "scope": "entity", diff --git a/widgets/Widget - Spacegray Eighties.hidden-color-scheme b/widgets/Widget - Spacegray Eighties.hidden-color-scheme index 49f13f4..be95298 100644 --- a/widgets/Widget - Spacegray Eighties.hidden-color-scheme +++ b/widgets/Widget - Spacegray Eighties.hidden-color-scheme @@ -76,7 +76,7 @@ }, { "name": "Definition Punctuation", - "scope": "punctuation.", + "scope": "punctuation.definition", "foreground": "var(base0C)" }, { @@ -84,6 +84,16 @@ "scope": "punctuation.section", "foreground": "var(base04)" }, + { + "name": "Embedded Punctuation", + "scope": "meta.embedded punctuation.section.embedded", + "foreground": "var(base0C)", + }, + { + "name": "Interpolation Punctuation", + "scope": "meta.interpolation punctuation.section.interpolation, meta.interpolation punctuation.definition.variable - meta.interpolation variable", + "foreground": "var(base0C)", + }, // Keywords diff --git a/widgets/Widget - Spacegray Light.hidden-color-scheme b/widgets/Widget - Spacegray Light.hidden-color-scheme index a6143ba..e6eb435 100644 --- a/widgets/Widget - Spacegray Light.hidden-color-scheme +++ b/widgets/Widget - Spacegray Light.hidden-color-scheme @@ -74,7 +74,7 @@ }, { "name": "Definition Punctuation", - "scope": "punctuation.", + "scope": "punctuation.definition", "foreground": "var(base0C)" }, { @@ -82,6 +82,16 @@ "scope": "punctuation.section", "foreground": "var(base03)" }, + { + "name": "Embedded Punctuation", + "scope": "meta.embedded punctuation.section.embedded", + "foreground": "var(base0C)", + }, + { + "name": "Interpolation Punctuation", + "scope": "meta.interpolation punctuation.section.interpolation, meta.interpolation punctuation.definition.variable - meta.interpolation variable", + "foreground": "var(base0C)", + }, // Keywords diff --git a/widgets/Widget - Spacegray Mocha.hidden-color-scheme b/widgets/Widget - Spacegray Mocha.hidden-color-scheme index 0909c87..b1f5b42 100644 --- a/widgets/Widget - Spacegray Mocha.hidden-color-scheme +++ b/widgets/Widget - Spacegray Mocha.hidden-color-scheme @@ -76,7 +76,7 @@ }, { "name": "Definition Punctuation", - "scope": "punctuation.", + "scope": "punctuation.definition", "foreground": "var(base0C)" }, { @@ -84,6 +84,16 @@ "scope": "punctuation.section", "foreground": "var(base04)" }, + { + "name": "Embedded Punctuation", + "scope": "meta.embedded punctuation.section.embedded", + "foreground": "var(base0C)", + }, + { + "name": "Interpolation Punctuation", + "scope": "meta.interpolation punctuation.section.interpolation, meta.interpolation punctuation.definition.variable - meta.interpolation variable", + "foreground": "var(base0C)", + }, // Keywords diff --git a/widgets/Widget - Spacegray Oceanic.hidden-color-scheme b/widgets/Widget - Spacegray Oceanic.hidden-color-scheme index 5d6ba94..1984b13 100644 --- a/widgets/Widget - Spacegray Oceanic.hidden-color-scheme +++ b/widgets/Widget - Spacegray Oceanic.hidden-color-scheme @@ -76,7 +76,7 @@ }, { "name": "Definition Punctuation", - "scope": "punctuation.", + "scope": "punctuation.definition", "foreground": "var(base0C)" }, { @@ -84,6 +84,16 @@ "scope": "punctuation.section", "foreground": "var(base04)" }, + { + "name": "Embedded Punctuation", + "scope": "meta.embedded punctuation.section.embedded", + "foreground": "var(base0C)", + }, + { + "name": "Interpolation Punctuation", + "scope": "meta.interpolation punctuation.section.interpolation, meta.interpolation punctuation.definition.variable - meta.interpolation variable", + "foreground": "var(base0C)", + }, // Keywords diff --git a/widgets/Widget - Spacegray.hidden-color-scheme b/widgets/Widget - Spacegray.hidden-color-scheme index 994400b..d87feb3 100644 --- a/widgets/Widget - Spacegray.hidden-color-scheme +++ b/widgets/Widget - Spacegray.hidden-color-scheme @@ -76,7 +76,7 @@ }, { "name": "Definition Punctuation", - "scope": "punctuation.", + "scope": "punctuation.definition", "foreground": "var(base0C)" }, { @@ -84,6 +84,16 @@ "scope": "punctuation.section", "foreground": "var(base04)" }, + { + "name": "Embedded Punctuation", + "scope": "meta.embedded punctuation.section.embedded", + "foreground": "var(base0C)", + }, + { + "name": "Interpolation Punctuation", + "scope": "meta.interpolation punctuation.section.interpolation, meta.interpolation punctuation.definition.variable - meta.interpolation variable", + "foreground": "var(base0C)", + }, // Keywords