syntax.ts

  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
142
143export const allSyntaxKeys: SyntaxProperty[] = [
144    '__attribute__',
145    '__name__',
146    '_sigil_name',
147    'attribute',
148    'boolean',
149    'comment.doc',
150    'comment.unused',
151    'comment',
152    'constant.builtin',
153    'constant',
154    'delimiter',
155    'embedded',
156    'emphasis.strong',
157    'emphasis',
158    'escape',
159    'field',
160    'function.builtin',
161    'function.definition',
162    'function.method.builtin',
163    'function.method',
164    'function.special.definition',
165    'function.special',
166    'function',
167    'identifier',
168    'keyword.function',
169    'keyword',
170    'label',
171    'link_text',
172    'link_uri',
173    'method.constructor',
174    'method',
175    'module',
176    'none',
177    'number',
178    'operator',
179    'parameter',
180    'preproc',
181    'property',
182    'punctuation.bracket',
183    'punctuation.delimiter',
184    'punctuation.list_marker',
185    'punctuation.special',
186    'punctuation',
187    'storageclass',
188    'string.escape',
189    'string.regex',
190    'string.special.symbol',
191    'string.special',
192    'string',
193    'tag.delimiter',
194    'tag',
195    'text.literal',
196    'title',
197    'type.builtin',
198    'type.qualifier',
199    'type',
200    'variable.builtin',
201    'variable.special',
202    'variable'
203]