Unnamed repository; edit this file 'description' to name the repository.
themes, grammars: uniformize on `comment.{line,block}.documentation` (#16060)
I tried both `comment.documentation._` and `comment._.documentation`,
the latter was already used more so I went with it.
| -rw-r--r-- | runtime/queries/haskell/highlights.scm | 2 | ||||
| -rw-r--r-- | runtime/queries/nix/highlights.scm | 2 | ||||
| -rw-r--r-- | runtime/queries/nu/highlights.scm | 4 | ||||
| -rw-r--r-- | runtime/themes/atlas-ragnarok.toml | 1 | ||||
| -rw-r--r-- | runtime/themes/doom-one.toml | 3 | ||||
| -rw-r--r-- | runtime/themes/eldritch.toml | 1 | ||||
| -rw-r--r-- | runtime/themes/flatwhite.toml | 1 | ||||
| -rw-r--r-- | runtime/themes/lapis_aquamarine.toml | 3 | ||||
| -rw-r--r-- | runtime/themes/nvchad_solarized_dark.toml | 3 | ||||
| -rw-r--r-- | runtime/themes/vim_dark_high_contrast.toml | 3 |
10 files changed, 15 insertions, 8 deletions
diff --git a/runtime/queries/haskell/highlights.scm b/runtime/queries/haskell/highlights.scm index 977537649..7ca65f3d9 100644 --- a/runtime/queries/haskell/highlights.scm +++ b/runtime/queries/haskell/highlights.scm @@ -35,7 +35,7 @@ (comment) @comment -((haddock) @comment.documentation) +((haddock) @comment.line.documentation) ; ---------------------------------------------------------------------------- ; Punctuation diff --git a/runtime/queries/nix/highlights.scm b/runtime/queries/nix/highlights.scm index 66d806455..8705c6342 100644 --- a/runtime/queries/nix/highlights.scm +++ b/runtime/queries/nix/highlights.scm @@ -12,7 +12,7 @@ ; Comments ------------------------------------------------------------ (comment) @comment -(doc_comment) @comment.documentation +(doc_comment) @comment.line.documentation ; Keywords ------------------------------------------------------------ diff --git a/runtime/queries/nu/highlights.scm b/runtime/queries/nu/highlights.scm index 27583f2fe..ff39a814a 100644 --- a/runtime/queries/nu/highlights.scm +++ b/runtime/queries/nu/highlights.scm @@ -372,12 +372,12 @@ key: (identifier) @property [(comment) (shebang)] @comment -((comment)+ @comment.documentation +((comment)+ @comment.line.documentation . (decl_def)) (parameter - (comment) @comment.documentation) + (comment) @comment.line.documentation) (command head: ((cmd_identifier) @function.builtin diff --git a/runtime/themes/atlas-ragnarok.toml b/runtime/themes/atlas-ragnarok.toml index 48baa848d..9b014327d 100644 --- a/runtime/themes/atlas-ragnarok.toml +++ b/runtime/themes/atlas-ragnarok.toml @@ -11,6 +11,7 @@ "attribute" = "thunder_bright" "comment" = { fg = "fg_subtle", modifiers = ["italic"] } "comment.line" = { fg = "fg_subtle", modifiers = ["italic"] } +"comment.line.documentation" = { fg = "fg_muted", modifiers = ["italic"] } "comment.block" = { fg = "fg_subtle", modifiers = ["italic"] } "comment.block.documentation" = { fg = "fg_muted", modifiers = ["italic"] } "constant" = "thunder_bright" diff --git a/runtime/themes/doom-one.toml b/runtime/themes/doom-one.toml index 60dbd8747..bafbf9a1b 100644 --- a/runtime/themes/doom-one.toml +++ b/runtime/themes/doom-one.toml @@ -33,7 +33,8 @@ "comment" = { fg = "grey" } "comment.line" = { fg = "grey" } "comment.block" = { fg = "grey" } -"comment.documentation" = { fg = "blue" } +"comment.line.documentation" = { fg = "blue" } +"comment.block.documentation" = { fg = "blue" } "keyword" = "blue" "keyword.control" = "blue" diff --git a/runtime/themes/eldritch.toml b/runtime/themes/eldritch.toml index 7ed590b00..feb1e78f0 100644 --- a/runtime/themes/eldritch.toml +++ b/runtime/themes/eldritch.toml @@ -7,6 +7,7 @@ "comment" = { fg = "comment" } "comment.block.documentation" = { fg = "comment" } "comment.block" = { fg = "comment" } +"comment.line.documentation" = { fg = "comment" } "comment.line" = { fg = "comment" } "constant" = { fg = "purple" } "constant.numeric" = { fg = "purple" } diff --git a/runtime/themes/flatwhite.toml b/runtime/themes/flatwhite.toml index f58ee21ca..0eb28e3df 100644 --- a/runtime/themes/flatwhite.toml +++ b/runtime/themes/flatwhite.toml @@ -4,6 +4,7 @@ "attribute" = { fg = "blue_text", bg = "blue_bg" } "comment" = { fg = "base2", bg = "base6" } "comment.line" = { fg = "base2", bg = "base6" } +"comment.line.documentation" = { fg = "base2", bg = "base6" } "comment.block" = { fg = "base2", bg = "base6" } "comment.block.documentation" = { fg = "base2", bg = "base6" } "constant" = { fg = "blue_text", bg = "blue_bg" } diff --git a/runtime/themes/lapis_aquamarine.toml b/runtime/themes/lapis_aquamarine.toml index 45de8821a..c13e81d34 100644 --- a/runtime/themes/lapis_aquamarine.toml +++ b/runtime/themes/lapis_aquamarine.toml @@ -31,7 +31,8 @@ "comment" = { fg = "grey", modifiers = ["italic"] } "comment.line" = { fg = "grey", modifiers = ["italic"] } "comment.block" = { fg = "grey", modifiers = ["italic"] } -"comment.documentation" = { fg = "blue", modifiers = ["italic"] } +"comment.line.documentation" = { fg = "blue", modifiers = ["italic"] } +"comment.block.documentation" = { fg = "blue", modifiers = ["italic"] } "keyword" = "blue" "keyword.storage" = "blue" # let keyword in rust diff --git a/runtime/themes/nvchad_solarized_dark.toml b/runtime/themes/nvchad_solarized_dark.toml index 91ab18fe7..7e20b2b39 100644 --- a/runtime/themes/nvchad_solarized_dark.toml +++ b/runtime/themes/nvchad_solarized_dark.toml @@ -47,7 +47,8 @@ "function.call" = { fg = "blue" } "comment" = { fg = "base01" } -"comment.documentation" = { fg = "base01" } +"comment.line.documentation" = { fg = "base01" } +"comment.block.documentation" = { fg = "base01" } "string" = { fg = "green" } "string.regexp" = { fg = "cyan" } diff --git a/runtime/themes/vim_dark_high_contrast.toml b/runtime/themes/vim_dark_high_contrast.toml index 4b39a770a..bac216315 100644 --- a/runtime/themes/vim_dark_high_contrast.toml +++ b/runtime/themes/vim_dark_high_contrast.toml @@ -39,7 +39,8 @@ "constant.character.escape" = "magenta" "string" = "red" "comment" = "light-black" -"comment.documentation" = "magenta" +"comment.line.documentation" = "magenta" +"comment.block.documentation" = "magenta" "label" = "green" "keyword" = "yellow" "keyword.directive" = "magenta" |