Skip to content

Commit

Permalink
chore: more fontStyle adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Oct 30, 2023
1 parent bd825d4 commit bfc3c6c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/theme/semanticTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const getSemanticTokens = (context: ThemeContext): SemanticTokens => {
"class:python": { foreground: palette.yellow },
"class.builtin:python": { foreground: palette.mauve },
"variable.typeHint:python": { foreground: palette.yellow },
"function.decorator:python": { foreground: palette.peach },

// ignore `const`s being peach in JS & TS
"variable.readonly:javascript": { foreground: palette.text },
Expand Down
8 changes: 8 additions & 0 deletions src/theme/tokens/python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const tokens = (context: ThemeContext): TextmateColors => {
],
settings: {
foreground: palette.peach,
fontStyle: "italic",
},
},
{
Expand Down Expand Up @@ -122,6 +123,13 @@ const tokens = (context: ThemeContext): TextmateColors => {
fontStyle: "italic",
},
},
{
name: "Python type hints",
scope: "meta.function.parameters.python",
settings: {
fontStyle: "",
},
},
];
};

Expand Down
10 changes: 10 additions & 0 deletions src/theme/tokens/rust.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ const tokens = (context: ThemeContext): TextmateColors => {
fontStyle: "italic",
},
},
{
name: "Rust attribute strings",
scope: [
"meta.attribute.rust string.quoted.double.rust",
"meta.attribute.rust string.quoted.single.char.rust",
],
settings: {
fontStyle: "",
},
},
{
name: "Rust keyword",
scope: [
Expand Down

0 comments on commit bfc3c6c

Please sign in to comment.