Skip to content

Commit

Permalink
String interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
dempfi committed Sep 22, 2021
1 parent a530df6 commit ae5819b
Show file tree
Hide file tree
Showing 10 changed files with 94 additions and 12 deletions.
14 changes: 12 additions & 2 deletions ayu-dark.sublime-color-scheme
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
{
"name": "String",
"scope": "string, constant.other.symbol",
"scope": "string - meta.template, constant.other.symbol, string.quoted",
"foreground": "#aad94c"
},
{
Expand Down Expand Up @@ -113,6 +113,16 @@
"scope": "punctuation.accessor",
"foreground": "#f29668"
},
{
"name": "JavaScript/TypeScript interpolation punctuation",
"scope": "punctuation.definition.template-expression",
"foreground": "#ff8f40"
},
{
"name": "Ruby interpolation punctuation",
"scope": "punctuation.section.interpolation",
"foreground": "#ff8f40"
},
{
"name": "Types fixes",
"scope": "source.java storage.type, source.haskell storage.type, source.c storage.type",
Expand Down Expand Up @@ -253,7 +263,7 @@
{
"name": "Markup links",
"scope": "markup.underline.link, string.other.link",
"foreground": "#39bae6"
"foreground": "#59c2ff"
},
{
"name": "Markup Italic",
Expand Down
4 changes: 4 additions & 0 deletions ayu-dark.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,10 @@
"selected_fg": "#565b66",
"selected_match_fg": "#bfbdb6"
},
{
"class": "quick_panel_detail_label",
"link_color": "#59c2ff"
},
{
"class": "grid_layout_control",
"border_size": 0,
Expand Down
14 changes: 12 additions & 2 deletions ayu-light.sublime-color-scheme
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
{
"name": "String",
"scope": "string, constant.other.symbol",
"scope": "string - meta.template, constant.other.symbol, string.quoted",
"foreground": "#86b300"
},
{
Expand Down Expand Up @@ -113,6 +113,16 @@
"scope": "punctuation.accessor",
"foreground": "#ed9366"
},
{
"name": "JavaScript/TypeScript interpolation punctuation",
"scope": "punctuation.definition.template-expression",
"foreground": "#fa8d3e"
},
{
"name": "Ruby interpolation punctuation",
"scope": "punctuation.section.interpolation",
"foreground": "#fa8d3e"
},
{
"name": "Types fixes",
"scope": "source.java storage.type, source.haskell storage.type, source.c storage.type",
Expand Down Expand Up @@ -253,7 +263,7 @@
{
"name": "Markup links",
"scope": "markup.underline.link, string.other.link",
"foreground": "#55b4d4"
"foreground": "#399ee6"
},
{
"name": "Markup Italic",
Expand Down
4 changes: 4 additions & 0 deletions ayu-light.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,10 @@
"selected_fg": "#8a9199",
"selected_match_fg": "#5c6166"
},
{
"class": "quick_panel_detail_label",
"link_color": "#399ee6"
},
{
"class": "grid_layout_control",
"border_size": 0,
Expand Down
14 changes: 12 additions & 2 deletions ayu-mirage.sublime-color-scheme
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
{
"name": "String",
"scope": "string, constant.other.symbol",
"scope": "string - meta.template, constant.other.symbol, string.quoted",
"foreground": "#d5ff80"
},
{
Expand Down Expand Up @@ -113,6 +113,16 @@
"scope": "punctuation.accessor",
"foreground": "#f29e74"
},
{
"name": "JavaScript/TypeScript interpolation punctuation",
"scope": "punctuation.definition.template-expression",
"foreground": "#ffad66"
},
{
"name": "Ruby interpolation punctuation",
"scope": "punctuation.section.interpolation",
"foreground": "#ffad66"
},
{
"name": "Types fixes",
"scope": "source.java storage.type, source.haskell storage.type, source.c storage.type",
Expand Down Expand Up @@ -253,7 +263,7 @@
{
"name": "Markup links",
"scope": "markup.underline.link, string.other.link",
"foreground": "#5ccfe6"
"foreground": "#73d0ff"
},
{
"name": "Markup Italic",
Expand Down
4 changes: 4 additions & 0 deletions ayu-mirage.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,10 @@
"selected_fg": "#707a8c",
"selected_match_fg": "#cccac2"
},
{
"class": "quick_panel_detail_label",
"link_color": "#73d0ff"
},
{
"class": "grid_layout_control",
"border_size": 0,
Expand Down
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"5.1.0": "messages/5.1.0.md",
"6.0.0": "messages/6.0.0.md",
"6.0.1": "messages/6.0.1.md",
"6.0.2": "messages/6.0.2.md"
"6.0.2": "messages/6.0.2.md",
"6.0.3": "messages/6.0.3.md"
}
28 changes: 28 additions & 0 deletions messages/6.0.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
**ayu theme for Sublime Text**
https://github.com/dempfi/ayu/releases

---

ayu from version 3.0.0 supports customization via A File Icon package
(https://github.com/ihodev/a-file-icon). Please install it for better expereince.

---

# Version 6.0.3
- Fix package control links
- Improve string interpolation styles

# Version 6.0.0

🎉 This release updates ayu to support Sublime Text 4

- New tab style for separators
- Updated colors to the latest

---

Breaking changes:

- None

---
14 changes: 12 additions & 2 deletions src/templates/syntax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default (scheme: Scheme) => ({

{
name: 'String',
scope: 'string, constant.other.symbol',
scope: 'string - meta.template, constant.other.symbol, string.quoted',
foreground: scheme.syntax.string.hex()
},
{
Expand Down Expand Up @@ -157,6 +157,16 @@ export default (scheme: Scheme) => ({
foreground: scheme.syntax.operator.hex()
},

{
name: 'JavaScript/TypeScript interpolation punctuation',
scope: 'punctuation.definition.template-expression',
foreground: scheme.syntax.keyword.hex()
},
{
name: 'Ruby interpolation punctuation',
scope: 'punctuation.section.interpolation',
foreground: scheme.syntax.keyword.hex()
},

// ------
// Types
Expand Down Expand Up @@ -318,7 +328,7 @@ export default (scheme: Scheme) => ({
{
name: 'Markup links',
scope: 'markup.underline.link, string.other.link',
foreground: scheme.syntax.tag.hex()
foreground: scheme.syntax.entity.hex()
},
{
name: 'Markup Italic',
Expand Down
7 changes: 4 additions & 3 deletions src/templates/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,16 +672,17 @@ export default (scheme: Scheme, kind: string) => [
"selected_fg": scheme.editor.fg.hex(),
"selected_match_fg": scheme.common.accent.hex()
},


{
"class": "quick_panel_path_label",
"fg": scheme.ui.fg.hex(),
"match_fg": scheme.editor.fg.hex(),
"selected_fg": scheme.ui.fg.hex(),
"selected_match_fg": scheme.editor.fg.hex()
},

{
"class": "quick_panel_detail_label",
"link_color": scheme.syntax.entity.hex()
},


// VIEWS
Expand Down

0 comments on commit ae5819b

Please sign in to comment.