on master help sign in
Add theme keys for (un)checked markup list items (#6434)
851ac6cErasin Wang
book/src/themes.md+2
@@ -228,6 +228,8 @@ We use a similar set of scopes as
228 - `list`
228 - `list`
229 - `unnumbered`
229 - `unnumbered`
230 - `numbered`
230 - `numbered`
231+ - `checked`
232+ - `unchecked`
231 - `bold`
233 - `bold`
232 - `italic`
234 - `italic`
233 - `strikethrough`
235 - `strikethrough`
runtime/queries/markdown/highlights.scm+3
@@ -39,6 +39,9 @@
39 (list_marker_parenthesis)
39 (list_marker_parenthesis)
40] @markup.list.numbered
40] @markup.list.numbered
41
41
42+(task_list_marker_checked) @markup.list.checked
43+(task_list_marker_unchecked) @markup.list.unchecked
44+
42(thematic_break) @punctuation.special
45(thematic_break) @punctuation.special
43
46
44[
47[
runtime/themes/onelight.toml+3−1
@@ -80,9 +80,11 @@
80"markup.list" = { fg = "light-blue" }
80"markup.list" = { fg = "light-blue" }
81"markup.list.unnumbered" = { fg = "light-blue" }
81"markup.list.unnumbered" = { fg = "light-blue" }
82"markup.list.numbered" = { fg = "light-blue" }
82"markup.list.numbered" = { fg = "light-blue" }
83+"markup.list.checked" = { fg = "green" }
84+"markup.list.unchecked" = { fg = "blue" }
83"markup.bold" = { fg = "yellow", modifiers = ["bold"] }
85"markup.bold" = { fg = "yellow", modifiers = ["bold"] }
84"markup.italic" = { fg = "purple", modifiers = ["italic"] }
86"markup.italic" = { fg = "purple", modifiers = ["italic"] }
85−"markup.strikethrough" = { modifiers = ["crossed_out"] }
87+"markup.strikethrough" = { fg = "red", modifiers = ["crossed_out"] }
86"markup.link" = { fg = "light-blue" }
88"markup.link" = { fg = "light-blue" }
87"markup.link.url" = { fg = "cyan", modifiers = ["underlined"] }
89"markup.link.url" = { fg = "cyan", modifiers = ["underlined"] }
88"markup.link.text" = { fg = "light-blue" }
90"markup.link.text" = { fg = "light-blue" }