Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme Related Fixes #3412

Merged
merged 2 commits into from
Aug 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion book/src/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ We use a similar set of scopes as
[SublimeText](https://www.sublimetext.com/docs/scope_naming.html). See also
[TextMate](https://macromates.com/manual/en/language_grammars) scopes.

- `attribute` - Class attributes, html tag attributes

- `type` - Types
- `builtin` - Primitive types provided by the language (`int`, `usize`)
- `constructor`
Expand Down Expand Up @@ -133,13 +135,13 @@ We use a similar set of scopes as
- `parameter` - Function parameters
- `other`
- `member` - Fields of composite data types (e.g. structs, unions)
- `function` (TODO: ?)

- `label`

- `punctuation`
- `delimiter` - Commas, colons
- `bracket` - Parentheses, angle brackets, etc.
- `special` - String interpolation brackets.

- `keyword`
- `control`
Expand Down
2 changes: 1 addition & 1 deletion runtime/queries/regex/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
(non_boundary_assertion)
] @constant.character.escape

(group_name) @property
(group_name) @label

(count_quantifier
[
Expand Down
2 changes: 1 addition & 1 deletion runtime/themes/autumn.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"variable" = "my_white3"
"constant.numeric" = "my_turquoise"
"constant" = "my_white3"
"attributes" = "my_turquoise"
"attribute" = "my_turquoise"
"type" = { fg = "my_white3", modifiers = ["italic"] }
"ui.cursor.match" = { fg = "my_white3", modifiers = ["underlined"] }
"string" = "my_green"
Expand Down
2 changes: 1 addition & 1 deletion runtime/themes/autumn_night.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"variable" = "my_white3"
"constant.numeric" = "my_turquoise"
"constant" = "my_white3"
"attributes" = "my_turquoise"
"attribute" = "my_turquoise"
"type" = { fg = "my_white3", modifiers = ["italic"] }
"ui.cursor.match" = { fg = "my_white3", modifiers = ["underlined"] }
"string" = "my_green"
Expand Down
2 changes: 1 addition & 1 deletion runtime/themes/base16_default_dark.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"variable" = "base08"
"constant.numeric" = "base09"
"constant" = "base09"
"attributes" = "base09"
"attribute" = "base09"
"type" = "base0A"
"ui.cursor.match" = { fg = "base0A", modifiers = ["underlined"] }
"string" = "base0B"
Expand Down
2 changes: 1 addition & 1 deletion runtime/themes/base16_default_light.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"variable" = "base08"
"constant.numeric" = "base09"
"constant" = "base09"
"attributes" = "base09"
"attribute" = "base09"
"type" = "base0A"
"ui.cursor.match" = { fg = "base0A", modifiers = ["underlined"] }
"string" = "base0B"
Expand Down
2 changes: 1 addition & 1 deletion runtime/themes/base16_terminal.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"variable" = "light-red"
"constant.numeric" = "yellow"
"constant" = "yellow"
"attributes" = "yellow"
"attribute" = "yellow"
"type" = "light-yellow"
"ui.cursor.match" = { fg = "light-yellow", modifiers = ["underlined"] }
"string" = "light-green"
Expand Down
2 changes: 1 addition & 1 deletion runtime/themes/base16_transparent.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"variable" = "light-red"
"constant.numeric" = "yellow"
"constant" = "yellow"
"attributes" = "yellow"
"attribute" = "yellow"
"type" = "light-yellow"
"string" = "light-green"
"variable.other.member" = "green"
Expand Down
2 changes: 1 addition & 1 deletion runtime/themes/doom_acario_dark.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ operator = { fg = 'blue' }
function = { fg = 'yellow' }
tag = { fg = 'cyan' }
attribute = { fg = 'blue' }
attributes = { fg = 'blue' }
attribute = { fg = 'blue' }
namespace = { fg = 'red' }

'markup.heading' = { fg = 'red' }
Expand Down
1 change: 0 additions & 1 deletion runtime/themes/flatwhite.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"label" = { modifiers = ["bold"] }
"namespace" = { fg = "teal_text", bg = "teal_bg" }
"operator" = { fg = "base1", bg = "base7" }
"property" = { fg = "blue_text", bg = "blue_bg" }
"punctuation.bracket" = { modifiers = ["bold"] }
"special" = { fg = "blue_text", bg = "blue_bg" }
"string" = { fg = "green_text", bg = "green_bg" }
Expand Down
1 change: 0 additions & 1 deletion runtime/themes/night_owl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
'function.special' = { fg = 'pink' }
'tag' = { fg = 'blue' }
'namespace' = { fg = 'peach' }
'property' = { fg = 'green' }
'special' = { fg = 'greyE' }
'module' = { fg = 'greyE' }
'attribute' = { fg = 'paleblue' }
Expand Down
1 change: 0 additions & 1 deletion runtime/themes/noctis.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
# SYNTAX HIGHLIGHTING ==============================
# All the keys here are Treesitter scopes.

'property' = { fg = "red" } # Regex group names.
'special' = { fg = "mid-blue"} # Special symbols e.g `?` in Rust, `...` in Hare.
'attribute' = { fg = "yellow" } # Class attributes, html tag attributes.

Expand Down
2 changes: 1 addition & 1 deletion runtime/themes/noctis_bordo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Author: Joseph Harrison-Lim <josephharrisonlim@gmail.com>

"attributes" = { fg = "#7060eb", modifiers = ["bold"] }
"attribute" = { fg = "#7060eb", modifiers = ["bold"] }
"comment" = { fg = "base03", modifiers = ["italic"] }
"comment.block.documentation" = { fg = "base06", modifiers = ["italic"] }
"constant" = "base09"
Expand Down
1 change: 0 additions & 1 deletion runtime/themes/onedark.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"namespace" = { fg = "blue" }
"operator" = { fg = "purple" }
"keyword.operator" = { fg = "purple" }
"property" = { fg = "red" }
"special" = { fg = "blue" }
"string" = { fg = "green" }
"type" = { fg = "yellow" }
Expand Down
1 change: 0 additions & 1 deletion runtime/themes/onelight.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"label" = { fg = "cyan" }
"namespace" = { fg = "red" }
"operator" = { fg = "red" }
"property" = { fg = "red" }
"special" = { fg = "purple" }
"string" = { fg = "green" }
"module" = { fg = "cyan" }
Expand Down
3 changes: 1 addition & 2 deletions runtime/themes/pop-dark.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ label = { fg = 'greenS' }
module = { bg = 'orangeL' }
special = { fg = 'orangeW' }
operator = { fg = 'orangeY' }
property = { bg = 'blueH' }
attribute = { fg = 'orangeL' }
attributes = { fg = 'orangeL' }
attribute = { fg = 'orangeL' }
namespace = { fg = 'orangeL' }
'type' = { fg = 'redH' }
'type.builtin' = { fg = 'orangeL' }
Expand Down
5 changes: 2 additions & 3 deletions runtime/themes/rose_pine.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@
"variable" = "text"
"constant.numeric" = "iris"
"constant" = "gold"
"attributes" = "gold"
"attribute" = "gold"
"type" = "foam"
"ui.cursor.match" = { fg = "gold", modifiers = ["underlined"] }
"string" = "gold"
"property" = "foam"
"constant.character.escape" = "subtle"
"function" = "rose"
"function.builtin" = "rose"
Expand All @@ -40,7 +39,7 @@
"ui.popup.info" = { bg = "surface" }
"ui.window" = { bg = "base" }
"ui.help" = { bg = "overlay", fg = "foam" }
"text" = "text"
"ui.text" = "text"
"diff.plus" = "foam"
"diff.delta" = "rose"
"diff.minus" = "love"
Expand Down
5 changes: 2 additions & 3 deletions runtime/themes/rose_pine_dawn.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
"variable" = "text"
"number" = "iris"
"constant" = "gold"
"attributes" = "gold"
"attribute" = "gold"
"type" = "foam"
"ui.cursor.match" = { fg = "gold", modifiers = ["underlined"] }
"string" = "gold"
"property" = "foam"
"escape" = "subtle"
"function" = "rose"
"function.builtin" = "rose"
Expand All @@ -37,7 +36,7 @@
"ui.popup.info" = { bg = "surface" }
"ui.window" = { bg = "base" }
"ui.help" = { bg = "overlay", fg = "foam" }
"text" = "text"
"ui.text" = "text"
"diff.plus" = "foam"
"diff.delta" = "rose"
"diff.minus" = "love"
Expand Down
5 changes: 2 additions & 3 deletions runtime/themes/rose_pine_moon.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@
"variable" = "text"
"constant.numeric" = "iris"
"constant" = "gold"
"attributes" = "gold"
"attribute" = "gold"
"type" = "foam"
"ui.cursor.match" = { fg = "gold", modifiers = ["underlined"] }
"string" = "gold"
"property" = "foam"
"constant.character.escape" = "subtle"
"function" = "rose"
"function.builtin" = "rose"
Expand All @@ -43,7 +42,7 @@
"ui.popup.info" = { bg = "surface" }
"ui.window" = { bg = "base" }
"ui.help" = { bg = "overlay", fg = "foam" }
"text" = "text"
"ui.text" = "text"
"diff.plus" = "foam"
"diff.delta" = "rose"
"diff.minus" = "love"
Expand Down
1 change: 0 additions & 1 deletion runtime/themes/serika-dark.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"attribute" = "aqua"
"constructor" = "yellow"
"module" = "blue"
"property" = "yellow"
"special" = "orange"

"ui.background" = { bg = "bg0" }
Expand Down
1 change: 0 additions & 1 deletion runtime/themes/serika-light.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"attribute" = "aqua"
"constructor" = "yellow"
"module" = "blue"
"property" = "yellow"
"special" = "orange"

"ui.background" = { bg = "bg0" }
Expand Down
2 changes: 1 addition & 1 deletion runtime/themes/snazzy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"operator" = { fg = "magenta" }
"punctuation" = { fg = "foreground" }
"string" = { fg = "yellow" }
"path" = { fg = "blue" }
"string.special.path" = { fg = "blue" }
"string.regexp" = { fg = "red" }
"tag" = { fg = "magenta" }
"type" = { fg = "cyan", modifiers = ["italic"] }
Expand Down
1 change: 0 additions & 1 deletion runtime/themes/spacebones_light.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"punctuation.delimiter" = "#6c3163"
"operator" = "#ba2f59"
"special" = "#ba2f59"
"property" = "#7590db"
"variable.property" = "#7590db"
"variable" = "#715ab1"
"variable.builtin" = "#715ab1"
Expand Down