Skip to content

Commit

Permalink
chore: token cleanup (1)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Sep 10, 2023
1 parent dc66566 commit 1112f4c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 39 deletions.
4 changes: 2 additions & 2 deletions src/theme/tokens/dotenv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const tokens = (context: ThemeContext): TextmateColors => {
return [
{
name: "dotenv left-hand side assignments",
scope: ["source.env variable.other.env"],
scope: ["variable.other.env"],
settings: {
foreground: palette.blue,
fontStyle: "",
},
},
{
name: "dotenv reference to existing env variable",
scope: ["source.env string.quoted variable.other.env"],
scope: ["string.quoted variable.other.env"],
settings: {
foreground: palette.text,
fontStyle: "",
Expand Down
22 changes: 7 additions & 15 deletions src/theme/tokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,13 @@ export default (context: ThemeContext) => {
},
},
{
scope: "constant.numeric",
settings: {
foreground: palette.peach,
fontStyle: "",
},
},
{
scope: ["variable.other.constant", "entity.name.constant"],
settings: {
foreground: palette.peach,
fontStyle: "",
},
},
{
scope: "constant.language.boolean",
scope: [
"constant",
"constant.numeric",
"variable.other.constant",
"entity.name.constant",
"constant.language.boolean",
],
settings: {
foreground: palette.peach,
fontStyle: "",
Expand Down
14 changes: 0 additions & 14 deletions src/theme/tokens/python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,6 @@ const tokens = (context: ThemeContext): TextmateColors => {
fontStyle: "",
},
},
{
name: "Python multi string",
scope: [
"source.python string.quoted.docstring.multi.python punctuation.definition.string.begin.python",
"source.python string.quoted.docstring.multi.python punctuation.definition.string.end.python",
"source.python string.quoted.multi.python punctuation.definition.string.begin.python",
"source.python string.quoted.multi.python punctuation.definition.string.end.python",
"source.python storage.type.string",
],
settings: {
foreground: palette.green,
fontStyle: "italic",
},
},
{
name: "python placeholder reset to normal string",
scope: "constant.character.format.placeholder.other.python",
Expand Down
8 changes: 0 additions & 8 deletions src/theme/tokens/rust.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,6 @@ const tokens = (context: ThemeContext): TextmateColors => {
fontStyle: "",
},
},
{
name: "Rust constants",
scope: "source.rust constant",
settings: {
foreground: palette.peach,
fontStyle: "",
},
},
];
};

Expand Down

0 comments on commit 1112f4c

Please sign in to comment.