From 091f19f67c36b764ec3f27bf4d44192816586a71 Mon Sep 17 00:00:00 2001 From: Caleb Larsen Date: Fri, 6 Jun 2025 11:57:46 -0500 Subject: [PATCH] chore: updated themes using 'comment.block.documentation' to also use 'comment.line.documentation' --- book/src/themes.md | 3 ++- runtime/themes/ashen.toml | 1 + runtime/themes/ataraxia.toml | 1 + runtime/themes/carbon.toml | 1 + runtime/themes/doom_acario_dark.toml | 1 + runtime/themes/dracula.toml | 1 + runtime/themes/eiffel.toml | 1 + runtime/themes/flatwhite.toml | 1 + runtime/themes/hex_steel.toml | 1 + runtime/themes/jetbrains_dark.toml | 1 + runtime/themes/molokai.toml | 1 + runtime/themes/night_owl.toml | 1 + runtime/themes/nightfox.toml | 3 ++- runtime/themes/noctis.toml | 3 ++- runtime/themes/noctis_bordo.toml | 1 + runtime/themes/onelight.toml | 1 + runtime/themes/papercolor-light.toml | 1 + runtime/themes/peachpuff.toml | 1 + runtime/themes/pop-dark.toml | 1 + runtime/themes/rose_pine.toml | 1 + runtime/themes/sunset.toml | 1 + runtime/themes/tokyonight.toml | 1 + runtime/themes/zenburn.toml | 3 ++- 23 files changed, 27 insertions(+), 4 deletions(-) diff --git a/book/src/themes.md b/book/src/themes.md index dc377db17..46d0a2d3c 100644 --- a/book/src/themes.md +++ b/book/src/themes.md @@ -171,8 +171,9 @@ We use a similar set of scopes as - `comment` - Code comments - `line` - Single line comments (`//`) + - `documentation` - Line documentation comments (e.g. `///` in Rust) - `block` - Block comments (e.g. (`/* */`) - - `documentation` - Documentation comments (e.g. `///` in Rust) + - `documentation` - Block documentation comments (e.g. `/** */` in Rust) - `variable` - Variables - `builtin` - Reserved language variables (`self`, `this`, `super`, etc.) diff --git a/runtime/themes/ashen.toml b/runtime/themes/ashen.toml index d31e6974e..2078c39bc 100644 --- a/runtime/themes/ashen.toml +++ b/runtime/themes/ashen.toml @@ -35,6 +35,7 @@ "comment" = { fg = "g_6", modifiers = ["italic"] } "comment.block.documentation" = { fg = "g_5", modifiers = ["italic"] } +"comment.line.documentation" = { fg = "g_5", modifiers = ["italic"] } "variable" = "g_3" "variable.parameter" = { fg = "g_2", modifiers = ["italic"] } diff --git a/runtime/themes/ataraxia.toml b/runtime/themes/ataraxia.toml index 6aad8f3f3..2b0e58707 100644 --- a/runtime/themes/ataraxia.toml +++ b/runtime/themes/ataraxia.toml @@ -56,6 +56,7 @@ diagnostic = "cool-sky" "comment" = "purple-gray" "comment.line" = "purple-gray" +"comment.line.documentation" = "purple-gray" "comment.block" = "dead-green" "comment.block.documentation" = "dead-green" diff --git a/runtime/themes/carbon.toml b/runtime/themes/carbon.toml index af06aa644..1105a1a56 100644 --- a/runtime/themes/carbon.toml +++ b/runtime/themes/carbon.toml @@ -22,6 +22,7 @@ "comment" = { fg = "gray40", modifiers = ["italic"] } "comment.block.documentation" = { fg = "gray40", modifiers = ["italic"] } +"comment.line.documentation" = { fg = "gray40", modifiers = ["italic"] } "variable" = "gray70" "variable.builtin" = { fg = "cyan30", modifiers = ["bold"] } diff --git a/runtime/themes/doom_acario_dark.toml b/runtime/themes/doom_acario_dark.toml index 5c4bd0dd8..98265bb76 100644 --- a/runtime/themes/doom_acario_dark.toml +++ b/runtime/themes/doom_acario_dark.toml @@ -9,6 +9,7 @@ 'comment' = { fg = 'gray', modifiers = ['italic'] } 'comment.block' = { fg = 'green', modifiers = ['italic'] } 'comment.block.documentation' = { fg = 'green', modifiers = ['italic'] } +'comment.line.documentation' = { fg = 'green', modifiers = ['italic'] } 'constant' = { fg = 'magenta' } 'constant.numeric' = { fg = 'orange' } 'constructor' = { fg = 'red' } diff --git a/runtime/themes/dracula.toml b/runtime/themes/dracula.toml index bb4a38d5e..8b4abe16c 100644 --- a/runtime/themes/dracula.toml +++ b/runtime/themes/dracula.toml @@ -9,6 +9,7 @@ "comment.block" = { fg = "comment" } "comment.block.documentation" = { fg = "comment" } "comment.line" = { fg = "comment" } +"comment.line.documentation" = { fg = "comment" } "constant" = { fg = "purple" } "constant.builtin" = { fg = "purple" } diff --git a/runtime/themes/eiffel.toml b/runtime/themes/eiffel.toml index ba0f5c60d..846b0b07c 100644 --- a/runtime/themes/eiffel.toml +++ b/runtime/themes/eiffel.toml @@ -6,6 +6,7 @@ "comment.block" = "comments" "comment.block.documentation" = "comments" "comment.line" = "comments" +"comment.line.documentation" = "comments" #"constant" = "" "constant.builtin" = { fg = "builtins", modifiers = ["italic"] } "constant.character" = "strings" diff --git a/runtime/themes/flatwhite.toml b/runtime/themes/flatwhite.toml index 1da203502..6864fb10d 100644 --- a/runtime/themes/flatwhite.toml +++ b/runtime/themes/flatwhite.toml @@ -4,6 +4,7 @@ "attribute" = { fg = "blue_text", bg = "blue_bg" } "comment" = { fg = "base3", modifiers = ["italic"] } "comment.line" = {} +"comment.line.documentation" = { fg = "base2" } "comment.block" = {} "comment.block.documentation" = { fg = "base2" } "constant" = { fg = "blue_text", bg = "blue_bg" } diff --git a/runtime/themes/hex_steel.toml b/runtime/themes/hex_steel.toml index d133cf7f3..4270d24a7 100644 --- a/runtime/themes/hex_steel.toml +++ b/runtime/themes/hex_steel.toml @@ -2,6 +2,7 @@ "comment" = { fg = "comment" } "comment.block.documentation" = { bg = "comment_doc", modifiers = ["italic"] } +"comment.line.documentation" = { bg = "comment_doc", modifiers = ["italic"] } "constant" = { fg = "t11" } "function" = { fg = "t10" } diff --git a/runtime/themes/jetbrains_dark.toml b/runtime/themes/jetbrains_dark.toml index c73fe93af..a9da0de0f 100644 --- a/runtime/themes/jetbrains_dark.toml +++ b/runtime/themes/jetbrains_dark.toml @@ -5,6 +5,7 @@ string = "green171" comment = "blue133" "comment.block.documentation" = "green130" +"comment.line.documentation" = "green130" "variable.builtin" = "red207" "variable.other.member" = "red199" label = "red199" diff --git a/runtime/themes/molokai.toml b/runtime/themes/molokai.toml index 2d5c9455e..bfca3677f 100644 --- a/runtime/themes/molokai.toml +++ b/runtime/themes/molokai.toml @@ -4,6 +4,7 @@ inherits = "monokai" "comment" = "comment" "comment.block.documentation" = { fg = "comment", modifiers = ["bold"] } +"comment.line.documentation" = { fg = "comment", modifiers = ["bold"] } "constant.character.escape" = { fg = "light-blue", modifiers = ["italic"] } "function.macro" = { fg = "#c4be89", modifiers = ["italic"] } "keyword" = { fg = "keyword", modifiers = ["bold"] } diff --git a/runtime/themes/night_owl.toml b/runtime/themes/night_owl.toml index ed3c02891..ac90653b5 100644 --- a/runtime/themes/night_owl.toml +++ b/runtime/themes/night_owl.toml @@ -51,6 +51,7 @@ 'string.special.url' = { fg = 'gold', modifiers = ['underlined'] } 'comment' = { fg = 'slate', modifiers = ['italic'] } 'comment.block.documentation' = { fg = 'slate' } +'comment.line.documentation' = { fg = 'slate' } 'variable' = { fg = 'green' } 'variable.builtin' = { fg = 'green', modifiers = ['italic'] } 'label' = { fg = 'foreground' } diff --git a/runtime/themes/nightfox.toml b/runtime/themes/nightfox.toml index 7d05a9b29..b10f88bbe 100644 --- a/runtime/themes/nightfox.toml +++ b/runtime/themes/nightfox.toml @@ -106,7 +106,8 @@ "string.special.url" = { fg = "cyan", modifiers = ["bold"] } # String containing a web URL. "comment" = { fg = "comment" } # This is a comment. -"comment.block.documentation" = { fg = "comment", modifiers = ["bold"] } # Doc comments, e.g '///' in rust. +"comment.block.documentation" = { fg = "comment", modifiers = ["bold"] } # Block doc comments, e.g '/** */' in rust. +"comment.line.documentation" = { fg = "comment", modifiers = ["bold"] } # Line doc comments, e.g '///' in rust. "variable" = { fg = "white" } # Variable names. "variable.builtin" = { fg = "red" } # Language reserved variables: `this`, `self`, `super`, etc. diff --git a/runtime/themes/noctis.toml b/runtime/themes/noctis.toml index 678658aaa..67fc6e8b8 100644 --- a/runtime/themes/noctis.toml +++ b/runtime/themes/noctis.toml @@ -100,8 +100,9 @@ 'comment' = { fg = "gray", modifiers = ["italic"] } # This is a comment. 'comment.line' = { } # Line comments, like this. +'comment.line.documentation' = { } # Doc comments, e.g '///' in rust. 'comment.block' = { } # Block comments, like /* this */ in some languages. -'comment.block.documentation' = { } # Doc comments, e.g '///' in rust. +'comment.block.documentation' = { } # Doc comments, e.g '/** */' in rust. 'variable' = { fg = "light-orange" } # Variable names. # 'variable.builtin' = { } # Language reserved variables: `this`, `self`, `super`, etc. diff --git a/runtime/themes/noctis_bordo.toml b/runtime/themes/noctis_bordo.toml index c5e04f2a1..fc8e1560c 100644 --- a/runtime/themes/noctis_bordo.toml +++ b/runtime/themes/noctis_bordo.toml @@ -2,6 +2,7 @@ "attribute" = { fg = "#7060eb", modifiers = ["bold"] } "comment" = { fg = "base03", modifiers = ["italic"] } +"comment.line.documentation" = { fg = "base06", modifiers = ["italic"] } "comment.block.documentation" = { fg = "base06", modifiers = ["italic"] } "constant" = "base09" "constant.character.escape" = "base0C" diff --git a/runtime/themes/onelight.toml b/runtime/themes/onelight.toml index 0f6961b33..9fc8ef650 100644 --- a/runtime/themes/onelight.toml +++ b/runtime/themes/onelight.toml @@ -33,6 +33,7 @@ "comment" = { fg = "grey", modifiers = ["italic"] } "comment.line" = { fg = "grey", modifiers = ["italic"] } +"comment.line.documentation" = { fg = "grey", modifiers = ["italic"] } "comment.block" = { fg = "grey", modifiers = ["italic"] } "comment.block.documentation" = { fg = "grey", modifiers = ["italic"] } diff --git a/runtime/themes/papercolor-light.toml b/runtime/themes/papercolor-light.toml index 4f53c9e06..cee8b1599 100644 --- a/runtime/themes/papercolor-light.toml +++ b/runtime/themes/papercolor-light.toml @@ -76,6 +76,7 @@ "comment" = { fg = "regular5", modifiers = ["italic"] } "comment.line" = { fg = "regular5", modifiers = ["italic"] } +"comment.line.documentation" = { fg = "regular5", modifiers = ["bold"] } "comment.block" = { fg = "regular5", modifiers = ["italic"] } "comment.block.documentation" = { fg = "regular5", modifiers = ["bold"] } diff --git a/runtime/themes/peachpuff.toml b/runtime/themes/peachpuff.toml index c38aee181..06f62da83 100644 --- a/runtime/themes/peachpuff.toml +++ b/runtime/themes/peachpuff.toml @@ -11,6 +11,7 @@ "ui.text.focus" = { fg = "black", bg = "white" } "comment" = "light-green" "comment.line" = "light-green" +"comment.line.documentation" = "light-green" "comment.block" = "red" "comment.block.documentation" = "red" "ui.statusline" = { fg = "black", bg = "light-cyan" } diff --git a/runtime/themes/pop-dark.toml b/runtime/themes/pop-dark.toml index 66436c153..2704afd08 100644 --- a/runtime/themes/pop-dark.toml +++ b/runtime/themes/pop-dark.toml @@ -71,6 +71,7 @@ namespace = { fg = 'orangeL' } 'string.special.symbol' = { fg = 'orangeW' } 'comment' = { fg = 'greyC', modifiers = ['italic'] } 'comment.line' = { fg = 'greyC', modifiers = ['italic'] } +'comment.line.documentation' = { fg = 'greyC', modifiers = ['italic'] } 'comment.block' = { fg = 'greyC', modifiers = ['italic'] } 'comment.block.documentation' = { fg = 'greyC', modifiers = ['italic'] } 'variable' = { fg = 'greyT' } diff --git a/runtime/themes/rose_pine.toml b/runtime/themes/rose_pine.toml index ae88bdc54..49296705c 100644 --- a/runtime/themes/rose_pine.toml +++ b/runtime/themes/rose_pine.toml @@ -94,6 +94,7 @@ "comment" = { fg = "muted", modifiers = ["italic"] } # "comment.line" = "" +# "comment.line.documentation" = "" # "comment.block" = "" # "comment.block.documentation" = "" diff --git a/runtime/themes/sunset.toml b/runtime/themes/sunset.toml index d417bb402..0fe04597d 100644 --- a/runtime/themes/sunset.toml +++ b/runtime/themes/sunset.toml @@ -23,6 +23,7 @@ string = "grass" comment = { fg = "cmnt", modifiers = ["italic"] } "comment.block.documentation" = "grass" +"comment.line.documentation" = "grass" variable = "text" "variable.builtin" = { fg = "sky", modifiers = ["italic"] } diff --git a/runtime/themes/tokyonight.toml b/runtime/themes/tokyonight.toml index e95b11785..2d41764c5 100644 --- a/runtime/themes/tokyonight.toml +++ b/runtime/themes/tokyonight.toml @@ -3,6 +3,7 @@ attribute = { fg = "cyan" } comment = { fg = "comment", modifiers = ["italic"] } "comment.block.documentation" = { fg = "yellow" } +"comment.line.documentation" = { fg = "yellow" } constant = { fg = "orange" } "constant.builtin" = { fg = "aqua" } "constant.character" = { fg = "light-green" } diff --git a/runtime/themes/zenburn.toml b/runtime/themes/zenburn.toml index 27f941220..74ef78ed8 100644 --- a/runtime/themes/zenburn.toml +++ b/runtime/themes/zenburn.toml @@ -11,6 +11,7 @@ "comment" = { fg = "comment" } "ui.virtual.inlay-hint" = { fg = "#9f9f9f" } "comment.block.documentation" = { fg = "black", modifiers = ["bold"] } +"comment.line.documentation" = { fg = "black", modifiers = ["bold"] } "ui.statusline" = { bg = "statusbg", fg = "#ccdc90" } "ui.statusline.inactive" = { fg = '#2e3330', bg = '#88b090' } "ui.cursor" = { fg = "#000d18", bg = "#8faf9f", modifiers = ["bold"] } @@ -62,4 +63,4 @@ todo = "#dfdfdf" errorfg = "#e37170" errorbg = "#3d3535" statusbg = "#313633" -numeric = "#8cd0d3" \ No newline at end of file +numeric = "#8cd0d3"