Skip to content

Commit

Permalink
Add go keywords and change rust mutable tokens to italic from underline
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHZhang committed Mar 18, 2024
1 parent 3610d60 commit 8208226
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
16 changes: 12 additions & 4 deletions src/theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,13 @@ const theme: ColorTheme = {
italic: true,
},
'variable.mutable': {
underline: true,
italic: true,
},
'selfKeyword.mutable': {
underline: true,
italic: true,
},
'parameter.mutable': {
underline: true,
italic: true,
},
},
tokenColors: [
Expand All @@ -348,15 +348,22 @@ const theme: ColorTheme = {
specificity('source', 'keyword.control'),
specificity('source', 'keyword.other'),
specificity('source', 'keyword.other.unit'),
'keyword.const', // Go keyword
'keyword.declaration',
'keyword.function', // Go keyword
'keyword.interface', // Go keyword
'keyword.local.lua', // Lua keyword
'keyword.operator.address', // Go pointer
'keyword.operator.arrow',
'keyword.operator.expression',
'keyword.operator.lua',
'keyword.operator.new',
'keyword.package', // Go keyword
'keyword.preprocessor',
'keyword.operator.word.hcl', // Terraform keyword
'keyword.struct', // Go keyword
'keyword.type', // `void` in C#
'keyword.var', // Go keyword
'storage.type', // `mod` in rust
'support.type.object.module',
'variable.language.self',
Expand Down Expand Up @@ -466,6 +473,7 @@ const theme: ColorTheme = {
scope: [
specificity('meta.table', 'support.type.property-name.table'),
specificity('source.python', 'variable.parameter.function-call.python'), // TODO: broken Kwargs (python)
specificity('source.go', 'variable.other.property.go'),
'constant.other.option', // --opt (shell)
'entity.name.variable.field', // class field (C#)
'entity.other.attribute-name',
Expand All @@ -478,9 +486,9 @@ const theme: ColorTheme = {
'variable.key',
'variable.object.property',
'variable.other.enummember',
'variable.other.property',
'variable.other.constant.property',
'variable.other.object.property',
'variable.other.property',
'variable.parameter.key.prisma',
],
settings: {
Expand Down
16 changes: 12 additions & 4 deletions themes/fullmetal-color-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,13 @@
"italic": true
},
"variable.mutable": {
"underline": true
"italic": true
},
"selfKeyword.mutable": {
"underline": true
"italic": true
},
"parameter.mutable": {
"underline": true
"italic": true
}
},
"tokenColors": [
Expand All @@ -244,15 +244,22 @@
"source keyword.control",
"source keyword.other",
"source keyword.other.unit",
"keyword.const",
"keyword.declaration",
"keyword.function",
"keyword.interface",
"keyword.local.lua",
"keyword.operator.address",
"keyword.operator.arrow",
"keyword.operator.expression",
"keyword.operator.lua",
"keyword.operator.new",
"keyword.package",
"keyword.preprocessor",
"keyword.operator.word.hcl",
"keyword.struct",
"keyword.type",
"keyword.var",
"storage.type",
"support.type.object.module",
"variable.language.self",
Expand Down Expand Up @@ -366,6 +373,7 @@
"scope": [
"meta.table support.type.property-name.table",
"source.python variable.parameter.function-call.python",
"source.go variable.other.property.go",
"constant.other.option",
"entity.name.variable.field",
"entity.other.attribute-name",
Expand All @@ -378,9 +386,9 @@
"variable.key",
"variable.object.property",
"variable.other.enummember",
"variable.other.property",
"variable.other.constant.property",
"variable.other.object.property",
"variable.other.property",
"variable.parameter.key.prisma"
],
"settings": {
Expand Down

0 comments on commit 8208226

Please sign in to comment.