@@ -5,37 +5,42 @@ exports.monacoEditorImpl = async () => {
55 return x.default;
66};
77
8−exports.getValue = function(editor) {
9− return function() {
8+exports.getValue = function (editor) {
9+ return function () {
1010 return editor.getValue();
1111 };
1212};
1313
14−exports.setValue = (value: String) => editor => () => editor.setValue(value);
14+exports.colorizeImpl = (text: string) => (languageId: string) => (
15+ options: any
16+) => (editor: any): Promise<string> =>
17+ editor.colorize(text, languageId, options);
1518
16−exports.defineThemeImpl = monacoInstance => name => theme => () =>
19+exports.setValue = (value: string) => (editor) => () => editor.setValue(value);
20+
21+exports.defineThemeImpl = (monacoInstance) => (name) => (theme) => () =>
1722 monacoInstance.editor.defineTheme(name, theme);
1823
19−exports.setThemeImpl = function(monacoInstance) {
20− return function(theme) {
21− return function() {
24+exports.setThemeImpl = function (monacoInstance) {
25+ return function (theme) {
26+ return function () {
2227 return monacoInstance.editor.setTheme(theme);
2328 };
2429 };
2530};
2631
27−exports.registerLanguageImpl = function(monacoInstance) {
28− return function(languageId) {
29− return function() {
32+exports.registerLanguageImpl = function (monacoInstance) {
33+ return function (languageId) {
34+ return function () {
3035 monacoInstance.languages.register({ id: languageId });
3136 };
3237 };
3338};
3439
35−exports.setMonarchTokensProviderImpl = function(monacoInstance) {
36− return function(name) {
37− return function(monarchLanguage) {
38− return function() {
40+exports.setMonarchTokensProviderImpl = function (monacoInstance) {
41+ return function (name) {
42+ return function (monarchLanguage) {
43+ return function () {
3944 return monacoInstance.languages.setMonarchTokensProvider(
4045 name,
4146 monarchLanguage
@@ -45,90 +50,90 @@ exports.setMonarchTokensProviderImpl = function(monacoInstance) {
4550 };
4651};
4752
48−exports.vsCodeTheme = bg => ({
53+exports.vsCodeTheme = (bg) => ({
4954 base: "vs",
5055 inherit: true,
5156 rules: [
5257 {
5358 foreground: "008e00",
54− token: "comment"
59+ token: "comment",
5560 },
5661 {
5762 foreground: "7d4726",
58− token: "meta.preprocessor"
63+ token: "meta.preprocessor",
5964 },
6065 {
6166 foreground: "7d4726",
62− token: "keyword.control.import"
67+ token: "keyword.control.import",
6368 },
6469 {
6570 foreground: "df0002",
66− token: "string"
71+ token: "string",
6772 },
6873 {
6974 foreground: "3a00dc",
70− token: "constant.numeric"
75+ token: "constant.numeric",
7176 },
7277 {
7378 foreground: "c800a4",
74− token: "constant.language"
79+ token: "constant.language",
7580 },
7681 {
7782 foreground: "275a5e",
78− token: "constant.character"
83+ token: "constant.character",
7984 },
8085 {
8186 foreground: "275a5e",
82− token: "constant.other"
87+ token: "constant.other",
8388 },
8489 {
8590 foreground: "c800a4",
86− token: "variable.language"
91+ token: "variable.language",
8792 },
8893 {
8994 foreground: "c800a4",
90− token: "variable.other"
95+ token: "variable.other",
9196 },
9297 {
9398 foreground: "c800a4",
94− token: "keyword"
99+ token: "keyword",
95100 },
96101 {
97102 foreground: "c900a4",
98− token: "storage"
103+ token: "storage",
99104 },
100105 {
101106 foreground: "438288",
102− token: "entity.name.class"
107+ token: "entity.name.class",
103108 },
104109 {
105110 foreground: "790ead",
106− token: "entity.name.tag"
111+ token: "entity.name.tag",
107112 },
108113 {
109114 foreground: "450084",
110− token: "entity.other.attribute-name"
115+ token: "entity.other.attribute-name",
111116 },
112117 {
113118 foreground: "450084",
114− token: "support.function"
119+ token: "support.function",
115120 },
116121 {
117122 foreground: "450084",
118− token: "support.constant"
123+ token: "support.constant",
119124 },
120125 {
121126 foreground: "790ead",
122− token: "support.type"
127+ token: "support.type",
123128 },
124129 {
125130 foreground: "790ead",
126− token: "support.class"
131+ token: "support.class",
127132 },
128133 {
129134 foreground: "790ead",
130− token: "support.other.variable"
131− }
135+ token: "support.other.variable",
136+ },
132137 ],
133138 colors: {
134139 "editor.foreground": "#000000",
@@ -136,675 +141,676 @@ exports.vsCodeTheme = bg => ({
136141 "editor.selectionBackground": "#B5D5FF",
137142 "editor.lineHighlightBackground": "#00000012",
138143 "editorCursor.foreground": "#000000",
139− "editorWhitespace.foreground": "#BFBFBF"
140− }
144+ "editorWhitespace.foreground": "#BFBFBF",
145+ },
141146});
142147
143−exports.nightOwlTheme = bg => ({
148+exports.nightOwlTheme = (bg) => ({
144149 base: "vs-dark",
145150 inherit: true,
146151 rules: [
147152 {
148153 foreground: "637777",
149− token: "comment"
154+ token: "comment",
150155 },
151156 {
152157 foreground: "addb67",
153− token: "string"
158+ token: "string",
154159 },
155160 {
156161 foreground: "ecc48d",
157− token: "vstring.quoted"
162+ token: "vstring.quoted",
158163 },
159164 {
160165 foreground: "ecc48d",
161− token: "variable.other.readwrite.js"
166+ token: "variable.other.readwrite.js",
162167 },
163168 {
164169 foreground: "5ca7e4",
165− token: "string.regexp"
170+ token: "string.regexp",
166171 },
167172 {
168173 foreground: "5ca7e4",
169− token: "string.regexp keyword.other"
174+ token: "string.regexp keyword.other",
170175 },
171176 {
172177 foreground: "5f7e97",
173− token: "meta.function punctuation.separator.comma"
178+ token: "meta.function punctuation.separator.comma",
174179 },
175180 {
176181 foreground: "f78c6c",
177− token: "constant.numeric"
182+ token: "constant.numeric",
178183 },
179184 {
180185 foreground: "f78c6c",
181− token: "constant.character.numeric"
186+ token: "constant.character.numeric",
182187 },
183188 {
184189 foreground: "addb67",
185− token: "variable"
190+ token: "variable",
186191 },
187192 {
188193 foreground: "c792ea",
189− token: "keyword"
194+ token: "keyword",
190195 },
191196 {
192197 foreground: "c792ea",
193− token: "punctuation.accessor"
198+ token: "punctuation.accessor",
194199 },
195200 {
196201 foreground: "c792ea",
197− token: "storage"
202+ token: "storage",
198203 },
199204 {
200205 foreground: "c792ea",
201− token: "meta.var.expr"
206+ token: "meta.var.expr",
202207 },
203208 {
204209 foreground: "c792ea",
205− token: "meta.class meta.method.declaration meta.var.expr storage.type.jsm"
210+ token:
211+ "meta.class meta.method.declaration meta.var.expr storage.type.jsm",
206212 },
207213 {
208214 foreground: "c792ea",
209− token: "storage.type.property.js"
215+ token: "storage.type.property.js",
210216 },
211217 {
212218 foreground: "c792ea",
213− token: "storage.type.property.ts"
219+ token: "storage.type.property.ts",
214220 },
215221 {
216222 foreground: "c792ea",
217− token: "storage.type.property.tsx"
223+ token: "storage.type.property.tsx",
218224 },
219225 {
220226 foreground: "82aaff",
221− token: "storage.type"
227+ token: "storage.type",
222228 },
223229 {
224230 foreground: "ffcb8b",
225− token: "entity.name.class"
231+ token: "entity.name.class",
226232 },
227233 {
228234 foreground: "ffcb8b",
229− token: "meta.class entity.name.type.class"
235+ token: "meta.class entity.name.type.class",
230236 },
231237 {
232238 foreground: "addb67",
233− token: "entity.other.inherited-class"
239+ token: "entity.other.inherited-class",
234240 },
235241 {
236242 foreground: "82aaff",
237− token: "entity.name.function"
243+ token: "entity.name.function",
238244 },
239245 {
240246 foreground: "addb67",
241− token: "punctuation.definition.variable"
247+ token: "punctuation.definition.variable",
242248 },
243249 {
244250 foreground: "d3423e",
245− token: "punctuation.section.embedded"
251+ token: "punctuation.section.embedded",
246252 },
247253 {
248254 foreground: "d6deeb",
249− token: "punctuation.terminator.expression"
255+ token: "punctuation.terminator.expression",
250256 },
251257 {
252258 foreground: "d6deeb",
253− token: "punctuation.definition.arguments"
259+ token: "punctuation.definition.arguments",
254260 },
255261 {
256262 foreground: "d6deeb",
257− token: "punctuation.definition.array"
263+ token: "punctuation.definition.array",
258264 },
259265 {
260266 foreground: "d6deeb",
261− token: "punctuation.section.array"
267+ token: "punctuation.section.array",
262268 },
263269 {
264270 foreground: "d6deeb",
265− token: "meta.array"
271+ token: "meta.array",
266272 },
267273 {
268274 foreground: "d9f5dd",
269− token: "punctuation.definition.list.begin"
275+ token: "punctuation.definition.list.begin",
270276 },
271277 {
272278 foreground: "d9f5dd",
273− token: "punctuation.definition.list.end"
279+ token: "punctuation.definition.list.end",
274280 },
275281 {
276282 foreground: "d9f5dd",
277− token: "punctuation.separator.arguments"
283+ token: "punctuation.separator.arguments",
278284 },
279285 {
280286 foreground: "d9f5dd",
281− token: "punctuation.definition.list"
287+ token: "punctuation.definition.list",
282288 },
283289 {
284290 foreground: "d3423e",
285− token: "string.template meta.template.expression"
291+ token: "string.template meta.template.expression",
286292 },
287293 {
288294 foreground: "d6deeb",
289− token: "string.template punctuation.definition.string"
295+ token: "string.template punctuation.definition.string",
290296 },
291297 {
292298 foreground: "c792ea",
293299 fontStyle: "italic",
294− token: "italic"
300+ token: "italic",
295301 },
296302 {
297303 foreground: "addb67",
298304 fontStyle: "bold",
299− token: "bold"
305+ token: "bold",
300306 },
301307 {
302308 foreground: "82aaff",
303− token: "constant.language"
309+ token: "constant.language",
304310 },
305311 {
306312 foreground: "82aaff",
307− token: "punctuation.definition.constant"
313+ token: "punctuation.definition.constant",
308314 },
309315 {
310316 foreground: "82aaff",
311− token: "variable.other.constant"
317+ token: "variable.other.constant",
312318 },
313319 {
314320 foreground: "7fdbca",
315− token: "support.function.construct"
321+ token: "support.function.construct",
316322 },
317323 {
318324 foreground: "7fdbca",
319− token: "keyword.other.new"
325+ token: "keyword.other.new",
320326 },
321327 {
322328 foreground: "82aaff",
323− token: "constant.character"
329+ token: "constant.character",
324330 },
325331 {
326332 foreground: "82aaff",
327− token: "constant.other"
333+ token: "constant.other",
328334 },
329335 {
330336 foreground: "f78c6c",
331− token: "constant.character.escape"
337+ token: "constant.character.escape",
332338 },
333339 {
334340 foreground: "addb67",
335− token: "entity.other.inherited-class"
341+ token: "entity.other.inherited-class",
336342 },
337343 {
338344 foreground: "d7dbe0",
339− token: "variable.parameter"
345+ token: "variable.parameter",
340346 },
341347 {
342348 foreground: "7fdbca",
343− token: "entity.name.tag"
349+ token: "entity.name.tag",
344350 },
345351 {
346352 foreground: "cc2996",
347− token: "punctuation.definition.tag.html"
353+ token: "punctuation.definition.tag.html",
348354 },
349355 {
350356 foreground: "cc2996",
351− token: "punctuation.definition.tag.begin"
357+ token: "punctuation.definition.tag.begin",
352358 },
353359 {
354360 foreground: "cc2996",
355− token: "punctuation.definition.tag.end"
361+ token: "punctuation.definition.tag.end",
356362 },
357363 {
358364 foreground: "addb67",
359− token: "entity.other.attribute-name"
365+ token: "entity.other.attribute-name",
360366 },
361367 {
362368 foreground: "addb67",
363− token: "entity.name.tag.custom"
369+ token: "entity.name.tag.custom",
364370 },
365371 {
366372 foreground: "82aaff",
367− token: "support.function"
373+ token: "support.function",
368374 },
369375 {
370376 foreground: "82aaff",
371− token: "support.constant"
377+ token: "support.constant",
372378 },
373379 {
374380 foreground: "7fdbca",
375− token: "upport.constant.meta.property-value"
381+ token: "upport.constant.meta.property-value",
376382 },
377383 {
378384 foreground: "addb67",
379− token: "support.type"
385+ token: "support.type",
380386 },
381387 {
382388 foreground: "addb67",
383− token: "support.class"
389+ token: "support.class",
384390 },
385391 {
386392 foreground: "addb67",
387− token: "support.variable.dom"
393+ token: "support.variable.dom",
388394 },
389395 {
390396 foreground: "7fdbca",
391− token: "support.constant"
397+ token: "support.constant",
392398 },
393399 {
394400 foreground: "7fdbca",
395− token: "keyword.other.special-method"
401+ token: "keyword.other.special-method",
396402 },
397403 {
398404 foreground: "7fdbca",
399− token: "keyword.other.new"
405+ token: "keyword.other.new",
400406 },
401407 {
402408 foreground: "7fdbca",
403− token: "keyword.other.debugger"
409+ token: "keyword.other.debugger",
404410 },
405411 {
406412 foreground: "7fdbca",
407− token: "keyword.control"
413+ token: "keyword.control",
408414 },
409415 {
410416 foreground: "c792ea",
411− token: "keyword.operator.comparison"
417+ token: "keyword.operator.comparison",
412418 },
413419 {
414420 foreground: "c792ea",
415− token: "keyword.control.flow.js"
421+ token: "keyword.control.flow.js",
416422 },
417423 {
418424 foreground: "c792ea",
419− token: "keyword.control.flow.ts"
425+ token: "keyword.control.flow.ts",
420426 },
421427 {
422428 foreground: "c792ea",
423− token: "keyword.control.flow.tsx"
429+ token: "keyword.control.flow.tsx",
424430 },
425431 {
426432 foreground: "c792ea",
427− token: "keyword.control.ruby"
433+ token: "keyword.control.ruby",
428434 },
429435 {
430436 foreground: "c792ea",
431− token: "keyword.control.module.ruby"
437+ token: "keyword.control.module.ruby",
432438 },
433439 {
434440 foreground: "c792ea",
435− token: "keyword.control.class.ruby"
441+ token: "keyword.control.class.ruby",
436442 },
437443 {
438444 foreground: "c792ea",
439− token: "keyword.control.def.ruby"
445+ token: "keyword.control.def.ruby",
440446 },
441447 {
442448 foreground: "c792ea",
443− token: "keyword.control.loop.js"
449+ token: "keyword.control.loop.js",
444450 },
445451 {
446452 foreground: "c792ea",
447− token: "keyword.control.loop.ts"
453+ token: "keyword.control.loop.ts",
448454 },
449455 {
450456 foreground: "c792ea",
451− token: "keyword.control.import.js"
457+ token: "keyword.control.import.js",
452458 },
453459 {
454460 foreground: "c792ea",
455− token: "keyword.control.import.ts"
461+ token: "keyword.control.import.ts",
456462 },
457463 {
458464 foreground: "c792ea",
459− token: "keyword.control.import.tsx"
465+ token: "keyword.control.import.tsx",
460466 },
461467 {
462468 foreground: "c792ea",
463− token: "keyword.control.from.js"
469+ token: "keyword.control.from.js",
464470 },
465471 {
466472 foreground: "c792ea",
467− token: "keyword.control.from.ts"
473+ token: "keyword.control.from.ts",
468474 },
469475 {
470476 foreground: "c792ea",
471− token: "keyword.control.from.tsx"
477+ token: "keyword.control.from.tsx",
472478 },
473479 {
474480 foreground: "ffffff",
475481 background: "ff2c83",
476− token: "invalid"
482+ token: "invalid",
477483 },
478484 {
479485 foreground: "ffffff",
480486 background: "d3423e",
481− token: "invalid.deprecated"
487+ token: "invalid.deprecated",
482488 },
483489 {
484490 foreground: "7fdbca",
485− token: "keyword.operator"
491+ token: "keyword.operator",
486492 },
487493 {
488494 foreground: "c792ea",
489− token: "keyword.operator.relational"
495+ token: "keyword.operator.relational",
490496 },
491497 {
492498 foreground: "c792ea",
493− token: "keyword.operator.assignement"
499+ token: "keyword.operator.assignement",
494500 },
495501 {
496502 foreground: "c792ea",
497− token: "keyword.operator.arithmetic"
503+ token: "keyword.operator.arithmetic",
498504 },
499505 {
500506 foreground: "c792ea",
501− token: "keyword.operator.bitwise"
507+ token: "keyword.operator.bitwise",
502508 },
503509 {
504510 foreground: "c792ea",
505− token: "keyword.operator.increment"
511+ token: "keyword.operator.increment",
506512 },
507513 {
508514 foreground: "c792ea",
509− token: "keyword.operator.ternary"
515+ token: "keyword.operator.ternary",
510516 },
511517 {
512518 foreground: "637777",
513− token: "comment.line.double-slash"
519+ token: "comment.line.double-slash",
514520 },
515521 {
516522 foreground: "cdebf7",
517− token: "object"
523+ token: "object",
518524 },
519525 {
520526 foreground: "ff5874",
521− token: "constant.language.null"
527+ token: "constant.language.null",
522528 },
523529 {
524530 foreground: "d6deeb",
525− token: "meta.brace"
531+ token: "meta.brace",
526532 },
527533 {
528534 foreground: "c792ea",
529− token: "meta.delimiter.period"
535+ token: "meta.delimiter.period",
530536 },
531537 {
532538 foreground: "d9f5dd",
533− token: "punctuation.definition.string"
539+ token: "punctuation.definition.string",
534540 },
535541 {
536542 foreground: "ff5874",
537− token: "constant.language.boolean"
543+ token: "constant.language.boolean",
538544 },
539545 {
540546 foreground: "ffffff",
541− token: "object.comma"
547+ token: "object.comma",
542548 },
543549 {
544550 foreground: "7fdbca",
545− token: "variable.parameter.function"
551+ token: "variable.parameter.function",
546552 },
547553 {
548554 foreground: "80cbc4",
549− token: "support.type.vendor.property-name"
555+ token: "support.type.vendor.property-name",
550556 },
551557 {
552558 foreground: "80cbc4",
553− token: "support.constant.vendor.property-value"
559+ token: "support.constant.vendor.property-value",
554560 },
555561 {
556562 foreground: "80cbc4",
557− token: "support.type.property-name"
563+ token: "support.type.property-name",
558564 },
559565 {
560566 foreground: "80cbc4",
561− token: "meta.property-list entity.name.tag"
567+ token: "meta.property-list entity.name.tag",
562568 },
563569 {
564570 foreground: "57eaf1",
565− token: "meta.property-list entity.name.tag.reference"
571+ token: "meta.property-list entity.name.tag.reference",
566572 },
567573 {
568574 foreground: "f78c6c",
569− token: "constant.other.color.rgb-value punctuation.definition.constant"
575+ token: "constant.other.color.rgb-value punctuation.definition.constant",
570576 },
571577 {
572578 foreground: "ffeb95",
573− token: "constant.other.color"
579+ token: "constant.other.color",
574580 },
575581 {
576582 foreground: "ffeb95",
577− token: "keyword.other.unit"
583+ token: "keyword.other.unit",
578584 },
579585 {
580586 foreground: "c792ea",
581− token: "meta.selector"
587+ token: "meta.selector",
582588 },
583589 {
584590 foreground: "fad430",
585− token: "entity.other.attribute-name.id"
591+ token: "entity.other.attribute-name.id",
586592 },
587593 {
588594 foreground: "80cbc4",
589− token: "meta.property-name"
595+ token: "meta.property-name",
590596 },
591597 {
592598 foreground: "c792ea",
593− token: "entity.name.tag.doctype"
599+ token: "entity.name.tag.doctype",
594600 },
595601 {
596602 foreground: "c792ea",
597− token: "meta.tag.sgml.doctype"
603+ token: "meta.tag.sgml.doctype",
598604 },
599605 {
600606 foreground: "d9f5dd",
601− token: "punctuation.definition.parameters"
607+ token: "punctuation.definition.parameters",
602608 },
603609 {
604610 foreground: "ecc48d",
605− token: "string.quoted"
611+ token: "string.quoted",
606612 },
607613 {
608614 foreground: "ecc48d",
609− token: "string.quoted.double"
615+ token: "string.quoted.double",
610616 },
611617 {
612618 foreground: "ecc48d",
613− token: "string.quoted.single"
619+ token: "string.quoted.single",
614620 },
615621 {
616622 foreground: "addb67",
617− token: "support.constant.math"
623+ token: "support.constant.math",
618624 },
619625 {
620626 foreground: "addb67",
621− token: "support.type.property-name.json"
627+ token: "support.type.property-name.json",
622628 },
623629 {
624630 foreground: "addb67",
625− token: "support.constant.json"
631+ token: "support.constant.json",
626632 },
627633 {
628634 foreground: "c789d6",
629− token: "meta.structure.dictionary.value.json string.quoted.double"
635+ token: "meta.structure.dictionary.value.json string.quoted.double",
630636 },
631637 {
632638 foreground: "80cbc4",
633− token: "string.quoted.double.json punctuation.definition.string.json"
639+ token: "string.quoted.double.json punctuation.definition.string.json",
634640 },
635641 {
636642 foreground: "ff5874",
637643 token:
638− "meta.structure.dictionary.json meta.structure.dictionary.value constant.language"
644+ "meta.structure.dictionary.json meta.structure.dictionary.value constant.language",
639645 },
640646 {
641647 foreground: "d6deeb",
642− token: "variable.other.ruby"
648+ token: "variable.other.ruby",
643649 },
644650 {
645651 foreground: "ecc48d",
646− token: "entity.name.type.class.ruby"
652+ token: "entity.name.type.class.ruby",
647653 },
648654 {
649655 foreground: "ecc48d",
650− token: "keyword.control.class.ruby"
656+ token: "keyword.control.class.ruby",
651657 },
652658 {
653659 foreground: "ecc48d",
654− token: "meta.class.ruby"
660+ token: "meta.class.ruby",
655661 },
656662 {
657663 foreground: "7fdbca",
658− token: "constant.language.symbol.hashkey.ruby"
664+ token: "constant.language.symbol.hashkey.ruby",
659665 },
660666 {
661667 foreground: "e0eddd",
662668 background: "a57706",
663669 fontStyle: "italic",
664− token: "meta.diff"
670+ token: "meta.diff",
665671 },
666672 {
667673 foreground: "e0eddd",
668674 background: "a57706",
669675 fontStyle: "italic",
670− token: "meta.diff.header"
676+ token: "meta.diff.header",
671677 },
672678 {
673679 foreground: "ef535090",
674680 fontStyle: "italic",
675− token: "markup.deleted"
681+ token: "markup.deleted",
676682 },
677683 {
678684 foreground: "a2bffc",
679685 fontStyle: "italic",
680− token: "markup.changed"
686+ token: "markup.changed",
681687 },
682688 {
683689 foreground: "a2bffc",
684690 fontStyle: "italic",
685− token: "meta.diff.header.git"
691+ token: "meta.diff.header.git",
686692 },
687693 {
688694 foreground: "a2bffc",
689695 fontStyle: "italic",
690− token: "meta.diff.header.from-file"
696+ token: "meta.diff.header.from-file",
691697 },
692698 {
693699 foreground: "a2bffc",
694700 fontStyle: "italic",
695− token: "meta.diff.header.to-file"
701+ token: "meta.diff.header.to-file",
696702 },
697703 {
698704 foreground: "219186",
699705 background: "eae3ca",
700− token: "markup.inserted"
706+ token: "markup.inserted",
701707 },
702708 {
703709 foreground: "d3201f",
704− token: "other.package.exclude"
710+ token: "other.package.exclude",
705711 },
706712 {
707713 foreground: "d3201f",
708− token: "other.remove"
714+ token: "other.remove",
709715 },
710716 {
711717 foreground: "269186",
712− token: "other.add"
718+ token: "other.add",
713719 },
714720 {
715721 foreground: "ff5874",
716− token: "constant.language.python"
722+ token: "constant.language.python",
717723 },
718724 {
719725 foreground: "82aaff",
720− token: "variable.parameter.function.python"
726+ token: "variable.parameter.function.python",
721727 },
722728 {
723729 foreground: "82aaff",
724− token: "meta.function-call.arguments.python"
730+ token: "meta.function-call.arguments.python",
725731 },
726732 {
727733 foreground: "b2ccd6",
728− token: "meta.function-call.python"
734+ token: "meta.function-call.python",
729735 },
730736 {
731737 foreground: "b2ccd6",
732− token: "meta.function-call.generic.python"
738+ token: "meta.function-call.generic.python",
733739 },
734740 {
735741 foreground: "d6deeb",
736− token: "punctuation.python"
742+ token: "punctuation.python",
737743 },
738744 {
739745 foreground: "addb67",
740− token: "entity.name.function.decorator.python"
746+ token: "entity.name.function.decorator.python",
741747 },
742748 {
743749 foreground: "8eace3",
744− token: "source.python variable.language.special"
750+ token: "source.python variable.language.special",
745751 },
746752 {
747753 foreground: "82b1ff",
748− token: "markup.heading.markdown"
754+ token: "markup.heading.markdown",
749755 },
750756 {
751757 foreground: "c792ea",
752758 fontStyle: "italic",
753− token: "markup.italic.markdown"
759+ token: "markup.italic.markdown",
754760 },
755761 {
756762 foreground: "addb67",
757763 fontStyle: "bold",
758− token: "markup.bold.markdown"
764+ token: "markup.bold.markdown",
759765 },
760766 {
761767 foreground: "697098",
762− token: "markup.quote.markdown"
768+ token: "markup.quote.markdown",
763769 },
764770 {
765771 foreground: "80cbc4",
766− token: "markup.inline.raw.markdown"
772+ token: "markup.inline.raw.markdown",
767773 },
768774 {
769775 foreground: "ff869a",
770− token: "markup.underline.link.markdown"
776+ token: "markup.underline.link.markdown",
771777 },
772778 {
773779 foreground: "ff869a",
774− token: "markup.underline.link.image.markdown"
780+ token: "markup.underline.link.image.markdown",
775781 },
776782 {
777783 foreground: "d6deeb",
778− token: "string.other.link.title.markdown"
784+ token: "string.other.link.title.markdown",
779785 },
780786 {
781787 foreground: "d6deeb",
782− token: "string.other.link.description.markdown"
788+ token: "string.other.link.description.markdown",
783789 },
784790 {
785791 foreground: "82b1ff",
786− token: "punctuation.definition.string.markdown"
792+ token: "punctuation.definition.string.markdown",
787793 },
788794 {
789795 foreground: "82b1ff",
790− token: "punctuation.definition.string.begin.markdown"
796+ token: "punctuation.definition.string.begin.markdown",
791797 },
792798 {
793799 foreground: "82b1ff",
794− token: "punctuation.definition.string.end.markdown"
800+ token: "punctuation.definition.string.end.markdown",
795801 },
796802 {
797803 foreground: "82b1ff",
798− token: "meta.link.inline.markdown punctuation.definition.string"
804+ token: "meta.link.inline.markdown punctuation.definition.string",
799805 },
800806 {
801807 foreground: "7fdbca",
802− token: "punctuation.definition.metadata.markdown"
808+ token: "punctuation.definition.metadata.markdown",
803809 },
804810 {
805811 foreground: "82b1ff",
806− token: "beginning.punctuation.definition.list.markdown"
807− }
812+ token: "beginning.punctuation.definition.list.markdown",
813+ },
808814 ],
809815 colors: {
810816 "editor.foreground": "#d6deeb",
@@ -815,8 +821,8 @@ exports.nightOwlTheme = bg => ({
815821 "editorCursor.foreground": "#80a4c2",
816822 "editorWhitespace.foreground": "#2e2040",
817823 "editorIndentGuide.background": "#5e81ce52",
818− "editor.selectionHighlightBorder": "#122d42"
819− }
824+ "editor.selectionHighlightBorder": "#122d42",
825+ },
820826});
821827
822828exports.purescriptSyntax = {
@@ -861,7 +867,7 @@ exports.purescriptSyntax = {
861867 "|",
862868 "foreign",
863869 "forall",
864− "∷"
870+ "∷",
865871 ],
866872
867873 extraKeywords: [],
@@ -882,11 +888,11 @@ exports.purescriptSyntax = {
882888 root: [
883889 [
884890 "((?:[A-Z]@idchars\\.)+)([a-z]@idchars)",
885− ["identifier.namespace", "identifier"]
891+ ["identifier.namespace", "identifier"],
886892 ],
887893 [
888894 "((?:[A-Z]@idchars\\.)+)([A-Z]@idchars)",
889− ["identifier.namespace", "constructor"]
895+ ["identifier.namespace", "constructor"],
890896 ],
891897
892898 [
@@ -897,9 +903,9 @@ exports.purescriptSyntax = {
897903 "@typeStart": { token: "keyword", next: "@type_type" },
898904 "@keywords": "keyword",
899905 "@extraKeywords": "keyword",
900− "@default": "identifier"
901− }
902− }
906+ "@default": "identifier",
907+ },
908+ },
903909 ],
904910
905911 ["[A-Z]@idchars", "type.identifier"],
@@ -920,9 +926,9 @@ exports.purescriptSyntax = {
920926 cases: {
921927 "@keywords": "keyword.operator",
922928 "@extraKeywords": "keyword.operator",
923− "@default": "operator"
924− }
925− }
929+ "@default": "operator",
930+ },
931+ },
926932 ],
927933
928934 ["[0-9]+\\.[0-9]+([eE][\\-+]?[0-9]+)?", "number.float"],
@@ -936,57 +942,57 @@ exports.purescriptSyntax = {
936942 ["(')(@escapes)(')", ["string", "string.escape", "string"]],
937943 ["'", "string.invalid"],
938944
939− ["^[ ]*#.*", "namespace"]
945+ ["^[ ]*#.*", "namespace"],
940946 ],
941947
942948 whitespace: [
943949 ["[ \\r\\n]+", ""],
944950 ["{-", "comment", "@comment"],
945− ["--.*$", "comment"]
951+ ["--.*$", "comment"],
946952 ],
947953
948954 comment: [
949955 ["[^\\{\\-]+", "comment"],
950956 ["{-", "comment", "@push"],
951957 ["-}", "comment", "@pop"],
952− ["[\\{\\-]", "comment"]
958+ ["[\\{\\-]", "comment"],
953959 ],
954960
955961 string: [
956962 ['[^\\\\"]+', "string"],
957963 ["@escapes", "string.escape"],
958964 ["\\\\.", "string.escape.invalid"],
959− ['"', { token: "string.quote", bracket: "@close", next: "@pop" }]
965+ ['"', { token: "string.quote", bracket: "@close", next: "@pop" }],
960966 ],
961967
962968 type_type: [
963969 ["\\=", "keyword"],
964970 ["^\\s*(?!\\-\\-|\\{\\-)[^\\s]", { token: "@rematch", next: "@pop" }],
965− { include: "@type" }
971+ { include: "@type" },
966972 ],
967973
968974 type_data: [
969975 ["([=|])(\\s*)([A-Z]@idchars)", ["keyword.operator", "", "constructor"]],
970976 ["^\\s*$", { token: "", next: "@pop" }],
971− { include: "@type" }
977+ { include: "@type" },
972978 ],
973979
974980 type_line: [
975981 ["^\\s*(?!\\-\\-|\\{\\-)[_a-z]", { token: "@rematch", next: "@pop" }],
976982 ["[^=]*=", { token: "@rematch", next: "@pop" }],
977− { include: "@type" }
983+ { include: "@type" },
978984 ],
979985
980986 type: [
981987 ["[(\\[]", { token: "@brackets.type" }, "@type_nested"],
982− { include: "@type_content" }
988+ { include: "@type_content" },
983989 ],
984990
985991 type_nested: [
986992 ["[)\\]]", { token: "@brackets.type" }, "@pop"],
987993 ["[(\\[]", { token: "@brackets.type" }, "@push"],
988994 [",", "delimiter.type"],
989− { include: "@type_content" }
995+ { include: "@type_content" },
990996 ],
991997
992998 type_content: [
@@ -997,7 +1003,7 @@ exports.purescriptSyntax = {
9971003
9981004 [
9991005 "((?:[A-Z]@idchars\\.)*)([A-Z]@idchars)",
1000− ["type.identifier.namespace", "type.identifier"]
1006+ ["type.identifier.namespace", "type.identifier"],
10011007 ],
10021008 [
10031009 "((?:[A-Z]@idchars\\.)*)([a-z]@idchars)",
@@ -1005,13 +1011,13 @@ exports.purescriptSyntax = {
10051011 cases: {
10061012 "@typeKeywords": ["type.identifier.namespace", "type.keyword"],
10071013 "@keywords": { token: "@rematch", next: "@pop" },
1008− "@default": ["type.identifier.namespace", "type.identifier"]
1009− }
1010− }
1014+ "@default": ["type.identifier.namespace", "type.identifier"],
1015+ },
1016+ },
10111017 ],
10121018
10131019 ["::|->|[\\.:|]", "type.operator"],
1014− ["[\\s\\S]", "@rematch", "@pop"]
1015− ]
1016− }
1020+ ["[\\s\\S]", "@rematch", "@pop"],
1021+ ],
1022+ },
10171023};