Skip to content

Commit

Permalink
Add more semantic highlighting scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
s-newman committed Dec 16, 2020
1 parent 1da3ea6 commit dca95be
Show file tree
Hide file tree
Showing 7 changed files with 174 additions and 0 deletions.
24 changes: 24 additions & 0 deletions ayu-dark-bordered.json
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,30 @@
"background": "#b3b1ad",
"foreground": "#626a73"
}
},
{
"scope": "emphasis",
"settings": {
"fontStyle": "italic"
}
},
{
"scope": "strong",
"settings": {
"fontStyle": "bold"
}
},
{
"scope": "markup.underline",
"settings": {
"fontStyle": "underline"
}
},
{
"scope": "markup.italic",
"settings": {
"fontStyle": "italic"
}
}
]
}
24 changes: 24 additions & 0 deletions ayu-dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,30 @@
"background": "#b3b1ad",
"foreground": "#626a73"
}
},
{
"scope": "emphasis",
"settings": {
"fontStyle": "italic"
}
},
{
"scope": "strong",
"settings": {
"fontStyle": "bold"
}
},
{
"scope": "markup.underline",
"settings": {
"fontStyle": "underline"
}
},
{
"scope": "markup.italic",
"settings": {
"fontStyle": "italic"
}
}
]
}
24 changes: 24 additions & 0 deletions ayu-light-bordered.json
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,30 @@
"background": "#575f66",
"foreground": "#abb0b6"
}
},
{
"scope": "emphasis",
"settings": {
"fontStyle": "italic"
}
},
{
"scope": "strong",
"settings": {
"fontStyle": "bold"
}
},
{
"scope": "markup.underline",
"settings": {
"fontStyle": "underline"
}
},
{
"scope": "markup.italic",
"settings": {
"fontStyle": "italic"
}
}
]
}
24 changes: 24 additions & 0 deletions ayu-light.json
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,30 @@
"background": "#575f66",
"foreground": "#abb0b6"
}
},
{
"scope": "emphasis",
"settings": {
"fontStyle": "italic"
}
},
{
"scope": "strong",
"settings": {
"fontStyle": "bold"
}
},
{
"scope": "markup.underline",
"settings": {
"fontStyle": "underline"
}
},
{
"scope": "markup.italic",
"settings": {
"fontStyle": "italic"
}
}
]
}
24 changes: 24 additions & 0 deletions ayu-mirage-bordered.json
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,30 @@
"background": "#cbccc6",
"foreground": "#5c6773"
}
},
{
"scope": "emphasis",
"settings": {
"fontStyle": "italic"
}
},
{
"scope": "strong",
"settings": {
"fontStyle": "bold"
}
},
{
"scope": "markup.underline",
"settings": {
"fontStyle": "underline"
}
},
{
"scope": "markup.italic",
"settings": {
"fontStyle": "italic"
}
}
]
}
24 changes: 24 additions & 0 deletions ayu-mirage.json
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,30 @@
"background": "#cbccc6",
"foreground": "#5c6773"
}
},
{
"scope": "emphasis",
"settings": {
"fontStyle": "italic"
}
},
{
"scope": "strong",
"settings": {
"fontStyle": "bold"
}
},
{
"scope": "markup.underline",
"settings": {
"fontStyle": "underline"
}
},
{
"scope": "markup.italic",
"settings": {
"fontStyle": "italic"
}
}
]
}
30 changes: 30 additions & 0 deletions src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,36 @@ export default (variant: SchemeName, bordered: boolean) => {
'background': scheme.common.fg.hex(),
'foreground': scheme.syntax.comment.hex()
}
},


// ------
// Additional scopes for semantic highlighting
// Adapted from the default dark theme for VS code:
// https://github.com/microsoft/vscode/blob/1.52.0/extensions/theme-defaults/themes/dark_vs.json
{
'scope': 'emphasis',
'settings': {
'fontStyle': 'italic'
}
},
{
'scope': 'strong',
'settings': {
'fontStyle': 'bold',
}
},
{
'scope': 'markup.underline',
'settings': {
'fontStyle': 'underline'
}
},
{
'scope': 'markup.italic',
'settings': {
'fontStyle': 'italic'
}
}
]
}
Expand Down

0 comments on commit dca95be

Please sign in to comment.