1// This file is generated by extract_syntax_types.ts
2// Do not edit this file directly
3// It is generated from the highlight.scm files in the zed crate
4
5// To regenerate this file manually:
6// 'npm run extract-syntax-types' from ./styles
7
8export type SyntaxHighlightStyle = {
9 color: string
10 fade_out?: number
11 italic?: boolean
12 underline?: boolean
13 weight?: string
14}
15
16export type Syntax = Record<SyntaxProperty, SyntaxHighlightStyle>
17export type SyntaxOverride = Partial<Syntax>
18
19export type SyntaxProperty =
20 /** Default text color */
21 | "primary"
22
23 /** elixir */
24 | "__attribute__"
25 /** elixir */
26 | "__name__"
27 /** elixir */
28 | "_sigil_name"
29 /** css, heex, lua */
30 | "attribute"
31 /** javascript, lua, tsx, typescript, yaml */
32 | "boolean"
33 /** elixir */
34 | "comment.doc"
35 /** elixir */
36 | "comment.unused"
37 /** bash, c, cpp, css, elixir, elm, erb, ... */
38 | "comment"
39 /** elixir, go, javascript, lua, php, python, racket, ... */
40 | "constant.builtin"
41 /** bash, c, cpp, elixir, elm, glsl, heex, ... */
42 | "constant"
43 /** glsl */
44 | "delimiter"
45 /** bash, elixir, javascript, python, ruby, tsx, typescript */
46 | "embedded"
47 /** markdown */
48 | "emphasis.strong"
49 /** markdown */
50 | "emphasis"
51 /** go, python, racket, ruby, scheme */
52 | "escape"
53 /** lua */
54 | "field"
55 /** lua, php, python */
56 | "function.builtin"
57 /** elm, lua, rust */
58 | "function.definition"
59 /** ruby */
60 | "function.method.builtin"
61 /** go, javascript, php, python, ruby, rust, tsx, ... */
62 | "function.method"
63 /** rust */
64 | "function.special.definition"
65 /** c, cpp, glsl, rust */
66 | "function.special"
67 /** bash, c, cpp, css, elixir, elm, glsl, ... */
68 | "function"
69 /** elm */
70 | "identifier"
71 /** glsl */
72 | "keyword.function"
73 /** bash, c, cpp, css, elixir, elm, erb, ... */
74 | "keyword"
75 /** c, cpp, glsl */
76 | "label"
77 /** markdown */
78 | "link_text"
79 /** markdown */
80 | "link_uri"
81 /** lua, php, tsx, typescript */
82 | "method.constructor"
83 /** lua */
84 | "method"
85 /** heex */
86 | "module"
87 /** svelte */
88 | "none"
89 /** bash, c, cpp, css, elixir, glsl, go, ... */
90 | "number"
91 /** bash, c, cpp, css, elixir, elm, glsl, ... */
92 | "operator"
93 /** lua */
94 | "parameter"
95 /** lua */
96 | "preproc"
97 /** bash, c, cpp, css, glsl, go, html, ... */
98 | "property"
99 /** c, cpp, elixir, elm, heex, html, javascript, ... */
100 | "punctuation.bracket"
101 /** c, cpp, css, elixir, elm, heex, javascript, ... */
102 | "punctuation.delimiter"
103 /** markdown */
104 | "punctuation.list_marker"
105 /** elixir, javascript, python, ruby, tsx, typescript, yaml */
106 | "punctuation.special"
107 /** elixir */
108 | "punctuation"
109 /** glsl */
110 | "storageclass"
111 /** elixir, elm, yaml */
112 | "string.escape"
113 /** elixir, javascript, racket, ruby, tsx, typescript */
114 | "string.regex"
115 /** elixir, ruby */
116 | "string.special.symbol"
117 /** css, elixir, toml */
118 | "string.special"
119 /** bash, c, cpp, css, elixir, elm, glsl, ... */
120 | "string"
121 /** svelte */
122 | "tag.delimiter"
123 /** css, heex, php, svelte */
124 | "tag"
125 /** markdown */
126 | "text.literal"
127 /** markdown */
128 | "title"
129 /** javascript, php, rust, tsx, typescript */
130 | "type.builtin"
131 /** glsl */
132 | "type.qualifier"
133 /** c, cpp, css, elixir, elm, glsl, go, ... */
134 | "type"
135 /** glsl, php */
136 | "variable.builtin"
137 /** cpp, css, javascript, lua, racket, ruby, rust, ... */
138 | "variable.special"
139 /** c, cpp, elm, glsl, go, javascript, lua, ... */
140 | "variable"
141
142export const allSyntaxKeys: SyntaxProperty[] = [
143 "__attribute__",
144 "__name__",
145 "_sigil_name",
146 "attribute",
147 "boolean",
148 "comment.doc",
149 "comment.unused",
150 "comment",
151 "constant.builtin",
152 "constant",
153 "delimiter",
154 "embedded",
155 "emphasis.strong",
156 "emphasis",
157 "escape",
158 "field",
159 "function.builtin",
160 "function.definition",
161 "function.method.builtin",
162 "function.method",
163 "function.special.definition",
164 "function.special",
165 "function",
166 "identifier",
167 "keyword.function",
168 "keyword",
169 "label",
170 "link_text",
171 "link_uri",
172 "method.constructor",
173 "method",
174 "module",
175 "none",
176 "number",
177 "operator",
178 "parameter",
179 "preproc",
180 "property",
181 "punctuation.bracket",
182 "punctuation.delimiter",
183 "punctuation.list_marker",
184 "punctuation.special",
185 "punctuation",
186 "storageclass",
187 "string.escape",
188 "string.regex",
189 "string.special.symbol",
190 "string.special",
191 "string",
192 "tag.delimiter",
193 "tag",
194 "text.literal",
195 "title",
196 "type.builtin",
197 "type.qualifier",
198 "type",
199 "variable.builtin",
200 "variable.special",
201 "variable",
202]