on master help sign in
Add theme keys for (un)checked markup list items (#6434)
commit851ac6cdd3c5a865d43968ea81d98b5b7c859728 authorErasin Wang <erasinoo@gmail.com> dateSun 26 Mar 2023, 00:41 (4 years ago) parent2f64c76
3 files changed+8−1
book/src/themes.md+2 runtime/queries/markdown/highlights.scm+3 runtime/themes/onelight.toml+3−1
book/src/themes.md+2
@@ -228,6 +228,8 @@ We use a similar set of scopes as
228228 - `list`
229229 - `unnumbered`
230230 - `numbered`
231+ - `checked`
232+ - `unchecked`
231233 - `bold`
232234 - `italic`
233235 - `strikethrough`
runtime/queries/markdown/highlights.scm+3
@@ -39,6 +39,9 @@
3939 (list_marker_parenthesis)
4040] @markup.list.numbered
4141
42+(task_list_marker_checked) @markup.list.checked
43+(task_list_marker_unchecked) @markup.list.unchecked
44+
4245(thematic_break) @punctuation.special
4346
4447[
runtime/themes/onelight.toml+3−1
@@ -80,9 +80,11 @@
8080"markup.list" = { fg = "light-blue" }
8181"markup.list.unnumbered" = { fg = "light-blue" }
8282"markup.list.numbered" = { fg = "light-blue" }
83+"markup.list.checked" = { fg = "green" }
84+"markup.list.unchecked" = { fg = "blue" }
8385"markup.bold" = { fg = "yellow", modifiers = ["bold"] }
8486"markup.italic" = { fg = "purple", modifiers = ["italic"] }
85−"markup.strikethrough" = { modifiers = ["crossed_out"] }
87+"markup.strikethrough" = { fg = "red", modifiers = ["crossed_out"] }
8688"markup.link" = { fg = "light-blue" }
8789"markup.link.url" = { fg = "cyan", modifiers = ["underlined"] }
8890"markup.link.text" = { fg = "light-blue" }