Skip to content

Commit

Permalink
Import regex highlighting #678
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Feb 8, 2022
1 parent 2b73017 commit 225dfb5
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# CHANGELOG
## 3.13.19 | 2022.02.08
- Import regex highlighting [#678](https://github.com/Binaryify/OneDark-Pro/issues/678)

## 3.13.18 | 2022.02.05
- Unify syntax highlighting for ruby string interpolation [#685](https://github.com/Binaryify/OneDark-Pro/pull/685)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "material-theme",
"displayName": "One Dark Pro",
"description": "Atom‘s iconic One Dark theme for Visual Studio Code",
"version": "3.13.18",
"version": "3.13.19",
"publisher": "zhuangtongfa",
"license": "MIT",
"bugs": {
Expand Down
18 changes: 18 additions & 0 deletions src/themes/themeData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1931,6 +1931,24 @@ export default {
foreground: 'purple',
},
},
{
scope: ['support.other.parenthesis.regexp'],
settings: {
foreground: 'whiskey',
},
},
{
scope: ['constant.character.escape'],
settings: {
foreground: 'chalky',
},
},
{
scope: ['string.regexp'],
settings: {
foreground: 'coral',
},
},
],
bold: [
{
Expand Down
24 changes: 24 additions & 0 deletions themes/OneDark-Pro-darker.json
Original file line number Diff line number Diff line change
Expand Up @@ -1985,6 +1985,30 @@
"settings": {
"foreground": "#c678dd"
}
},
{
"scope": [
"support.other.parenthesis.regexp"
],
"settings": {
"foreground": "#d19a66"
}
},
{
"scope": [
"constant.character.escape"
],
"settings": {
"foreground": "#e5c07b"
}
},
{
"scope": [
"string.regexp"
],
"settings": {
"foreground": "#e06c75"
}
}
],
"colors": {
Expand Down
24 changes: 24 additions & 0 deletions themes/OneDark-Pro-flat.json
Original file line number Diff line number Diff line change
Expand Up @@ -1990,6 +1990,30 @@
"foreground": "#c678dd"
}
},
{
"scope": [
"support.other.parenthesis.regexp"
],
"settings": {
"foreground": "#d19a66"
}
},
{
"scope": [
"constant.character.escape"
],
"settings": {
"foreground": "#e5c07b"
}
},
{
"scope": [
"string.regexp"
],
"settings": {
"foreground": "#e06c75"
}
},
{
"name": "Markup: Heading",
"scope": "markup.heading",
Expand Down
24 changes: 24 additions & 0 deletions themes/OneDark-Pro.json
Original file line number Diff line number Diff line change
Expand Up @@ -1987,6 +1987,30 @@
"foreground": "#c678dd"
}
},
{
"scope": [
"support.other.parenthesis.regexp"
],
"settings": {
"foreground": "#d19a66"
}
},
{
"scope": [
"constant.character.escape"
],
"settings": {
"foreground": "#e5c07b"
}
},
{
"scope": [
"string.regexp"
],
"settings": {
"foreground": "#e06c75"
}
},
{
"name": "js/ts italic",
"scope": "entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super",
Expand Down

0 comments on commit 225dfb5

Please sign in to comment.