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 5ebf128 commit 8a72562
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 32 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
21 changes: 6 additions & 15 deletions src/theme/tokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,12 @@ 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.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
2 changes: 1 addition & 1 deletion src/theme/tokens/rust.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const tokens = (context: ThemeContext): TextmateColors => {
},
{
name: "Rust constants",
scope: "source.rust constant",
scope: "constnat.other.caps.rust",
settings: {
foreground: palette.peach,
fontStyle: "",
Expand Down

0 comments on commit 8a72562

Please sign in to comment.