Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

highlights.generated.ts

509 lines7.9 KB

1// Generated by apps/mobile/scripts/generate-highlights.mts from @pierre/highlights 0.5.0 (highlights.wasm sha256 2fca61b661e57cb341d9ca1703780dab628f29594fee66c2919d0a0032b11290). Do not edit.
2​
3export const HIGHLIGHTS_LANGUAGE_IDS: Readonly<Record<string, number>> = {
4 plain: 0,
5 plaintext: 0,
6 text: 0,
7 txt: 0,
8 abap: 1,
9 ada: 2,
10 adb: 2,
11 ads: 2,
12 "angular-html": 3,
13 apache: 4,
14 apacheconf: 4,
15 htaccess: 4,
16 apex: 5,
17 applescript: 6,
18 adoc: 7,
19 asciidoc: 7,
20 asm: 8,
21 assembly: 8,
22 mips: 8,
23 mipsasm: 8,
24 riscv: 8,
25 s: 8,
26 astro: 9,
27 awk: 10,
28 bash: 11,
29 sh: 11,
30 shell: 11,
31 shellscript: 11,
32 shellsession: 11,
33 zsh: 11,
34 bat: 12,
35 batch: 12,
36 batchfile: 12,
37 cmd: 12,
38 dos: 12,
39 bib: 13,
40 bibtex: 13,
41 bicep: 14,
42 blade: 15,
43 c: 16,
44 h: 16,
45 c3: 17,
46 clj: 18,
47 cljc: 18,
48 cljs: 18,
49 clojure: 18,
50 edn: 18,
51 cmake: 19,
52 cbl: 20,
53 cob: 20,
54 cobol: 20,
55 codeowners: 21,
56 codeql: 22,
57 ql: 22,
58 coffee: 23,
59 coffeescript: 23,
60 coq: 24,
61 rocq: 24,
62 "c++": 25,
63 cc: 25,
64 cpp: 25,
65 cxx: 25,
66 hh: 25,
67 hpp: 25,
68 hxx: 25,
69 "c#": 26,
70 cs: 26,
71 csharp: 26,
72 css: 27,
73 postcss: 27,
74 qss: 27,
75 csv: 28,
76 cu: 29,
77 cuda: 29,
78 cuh: 29,
79 cql: 30,
80 cypher: 30,
81 d: 31,
82 dart: 32,
83 dax: 33,
84 diff: 34,
85 "git-commit": 34,
86 "git-rebase": 34,
87 patch: 34,
88 containerfile: 35,
89 docker: 35,
90 dockerfile: 35,
91 dotenv: 36,
92 env: 36,
93 elixir: 37,
94 ex: 37,
95 exs: 37,
96 elm: 38,
97 erb: 39,
98 erl: 40,
99 erlang: 40,
100 hrl: 40,
101 fish: 41,
102 f03: 42,
103 f08: 42,
104 f90: 42,
105 f95: 42,
106 fortran: 42,
107 "fortran-free-form": 42,
108 f: 43,
109 f77: 43,
110 for: 43,
111 "fortran-fixed-form": 43,
112 "f#": 44,
113 fs: 44,
114 fsharp: 44,
115 fsi: 44,
116 fsx: 44,
117 gdresource: 45,
118 "godot-resource": 45,
119 tres: 45,
120 tscn: 45,
121 gd: 46,
122 gdscript: 46,
123 gdshader: 47,
124 gdshaderinc: 47,
125 "godot-shader": 47,
126 cucumber: 48,
127 feature: 48,
128 gherkin: 48,
129 gleam: 49,
130 comp: 50,
131 frag: 50,
132 geom: 50,
133 glsl: 50,
134 vert: 50,
135 gnuplot: 51,
136 gp: 51,
137 go: 52,
138 golang: 52,
139 gql: 53,
140 graphql: 53,
141 groq: 54,
142 gradle: 55,
143 groovy: 55,
144 gsh: 55,
145 gvy: 55,
146 gy: 55,
147 nextflow: 55,
148 "nextflow-groovy": 55,
149 nf: 55,
150 hack: 56,
151 haml: 57,
152 handlebars: 58,
153 hbs: 58,
154 mustache: 58,
155 haskell: 59,
156 hs: 59,
157 haxe: 60,
158 hx: 60,
159 hlsl: 61,
160 htm: 62,
161 html: 62,
162 "html-derivative": 62,
163 http: 63,
164 desktop: 64,
165 ini: 64,
166 properties: 64,
167 systemd: 64,
168 java: 65,
169 j2: 66,
170 jinja: 66,
171 jinja2: 66,
172 cjs: 67,
173 javascript: 67,
174 js: 67,
175 mjs: 67,
176 json: 68,
177 jsonc: 68,
178 json5: 69,
179 jsonl: 70,
180 jsonnet: 71,
181 libsonnet: 71,
182 jsx: 72,
183 jl: 73,
184 julia: 73,
185 just: 74,
186 justfile: 74,
187 kdl: 75,
188 kotlin: 76,
189 kt: 76,
190 kts: 76,
191 latex: 77,
192 tex: 77,
193 lean: 78,
194 lean4: 78,
195 less: 79,
196 liquid: 80,
197 cl: 81,
198 el: 81,
199 elisp: 81,
200 "emacs-lisp": 81,
201 lisp: 81,
202 lsp: 81,
203 racket: 81,
204 rkt: 81,
205 scheme: 81,
206 scm: 81,
207 llvm: 82,
208 log: 83,
209 lua: 84,
210 luau: 85,
211 make: 86,
212 makefile: 86,
213 mk: 86,
214 markdown: 87,
215 md: 87,
216 mdc: 87,
217 matlab: 88,
218 octave: 88,
219 mdx: 89,
220 mermaid: 90,
221 mmd: 90,
222 mbt: 91,
223 moonbit: 91,
224 nginx: 92,
225 nim: 93,
226 nix: 94,
227 m: 95,
228 mm: 95,
229 objc: 95,
230 objcpp: 95,
231 "objective-c": 95,
232 "objective-cpp": 95,
233 objectivec: 95,
234 ml: 96,
235 mli: 96,
236 ocaml: 96,
237 odin: 97,
238 openscad: 98,
239 scad: 98,
240 delphi: 99,
241 dpk: 99,
242 dpr: 99,
243 lpr: 99,
244 "object-pascal": 99,
245 objectpascal: 99,
246 pas: 99,
247 pascal: 99,
248 pp: 99,
249 perl: 100,
250 pl: 100,
251 pm: 100,
252 php: 101,
253 plsql: 102,
254 po: 103,
255 pot: 103,
256 potx: 103,
257 powerquery: 104,
258 pq: 104,
259 powershell: 105,
260 ps: 105,
261 ps1: 105,
262 psd1: 105,
263 psm1: 105,
264 pwsh: 105,
265 prisma: 106,
266 prolog: 107,
267 promql: 108,
268 proto: 109,
269 protobuf: 109,
270 jade: 110,
271 pug: 110,
272 puppet: 111,
273 py: 112,
274 python: 112,
275 qml: 113,
276 r: 114,
277 rscript: 114,
278 cshtml: 115,
279 razor: 115,
280 reg: 116,
281 rosmsg: 117,
282 restructuredtext: 118,
283 rst: 118,
284 rb: 119,
285 ruby: 119,
286 rs: 120,
287 rust: 120,
288 sas: 121,
289 sass: 122,
290 sbt: 123,
291 sc: 123,
292 scala: 123,
293 scss: 124,
294 shader: 125,
295 shaderlab: 125,
296 sol: 126,
297 solidity: 126,
298 sparql: 127,
299 sql: 128,
300 stata: 129,
301 styl: 130,
302 stylus: 130,
303 svelte: 131,
304 swift: 132,
305 tcl: 133,
306 hcl: 134,
307 terraform: 134,
308 tf: 134,
309 tfvars: 134,
310 toml: 135,
311 "angular-ts": 136,
312 cts: 136,
313 lit: 136,
314 mts: 136,
315 ts: 136,
316 "ts-tags": 136,
317 typescript: 136,
318 tsrx: 137,
319 tsv: 138,
320 tsx: 139,
321 ttl: 140,
322 turtle: 140,
323 twig: 141,
324 typ: 142,
325 typst: 142,
326 sv: 143,
327 svh: 143,
328 "system-verilog": 143,
329 systemverilog: 143,
330 verilog: 143,
331 vhd: 144,
332 vhdl: 144,
333 vim: 145,
334 viml: 145,
335 vimscript: 145,
336 vue: 146,
337 "vue-html": 146,
338 wasm: 147,
339 wat: 147,
340 wgsl: 148,
341 mathematica: 149,
342 wl: 149,
343 wolfram: 149,
344 svg: 150,
345 xml: 150,
346 xsd: 150,
347 xsl: 150,
348 xslt: 150,
349 yaml: 151,
350 yml: 151,
351 zig: 152,
352 zon: 152,
353};
354​
355/** `[color, fontStyle]` by token ID. fontStyle bits: italic 1, bold 2. */
356export const HIGHLIGHTS_THEME_STYLES: Readonly<
357 Record<"light" | "dark", ReadonlyArray<readonly [string, number]>>
358> = {
359 light: [
360 ["#0a0a0a", 0],
361 ["#18a46c", 0],
362 ["#18a46c", 0],
363 ["#1ca1c7", 0],
364 ["#737373", 0],
365 ["#737373", 0],
366 ["#d5a910", 0],
367 ["#d5a910", 0],
368 ["#a631be", 0],
369 ["#d52c36", 0],
370 ["#18a46c", 0],
371 ["#0a0a0a", 0],
372 ["#0a0a0a", 1],
373 ["#0a0a0a", 2],
374 ["#693acf", 0],
375 ["#693acf", 0],
376 ["#693acf", 0],
377 ["#d32a61", 0],
378 ["#d32a61", 0],
379 ["#d32a61", 0],
380 ["#d32a61", 0],
381 ["#08c0ef", 0],
382 ["#d5901c", 0],
383 ["#d5901c", 0],
384 ["#1ca1c7", 0],
385 ["#08c0ef", 0],
386 ["#8a8a8a", 1],
387 ["#d32a61", 0],
388 ["#009fff", 0],
389 ["#d47628", 0],
390 ["#d47628", 0],
391 ["#636363", 0],
392 ["#636363", 0],
393 ["#636363", 0],
394 ["#636363", 0],
395 ["#636363", 0],
396 ["#636363", 0],
397 ["#636363", 0],
398 ["#636363", 0],
399 ["#636363", 0],
400 ["#d32a61", 0],
401 ["#d5512f", 0],
402 ["#18a46c", 0],
403 ["#693acf", 0],
404 ["#199f43", 0],
405 ["#16a994", 0],
406 ["#17a5af", 0],
407 ["#16a994", 0],
408 ["#d5a910", 0],
409 ["#d5512f", 0],
410 ["#d5512f", 0],
411 ["#d5512f", 0],
412 ["#0a0a0a", 0],
413 ["#199f43", 0],
414 ["#d5512f", 2],
415 ["#a631be", 0],
416 ["#a631be", 0],
417 ["#a631be", 0],
418 ["#d47628", 0],
419 ["#636363", 0],
420 ["#d5901c", 0],
421 ["#a631be", 0],
422 ["#737373", 0],
423 ["#d32a61", 0],
424 ["#009fff", 0],
425 ["#d32a61", 0],
426 ["#08c0ef", 0],
427 ["#a631be", 0],
428 ["#a631be", 0],
429 ["#d47628", 0],
430 ["#d5a910", 0],
431 ["#0a0a0a", 0],
432 ["#0a0a0a", 0],
433 ],
434 dark: [
435 ["#fafafa", 0],
436 ["#60d199", 0],
437 ["#60d199", 0],
438 ["#68cdf2", 0],
439 ["#737373", 0],
440 ["#737373", 0],
441 ["#ffd452", 0],
442 ["#ffd452", 0],
443 ["#d568ea", 0],
444 ["#ff2e3f", 0],
445 ["#07c480", 0],
446 ["#fafafa", 0],
447 ["#fafafa", 1],
448 ["#fafafa", 2],
449 ["#9d6afb", 0],
450 ["#9d6afb", 0],
451 ["#9d6afb", 0],
452 ["#ff678d", 0],
453 ["#ff678d", 0],
454 ["#ff678d", 0],
455 ["#ff678d", 0],
456 ["#08c0ef", 0],
457 ["#ffab16", 0],
458 ["#ffab16", 0],
459 ["#68cdf2", 0],
460 ["#08c0ef", 0],
461 ["#636363", 1],
462 ["#ff678d", 0],
463 ["#009fff", 0],
464 ["#ffa359", 0],
465 ["#ffa359", 0],
466 ["#636363", 0],
467 ["#636363", 0],
468 ["#636363", 0],
469 ["#636363", 0],
470 ["#636363", 0],
471 ["#636363", 0],
472 ["#636363", 0],
473 ["#636363", 0],
474 ["#636363", 0],
475 ["#ff678d", 0],
476 ["#ff855e", 0],
477 ["#60d199", 0],
478 ["#9d6afb", 0],
479 ["#5ecc71", 0],
480 ["#61d5c0", 0],
481 ["#64d1db", 0],
482 ["#61d5c0", 0],
483 ["#ffd452", 0],
484 ["#ff855e", 0],
485 ["#ff855e", 0],
486 ["#ff855e", 0],
487 ["#fafafa", 0],
488 ["#5ecc71", 0],
489 ["#ff855e", 2],
490 ["#d568ea", 0],
491 ["#d568ea", 0],
492 ["#d568ea", 0],
493 ["#ffa359", 0],
494 ["#a3a3a3", 0],
495 ["#ffab16", 0],
496 ["#d568ea", 0],
497 ["#737373", 0],
498 ["#ff678d", 0],
499 ["#009fff", 0],
500 ["#ff678d", 0],
501 ["#08c0ef", 0],
502 ["#d568ea", 0],
503 ["#d568ea", 0],
504 ["#ffa359", 0],
505 ["#ffd452", 0],
506 ["#fafafa", 0],
507 ["#fafafa", 0],
508 ],
509};