on master help sign in
VSCode Dark+ Theme (#414)

* wip * Add VSCode Dark+ Theme wip wip wip wip wip wip properly detect constants add bool wip * suggestion * add variant for c/c++ * fix hexcode error * removed regex highlight * fixed constant higlighting * wip * add space * add suggestions * update theme * update book * suggestions * fix c/c++ enum * update book

commitc7aa7bf4baf8e0ac4eca3ebdca065ab2a7bea95c authorKirawi <67773714+kirawi@users.noreply.github.com> dateWed 7 Jul 2021, 20:51 (5 years ago) parent1c71fce
4 files changed+84−1
book/src/themes.md+1 runtime/queries/c/highlights.scm+2 runtime/queries/rust/highlights.scm+2−1 runtime/themes/dark_plus.toml+79
book/src/themes.md+1
@@ -61,6 +61,7 @@ Possible keys:
6161| `variable.parameter` | |
6262| `type` | |
6363| `type.builtin` | |
64+| `type.enum.variant` | Enum variants |
6465| `constructor` | |
6566| `function` | |
6667| `function.macro` | |
runtime/queries/c/highlights.scm+2
@@ -54,6 +54,8 @@
5454"." @punctuation.delimiter
5555";" @punctuation.delimiter
5656
57+(enumerator) @type.enum.variant
58+
5759(string_literal) @string
5860(system_lib_string) @string
5961
runtime/queries/rust/highlights.scm+2−1
@@ -3,9 +3,10 @@
33
44; Assume all-caps names are constants
55((identifier) @constant
6− (#match? @constant "^[A-Z][A-Z\\d_]+$'"))
6+ (#match? @constant "^[A-Z][A-Z\\d_]+$"))
77
88; Assume other uppercase names are enum constructors
9+(enum_variant) @type.enum.variant
910((identifier) @constructor
1011 (#match? @constructor "^[A-Z]"))
1112
runtime/themes/dark_plus.tomlnew file+79
@@ -0,0 +1,79 @@
1+# Author: Shafkath Shuhan <shafkathshuhannyc@gmail.com>
2+
3+"namespace" = { fg = "type" }
4+"module" = { fg = "type" }
5+"type" = { fg = "type" }
6+"type.builtin" = { fg = "type" }
7+
8+"keyword" = { fg = "keyword" }
9+"keyword.directive" = { fg = "keyword" }
10+"function.macro" = { fg = "keyword" }
11+"variable.builtin" = { fg = "keyword" }
12+"label" = { fg = "keyword" }
13+"constant.builtin" = { fg = "keyword" }
14+
15+"punctuation" = { fg = "text" }
16+"punctuation.delimiter" = { fg = "text" }
17+
18+"keyword.control" = { fg = "special" }
19+"special" = { fg = "text" }
20+"operator" = { fg = "text" }
21+
22+"variable" = { fg = "variable" }
23+"variable.parameter" = { fg = "variable" }
24+"property" = { fg = "variable" }
25+
26+"attribute" = { fg = "fn_declaration" }
27+"function" = { fg = "fn_declaration" }
28+"function.builtin" = { fg = "fn_declaration" }
29+
30+"comment" = { fg = "#6A9955" }
31+
32+"constant" = { fg = "constant" }
33+"type.enum.variant" = { fg = "constant" }
34+"constructor" = { fg = "constant" }
35+
36+"string" = { fg = "#ce9178" }
37+"number" = { fg = "#b5cea8" }
38+"escape" = { fg = "#d7ba7d" }
39+
40+"ui.background" = { fg = "#d4d4d4", bg = "#1e1e1e" }
41+
42+"ui.help" = { bg = "widget" }
43+"ui.popup" = { bg = "widget" }
44+"ui.window" = { bg = "widget" }
45+"ui.menu.selected" = { bg = "widget" }
46+
47+"ui.cursor" = { fg = "cursor", modifiers = ["reversed"] }
48+"ui.cursor.primary" = { fg = "cursor", modifiers = ["reversed"] }
49+"ui.cursor.match" = { fg = "cursor", modifiers = ['underlined'] }
50+
51+"ui.selection" = { bg = "#3a3d41" }
52+"ui.selection.primary" = { bg = "#add6ff26" }
53+
54+"ui.linenr" = { fg = "#858585" }
55+"ui.linenr.selected" = { fg = "#c6c6c6" }
56+
57+"ui.statusline" = { fg = "#ffffff", bg = "#007acc" }
58+
59+"ui.text" = { fg = "text", bg = "background" }
60+"ui.text.focus" = { fg = "#ffffff" }
61+
62+"warning" = { fg = "#cca700" }
63+"error" = { fg = "#f48771" }
64+"info" = { fg = "#75beff" }
65+"hint" = { fg = "#eeeeeeb3" }
66+
67+[palette]
68+type = "#4EC9B0"
69+keyword = "#569CD6"
70+regex = "#CE9178"
71+special = "#C586C0"
72+variable = "#9CDCFE"
73+fn_declaration = "#DCDCAA"
74+constant = "#4FC1FF"
75+
76+background = "#1e1e1e"
77+text = "#d4d4d4"
78+cursor = "#a6a6a6"
79+widget = "#252526"