@oxide/design-system 6.5.4 → 6.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,17 @@
1
+ import {
2
+ oxide_syntax_default,
3
+ oxql_tmLanguage_default,
4
+ p4_tmLanguage_default
5
+ } from "../../../chunk-BCMM44R6.js";
1
6
  import {
2
7
  titleCase
3
8
  } from "../../../chunk-7VKKHVZC.js";
4
9
  import {
5
10
  DirectionRightIcon_default,
6
- Link16Icon_default
11
+ Error12Icon_default,
12
+ Info12Icon_default,
13
+ Link16Icon_default,
14
+ Warning12Icon_default
7
15
  } from "../../../chunk-H5ZEQGTH.js";
8
16
 
9
17
  // components/src/asciidoc/index.tsx
@@ -15,6 +23,7 @@ import {
15
23
 
16
24
  // components/src/asciidoc/Admonition.tsx
17
25
  import { Content, RenderInline } from "@oxide/react-asciidoc";
26
+ import cn from "classnames";
18
27
  import { jsx, jsxs } from "react/jsx-runtime";
19
28
  var themeForAdmonition = {
20
29
  note: "green-theme",
@@ -28,62 +37,32 @@ var Admonition = ({ node }) => {
28
37
  const theme = themeForAdmonition[attrs2.name] || "";
29
38
  let icon;
30
39
  if (attrs2.name === "caution") {
31
- icon = /* @__PURE__ */ jsx(Error12, {});
40
+ icon = /* @__PURE__ */ jsx(Error12Icon_default, {});
32
41
  } else if (attrs2.name === "warning") {
33
- icon = /* @__PURE__ */ jsx(Warning12, {});
42
+ icon = /* @__PURE__ */ jsx(Warning12Icon_default, {});
34
43
  } else {
35
- icon = /* @__PURE__ */ jsx(Error12, { className: "rotate-180" });
44
+ icon = /* @__PURE__ */ jsx(Info12Icon_default, {});
36
45
  }
37
- return /* @__PURE__ */ jsxs("div", { className: `admonitionblock ${attrs2.name} ${theme}`, children: [
38
- /* @__PURE__ */ jsx("div", { className: "admonition-icon", children: icon }),
39
- /* @__PURE__ */ jsxs("div", { className: "admonition-content content", children: [
40
- /* @__PURE__ */ jsx("div", { children: titleCase(attrs2.name.toString()) }),
41
- /* @__PURE__ */ jsxs("div", { children: [
42
- node.titleInlines && /* @__PURE__ */ jsx("div", { className: "admonition-title", children: /* @__PURE__ */ jsx(RenderInline, { nodes: node.titleInlines }) }),
43
- node.inlines && /* @__PURE__ */ jsx(RenderInline, { nodes: node.inlines }),
44
- /* @__PURE__ */ jsx(Content, { blocks: node.blocks })
45
- ] })
46
- ] })
47
- ] });
46
+ return /* @__PURE__ */ jsxs(
47
+ "div",
48
+ {
49
+ id: node.id || void 0,
50
+ className: cn("admonitionblock", attrs2.name, theme, node.role),
51
+ ...node.lineNumber ? { "data-lineno": node.lineNumber } : {},
52
+ children: [
53
+ /* @__PURE__ */ jsx("div", { className: "admonition-icon", children: icon }),
54
+ /* @__PURE__ */ jsxs("div", { className: "admonition-content content", children: [
55
+ /* @__PURE__ */ jsx("div", { children: titleCase(attrs2.name.toString()) }),
56
+ /* @__PURE__ */ jsxs("div", { children: [
57
+ node.titleInlines && /* @__PURE__ */ jsx("div", { className: "admonition-title", children: /* @__PURE__ */ jsx(RenderInline, { nodes: node.titleInlines }) }),
58
+ node.inlines && /* @__PURE__ */ jsx(RenderInline, { nodes: node.inlines }),
59
+ /* @__PURE__ */ jsx(Content, { blocks: node.blocks })
60
+ ] })
61
+ ] })
62
+ ]
63
+ }
64
+ );
48
65
  };
49
- var Error12 = ({ className }) => /* @__PURE__ */ jsx(
50
- "svg",
51
- {
52
- width: "12",
53
- height: "12",
54
- viewBox: "0 0 12 12",
55
- xmlns: "http://www.w3.org/2000/svg",
56
- className,
57
- children: /* @__PURE__ */ jsx(
58
- "path",
59
- {
60
- fillRule: "evenodd",
61
- clipRule: "evenodd",
62
- d: "M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm.083-9c.368 0 .667.299.667.667v2.666A.667.667 0 0 1 6.083 7h-.166a.667.667 0 0 1-.667-.667V3.667c0-.368.299-.667.667-.667h.166Zm0 5c.368 0 .667.299.667.667v.166a.667.667 0 0 1-.667.667h-.166a.667.667 0 0 1-.667-.667v-.166c0-.368.299-.667.667-.667h.166Z",
63
- fill: "currentColor"
64
- }
65
- )
66
- }
67
- );
68
- var Warning12 = ({ className }) => /* @__PURE__ */ jsx(
69
- "svg",
70
- {
71
- width: "12",
72
- height: "12",
73
- viewBox: "0 0 12 12",
74
- xmlns: "http://www.w3.org/2000/svg",
75
- className,
76
- children: /* @__PURE__ */ jsx(
77
- "path",
78
- {
79
- fillRule: "evenodd",
80
- clipRule: "evenodd",
81
- d: "M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm.083-9c.368 0 .667.299.667.667v2.666A.667.667 0 0 1 6.083 7h-.166a.667.667 0 0 1-.667-.667V3.667c0-.368.299-.667.667-.667h.166Zm0 5c.368 0 .667.299.667.667v.166a.667.667 0 0 1-.667.667h-.166a.667.667 0 0 1-.667-.667v-.166c0-.368.299-.667.667-.667h.166Z",
82
- fill: "currentColor"
83
- }
84
- )
85
- }
86
- );
87
66
  var Admonition_default = Admonition;
88
67
 
89
68
  // components/src/asciidoc/Section.tsx
@@ -93,7 +72,7 @@ import {
93
72
  parse,
94
73
  RenderInline as RenderInline2
95
74
  } from "@oxide/react-asciidoc";
96
- import cn from "classnames";
75
+ import cn2 from "classnames";
97
76
  import { createElement } from "react";
98
77
  import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
99
78
  var dropAnchorTags = (html) => html?.includes("<a") ? html.replace(/<(?:a\b[^>]*|\/a)>/g, "") : html;
@@ -118,16 +97,16 @@ var Section = ({ node }) => {
118
97
  ] });
119
98
  if (level === 0) {
120
99
  return /* @__PURE__ */ jsxs2(Fragment, { children: [
121
- /* @__PURE__ */ jsx2("h1", { className: cn("sect0", node.role), "data-sectnum": sectNum, children: title }),
100
+ /* @__PURE__ */ jsx2("h1", { className: cn2("sect0", node.role), "data-sectnum": sectNum, children: title }),
122
101
  /* @__PURE__ */ jsx2(Content2, { blocks: node.blocks })
123
102
  ] });
124
103
  } else if (level === 1) {
125
- return /* @__PURE__ */ jsxs2("div", { className: cn("sect1", node.role), children: [
104
+ return /* @__PURE__ */ jsxs2("div", { className: cn2("sect1", node.role), children: [
126
105
  createElement("h2", { "data-sectnum": sectNum }, title),
127
106
  /* @__PURE__ */ jsx2("div", { className: "sectionbody", children: /* @__PURE__ */ jsx2(Content2, { blocks: node.blocks }) })
128
107
  ] });
129
108
  } else {
130
- return /* @__PURE__ */ jsxs2("div", { className: cn(`sect${level}`, node.role), children: [
109
+ return /* @__PURE__ */ jsxs2("div", { className: cn2(`sect${level}`, node.role), children: [
131
110
  createElement(`h${level + 1}`, { "data-sectnum": sectNum }, title),
132
111
  /* @__PURE__ */ jsx2(Content2, { blocks: node.blocks })
133
112
  ] });
@@ -144,7 +123,7 @@ var Table_default = Table;
144
123
  // components/src/asciidoc/TableOfContents.tsx
145
124
  import { parse as parse2 } from "@oxide/react-asciidoc";
146
125
  import * as Accordion from "@radix-ui/react-accordion";
147
- import cn2 from "classnames";
126
+ import cn3 from "classnames";
148
127
  import { Fragment as Fragment2, useCallback, useEffect, useMemo, useRef, useState } from "react";
149
128
  import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
150
129
  var dropAnchors = (html) => html.includes("<a") ? html.replace(/<(?:a\b[^>]*|\/a)>/g, "") : html;
@@ -309,12 +288,12 @@ var DesktopOutline = ({
309
288
  "li",
310
289
  {
311
290
  "data-level": item.level,
312
- className: cn2("text-sans-sm mb-0 list-none", item.level > 2 && "hidden"),
291
+ className: cn3("text-sans-sm mb-0 list-none", item.level > 2 && "hidden"),
313
292
  children: /* @__PURE__ */ jsx4(
314
293
  "a",
315
294
  {
316
295
  href: `#${item.id}`,
317
- className: cn2(
296
+ className: cn3(
318
297
  "block border-l py-[4px] pr-4",
319
298
  activeItem === item.id ? "active text-accent-secondary light:text-default light:border-green-800 border-accent-secondary hover:text-accent hover:light:text-raise" : "text-tertiary border-secondary hover:text-secondary"
320
299
  ),
@@ -330,7 +309,7 @@ var DesktopOutline = ({
330
309
  ] }, item.id));
331
310
  };
332
311
  if (toc && toc.length > 0) {
333
- return /* @__PURE__ */ jsx4("ul", { className: cn2("toc w-(--toc-width)", className), children: renderToc(toc) });
312
+ return /* @__PURE__ */ jsx4("ul", { className: cn3("toc w-(--toc-width)", className), children: renderToc(toc) });
334
313
  }
335
314
  return null;
336
315
  };
@@ -346,13 +325,13 @@ var SmallScreenOutline = ({
346
325
  "li",
347
326
  {
348
327
  "data-level": item.level,
349
- className: cn2("text-sans-sm list-none", item.level > 2 && "hidden"),
328
+ className: cn3("text-sans-sm list-none", item.level > 2 && "hidden"),
350
329
  children: /* @__PURE__ */ jsx4(
351
330
  "a",
352
331
  {
353
332
  href: `#${item.id}`,
354
333
  onClick: () => setValue(""),
355
- className: cn2(
334
+ className: cn3(
356
335
  "block border-l py-[4px]",
357
336
  activeItem === item.id ? "active text-accent-secondary light:text-default light:border-green-800 border-accent-secondary hover:text-accent" : "text-tertiary border-secondary hover:text-secondary"
358
337
  ),
@@ -372,7 +351,7 @@ var SmallScreenOutline = ({
372
351
  Accordion.Root,
373
352
  {
374
353
  type: "single",
375
- className: cn2(
354
+ className: cn3(
376
355
  "toc bg-default border-secondary sticky top-[calc(var(--header-height)-1px)] z-10 -mt-px mb-10 block w-full border-t border-b print:hidden",
377
356
  className
378
357
  ),
@@ -432,1628 +411,33 @@ import {
432
411
  bundledLanguages,
433
412
  createHighlighter
434
413
  } from "shiki";
435
-
436
- // components/src/asciidoc/langs/oxql.tmLanguage.json
437
- var oxql_tmLanguage_default = {
438
- $schema: "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
439
- name: "oxql",
440
- repository: {
441
- keywords: {
442
- patterns: [
443
- {
444
- name: "keyword.control.oxql",
445
- match: "\\b(if|while|for|return)\\b"
446
- }
447
- ]
448
- },
449
- strings: {
450
- name: "string.quoted.double.oxql",
451
- begin: '"',
452
- end: '"',
453
- patterns: [
454
- {
455
- name: "constant.character.escape.oxql",
456
- match: "\\\\."
457
- }
458
- ]
459
- }
460
- },
461
- scopeName: "source.oxql",
462
- patterns: [
463
- {
464
- name: "keyword.control.oxql",
465
- match: "\\b(get|join|align|filter|group_by)\\b"
466
- },
467
- {
468
- name: "string.quoted.double.oxql",
469
- begin: '"',
470
- end: '"',
471
- patterns: [
472
- {
473
- name: "constant.character.escape.oxql",
474
- match: "\\\\."
475
- }
476
- ]
477
- },
478
- {
479
- name: "constant.numeric.oxql",
480
- match: "\\b\\d+[smhdw]\\b"
481
- },
482
- {
483
- name: "constant.numeric.datetime.oxql",
484
- match: "@\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}"
485
- },
486
- {
487
- name: "constant.numeric.function.oxql",
488
- match: "@now\\(\\)"
489
- },
490
- {
491
- name: "constant.numeric.oxql",
492
- match: "\\b\\d+\\b"
493
- },
494
- {
495
- name: "comment.block.oxql",
496
- begin: "/\\*",
497
- end: "\\*/"
498
- },
499
- {
500
- name: "comment.line.double-slash.oxql",
501
- match: "//.*$"
502
- },
503
- {
504
- name: "keyword.operator.oxql",
505
- match: "\\|"
506
- }
507
- ]
508
- };
509
-
510
- // components/src/asciidoc/langs/p4.tmLanguage.json
511
- var p4_tmLanguage_default = {
512
- $schema: "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
513
- name: "p4",
514
- scopeName: "source.p4",
515
- repository: {
516
- comment: {
517
- patterns: [
518
- {
519
- name: "comment.line.double-slash.p4",
520
- match: "//.*$"
521
- },
522
- {
523
- name: "comment.block.p4",
524
- begin: "/\\*",
525
- end: "\\*/"
526
- }
527
- ]
528
- },
529
- keywords: {
530
- patterns: [
531
- {
532
- name: "constant.language.p4",
533
- match: "\\b(?:false|true)\\b"
534
- },
535
- {
536
- name: "keyword.control.p4",
537
- match: "\\b(?:default_action|transition|counters|NoAction|optional|actions|control|default|package|ternary|typedef|action|extern|header|meters|parser|return|select|struct|apply|const|exact|inout|range|state|table|else|size|key|lpm|out|if|in|_)\\b"
538
- },
539
- {
540
- name: "storage.type.p4",
541
- match: "\\b(?:packet_out|packet_in|varbit|error|tuple|bool|bit|int)\\b"
542
- }
543
- ]
544
- }
545
- },
546
- patterns: [
547
- {
548
- name: "keyword.control.directive.p4",
549
- match: "^\\s*#\\s*\\w+"
550
- },
551
- {
552
- include: "#comment"
553
- },
554
- {
555
- name: "string.quoted.double.p4",
556
- begin: '"',
557
- end: '"',
558
- patterns: [
559
- {
560
- name: "constant.character.escape.p4",
561
- match: "\\\\."
562
- }
563
- ]
564
- },
565
- {
566
- match: "(@)([A-Za-z_]\\w*)",
567
- captures: {
568
- "1": {
569
- name: "punctuation.definition.annotation.p4"
570
- },
571
- "2": {
572
- name: "storage.type.annotation.p4"
573
- }
574
- }
575
- },
576
- {
577
- name: "storage.type.p4",
578
- match: "\\b(?:bit|varbit)\\s*<\\s*\\d+\\s*>|\\btuple\\s*<(?:[^<>]|<[^>]*>)*>"
579
- },
580
- {
581
- name: "constant.numeric.p4",
582
- match: "\\b(?:\\d+w0x[0-9a-fA-F]+|\\d+w\\d+|0x[0-9a-fA-F]+|\\d+)\\b"
583
- },
584
- {
585
- match: "\\b(typedef|struct|header|extern)\\s+([A-Za-z_]\\w*)",
586
- captures: {
587
- "1": {
588
- name: "keyword.control.p4"
589
- },
590
- "2": {
591
- name: "storage.type.p4"
592
- }
593
- }
594
- },
595
- {
596
- match: "\\b(table|parser|control|state|package)\\s+([A-Za-z_]\\w*)",
597
- captures: {
598
- "1": {
599
- name: "keyword.control.p4"
600
- },
601
- "2": {
602
- name: "entity.name.type.p4"
603
- }
604
- }
605
- },
606
- {
607
- match: "\\b(action)\\s+([A-Za-z_]\\w*)",
608
- captures: {
609
- "1": {
610
- name: "keyword.control.p4"
611
- },
612
- "2": {
613
- name: "entity.name.function.p4"
614
- }
615
- }
616
- },
617
- {
618
- name: "storage.type.p4",
619
- match: "\\b[A-Za-z_]\\w*_[th]\\b"
620
- },
621
- {
622
- begin: "\\b(actions)\\s*=\\s*\\{",
623
- end: "\\}",
624
- beginCaptures: {
625
- "1": {
626
- name: "keyword.control.p4"
627
- }
628
- },
629
- patterns: [
630
- {
631
- include: "#comment"
632
- },
633
- {
634
- include: "#keywords"
635
- },
636
- {
637
- name: "entity.name.function.p4",
638
- match: "\\b[A-Za-z_]\\w*\\b"
639
- }
640
- ]
641
- },
642
- {
643
- include: "#keywords"
644
- },
645
- {
646
- match: "(\\.)([A-Za-z_]\\w*)(?=\\s*\\()",
647
- captures: {
648
- "1": {
649
- name: "punctuation.accessor.p4"
650
- },
651
- "2": {
652
- name: "entity.name.function.p4"
653
- }
654
- }
655
- },
656
- {
657
- name: "entity.name.function.p4",
658
- match: "(?<!\\.)\\b[A-Za-z_]\\w*(?=\\s*\\()"
659
- }
660
- ]
661
- };
662
-
663
- // components/src/asciidoc/oxide-syntax.json
664
- var oxide_syntax_default = {
665
- name: "Oxide Dark",
666
- colors: {
667
- "editor.background": "var(--syntax-bg)",
668
- "editor.foreground": "var(--syntax-fg)"
669
- },
670
- tokenColors: [
671
- {
672
- scope: [
673
- "text",
674
- "source",
675
- "variable.other.readwrite",
676
- "punctuation.definition.variable"
677
- ],
678
- settings: {
679
- foreground: "var(--syntax-fg)"
680
- }
681
- },
682
- {
683
- scope: "punctuation",
684
- settings: {
685
- foreground: "var(--syntax-comment)",
686
- fontStyle: ""
687
- }
688
- },
689
- {
690
- scope: ["comment", "punctuation.definition.comment"],
691
- settings: {
692
- foreground: "var(--syntax-comment)"
693
- }
694
- },
695
- {
696
- scope: ["string", "punctuation.definition.string"],
697
- settings: {
698
- foreground: "var(--syntax-string)"
699
- }
700
- },
701
- {
702
- scope: "constant.character.escape",
703
- settings: {
704
- foreground: "var(--syntax-escape)"
705
- }
706
- },
707
- {
708
- scope: [
709
- "constant.numeric",
710
- "variable.other.constant",
711
- "entity.name.constant",
712
- "constant.language.boolean",
713
- "constant.language.false",
714
- "constant.language.true",
715
- "keyword.other.unit.user-defined",
716
- "keyword.other.unit.suffix.floating-point"
717
- ],
718
- settings: {
719
- foreground: "var(--syntax-number)"
720
- }
721
- },
722
- {
723
- scope: [
724
- "keyword",
725
- "keyword.operator.word",
726
- "keyword.operator.new",
727
- "variable.language.super",
728
- "support.type.primitive",
729
- "storage.type",
730
- "storage.modifier",
731
- "punctuation.definition.keyword"
732
- ],
733
- settings: {
734
- foreground: "var(--syntax-keyword)",
735
- fontStyle: ""
736
- }
737
- },
738
- {
739
- scope: "entity.name.tag.documentation",
740
- settings: {
741
- foreground: "var(--syntax-keyword)"
742
- }
743
- },
744
- {
745
- scope: [
746
- "keyword.operator",
747
- "punctuation.accessor",
748
- "punctuation.definition.generic",
749
- "meta.function.closure punctuation.section.parameters",
750
- "punctuation.definition.tag",
751
- "punctuation.separator.key-value"
752
- ],
753
- settings: {
754
- foreground: "var(--syntax-operator)"
755
- }
756
- },
757
- {
758
- scope: [
759
- "entity.name.function",
760
- "meta.function-call.method",
761
- "support.function",
762
- "support.function.misc",
763
- "variable.function"
764
- ],
765
- settings: {
766
- foreground: "var(--syntax-function)"
767
- }
768
- },
769
- {
770
- scope: [
771
- "entity.name.class",
772
- "entity.other.inherited-class",
773
- "support.class",
774
- "meta.function-call.constructor",
775
- "entity.name.struct"
776
- ],
777
- settings: {
778
- foreground: "var(--syntax-number)"
779
- }
780
- },
781
- {
782
- scope: "entity.name.enum",
783
- settings: {
784
- foreground: "var(--syntax-number)"
785
- }
786
- },
787
- {
788
- scope: ["meta.enum variable.other.readwrite", "variable.other.enummember"],
789
- settings: {
790
- foreground: "var(--syntax-operator)"
791
- }
792
- },
793
- {
794
- scope: "meta.property.object",
795
- settings: {
796
- foreground: "var(--syntax-operator)"
797
- }
798
- },
799
- {
800
- scope: ["meta.type", "meta.type-alias", "support.type", "entity.name.type"],
801
- settings: {
802
- foreground: "var(--syntax-number)"
803
- }
804
- },
805
- {
806
- scope: [
807
- "meta.annotation variable.function",
808
- "meta.annotation variable.annotation.function",
809
- "meta.annotation punctuation.definition.annotation",
810
- "meta.decorator",
811
- "punctuation.decorator"
812
- ],
813
- settings: {
814
- foreground: "var(--syntax-number)"
815
- }
816
- },
817
- {
818
- scope: ["variable.parameter", "meta.function.parameters"],
819
- settings: {
820
- foreground: "var(--syntax-parameter)"
821
- }
822
- },
823
- {
824
- scope: ["constant.language", "support.function.builtin"],
825
- settings: {
826
- foreground: "var(--syntax-builtin)"
827
- }
828
- },
829
- {
830
- scope: "entity.other.attribute-name.documentation",
831
- settings: {
832
- foreground: "var(--syntax-builtin)"
833
- }
834
- },
835
- {
836
- scope: ["keyword.control.directive", "punctuation.definition.directive"],
837
- settings: {
838
- foreground: "var(--syntax-number)"
839
- }
840
- },
841
- {
842
- scope: "punctuation.definition.typeparameters",
843
- settings: {
844
- foreground: "var(--syntax-function)"
845
- }
846
- },
847
- {
848
- scope: "entity.name.namespace",
849
- settings: {
850
- foreground: "var(--syntax-number)"
851
- }
852
- },
853
- {
854
- scope: "support.type.property-name.css",
855
- settings: {
856
- foreground: "var(--syntax-function)",
857
- fontStyle: ""
858
- }
859
- },
860
- {
861
- scope: [
862
- "variable.language.this",
863
- "variable.language.this punctuation.definition.variable"
864
- ],
865
- settings: {
866
- foreground: "var(--syntax-builtin)"
867
- }
868
- },
869
- {
870
- scope: "variable.object.property",
871
- settings: {
872
- foreground: "var(--syntax-fg)"
873
- }
874
- },
875
- {
876
- scope: ["string.template variable", "string variable"],
877
- settings: {
878
- foreground: "var(--syntax-fg)"
879
- }
880
- },
881
- {
882
- scope: "keyword.operator.new",
883
- settings: {
884
- fontStyle: "bold"
885
- }
886
- },
887
- {
888
- scope: "storage.modifier.specifier.extern.cpp",
889
- settings: {
890
- foreground: "var(--syntax-keyword)"
891
- }
892
- },
893
- {
894
- scope: [
895
- "entity.name.scope-resolution.template.call.cpp",
896
- "entity.name.scope-resolution.parameter.cpp",
897
- "entity.name.scope-resolution.cpp",
898
- "entity.name.scope-resolution.function.definition.cpp"
899
- ],
900
- settings: {
901
- foreground: "var(--syntax-number)"
902
- }
903
- },
904
- {
905
- scope: "storage.type.class.doxygen",
906
- settings: {
907
- fontStyle: ""
908
- }
909
- },
910
- {
911
- scope: ["storage.modifier.reference.cpp"],
912
- settings: {
913
- foreground: "var(--syntax-operator)"
914
- }
915
- },
916
- {
917
- scope: "meta.interpolation.cs",
918
- settings: {
919
- foreground: "var(--syntax-fg)"
920
- }
921
- },
922
- {
923
- scope: "comment.block.documentation.cs",
924
- settings: {
925
- foreground: "var(--syntax-fg)"
926
- }
927
- },
928
- {
929
- scope: [
930
- "source.css entity.other.attribute-name.class.css",
931
- "entity.other.attribute-name.parent-selector.css punctuation.definition.entity.css"
932
- ],
933
- settings: {
934
- foreground: "var(--syntax-number)"
935
- }
936
- },
937
- {
938
- scope: "punctuation.separator.operator.css",
939
- settings: {
940
- foreground: "var(--syntax-operator)"
941
- }
942
- },
943
- {
944
- scope: "source.css entity.other.attribute-name.pseudo-class",
945
- settings: {
946
- foreground: "var(--syntax-operator)"
947
- }
948
- },
949
- {
950
- scope: "source.css constant.other.unicode-range",
951
- settings: {
952
- foreground: "var(--syntax-number)"
953
- }
954
- },
955
- {
956
- scope: "source.css variable.parameter.url",
957
- settings: {
958
- foreground: "var(--syntax-operator)",
959
- fontStyle: ""
960
- }
961
- },
962
- {
963
- scope: ["support.type.vendored.property-name"],
964
- settings: {
965
- foreground: "var(--syntax-function)"
966
- }
967
- },
968
- {
969
- scope: [
970
- "source.css meta.property-value variable",
971
- "source.css meta.property-value variable.other.less",
972
- "source.css meta.property-value variable.other.less punctuation.definition.variable.less",
973
- "meta.definition.variable.scss"
974
- ],
975
- settings: {
976
- foreground: "var(--syntax-parameter)"
977
- }
978
- },
979
- {
980
- scope: [
981
- "source.css meta.property-list variable",
982
- "meta.property-list variable.other.less",
983
- "meta.property-list variable.other.less punctuation.definition.variable.less"
984
- ],
985
- settings: {
986
- foreground: "var(--syntax-function)"
987
- }
988
- },
989
- {
990
- scope: "keyword.other.unit.percentage.css",
991
- settings: {
992
- foreground: "var(--syntax-number)"
993
- }
994
- },
995
- {
996
- scope: "source.css meta.attribute-selector",
997
- settings: {
998
- foreground: "var(--syntax-operator)"
999
- }
1000
- },
1001
- {
1002
- scope: [
1003
- "keyword.other.definition.ini",
1004
- "punctuation.support.type.property-name.json",
1005
- "support.type.property-name.json",
1006
- "punctuation.support.type.property-name.toml",
1007
- "support.type.property-name.toml",
1008
- "entity.name.tag.yaml",
1009
- "punctuation.support.type.property-name.yaml",
1010
- "support.type.property-name.yaml"
1011
- ],
1012
- settings: {
1013
- foreground: "var(--syntax-function)",
1014
- fontStyle: ""
1015
- }
1016
- },
1017
- {
1018
- scope: ["constant.language.json", "constant.language.yaml"],
1019
- settings: {
1020
- foreground: "var(--syntax-number)"
1021
- }
1022
- },
1023
- {
1024
- scope: ["entity.name.type.anchor.yaml", "variable.other.alias.yaml"],
1025
- settings: {
1026
- foreground: "var(--syntax-number)",
1027
- fontStyle: ""
1028
- }
1029
- },
1030
- {
1031
- scope: ["support.type.property-name.table", "entity.name.section.group-title.ini"],
1032
- settings: {
1033
- foreground: "var(--syntax-number)"
1034
- }
1035
- },
1036
- {
1037
- scope: "constant.other.time.datetime.offset.toml",
1038
- settings: {
1039
- foreground: "var(--syntax-escape)"
1040
- }
1041
- },
1042
- {
1043
- scope: ["punctuation.definition.anchor.yaml", "punctuation.definition.alias.yaml"],
1044
- settings: {
1045
- foreground: "var(--syntax-escape)"
1046
- }
1047
- },
1048
- {
1049
- scope: "entity.other.document.begin.yaml",
1050
- settings: {
1051
- foreground: "var(--syntax-escape)"
1052
- }
1053
- },
1054
- {
1055
- scope: "markup.changed.diff",
1056
- settings: {
1057
- foreground: "var(--syntax-number)"
1058
- }
1059
- },
1060
- {
1061
- scope: [
1062
- "meta.diff.header.from-file",
1063
- "meta.diff.header.to-file",
1064
- "punctuation.definition.from-file.diff",
1065
- "punctuation.definition.to-file.diff"
1066
- ],
1067
- settings: {
1068
- foreground: "var(--syntax-function)"
1069
- }
1070
- },
1071
- {
1072
- scope: "markup.inserted.diff",
1073
- settings: {
1074
- foreground: "var(--syntax-operator)"
1075
- }
1076
- },
1077
- {
1078
- scope: "markup.deleted.diff",
1079
- settings: {
1080
- foreground: "var(--syntax-builtin)"
1081
- }
1082
- },
1083
- {
1084
- scope: ["variable.other.env"],
1085
- settings: {
1086
- foreground: "var(--syntax-function)"
1087
- }
1088
- },
1089
- {
1090
- scope: ["string.quoted variable.other.env"],
1091
- settings: {
1092
- foreground: "var(--syntax-fg)"
1093
- }
1094
- },
1095
- {
1096
- scope: "support.function.builtin.gdscript",
1097
- settings: {
1098
- foreground: "var(--syntax-function)"
1099
- }
1100
- },
1101
- {
1102
- scope: "constant.language.gdscript",
1103
- settings: {
1104
- foreground: "var(--syntax-number)"
1105
- }
1106
- },
1107
- {
1108
- scope: "comment meta.annotation.go",
1109
- settings: {
1110
- foreground: "var(--syntax-parameter)"
1111
- }
1112
- },
1113
- {
1114
- scope: "comment meta.annotation.parameters.go",
1115
- settings: {
1116
- foreground: "var(--syntax-number)"
1117
- }
1118
- },
1119
- {
1120
- scope: "constant.language.go",
1121
- settings: {
1122
- foreground: "var(--syntax-number)"
1123
- }
1124
- },
1125
- {
1126
- scope: "variable.graphql",
1127
- settings: {
1128
- foreground: "var(--syntax-fg)"
1129
- }
1130
- },
1131
- {
1132
- scope: "string.unquoted.alias.graphql",
1133
- settings: {
1134
- foreground: "var(--syntax-string-alias)"
1135
- }
1136
- },
1137
- {
1138
- scope: "constant.character.enum.graphql",
1139
- settings: {
1140
- foreground: "var(--syntax-operator)"
1141
- }
1142
- },
1143
- {
1144
- scope: "meta.objectvalues.graphql constant.object.key.graphql string.unquoted.graphql",
1145
- settings: {
1146
- foreground: "var(--syntax-string-alias)"
1147
- }
1148
- },
1149
- {
1150
- scope: [
1151
- "keyword.other.doctype",
1152
- "meta.tag.sgml.doctype punctuation.definition.tag",
1153
- "meta.tag.metadata.doctype entity.name.tag",
1154
- "meta.tag.metadata.doctype punctuation.definition.tag"
1155
- ],
1156
- settings: {
1157
- foreground: "var(--syntax-keyword)"
1158
- }
1159
- },
1160
- {
1161
- scope: ["entity.name.tag"],
1162
- settings: {
1163
- foreground: "var(--syntax-function)",
1164
- fontStyle: ""
1165
- }
1166
- },
1167
- {
1168
- scope: [
1169
- "text.html constant.character.entity",
1170
- "text.html constant.character.entity punctuation",
1171
- "constant.character.entity.xml",
1172
- "constant.character.entity.xml punctuation",
1173
- "constant.character.entity.js.jsx",
1174
- "constant.charactger.entity.js.jsx punctuation",
1175
- "constant.character.entity.tsx",
1176
- "constant.character.entity.tsx punctuation"
1177
- ],
1178
- settings: {
1179
- foreground: "var(--syntax-builtin)"
1180
- }
1181
- },
1182
- {
1183
- scope: ["entity.other.attribute-name"],
1184
- settings: {
1185
- foreground: "var(--syntax-number)"
1186
- }
1187
- },
1188
- {
1189
- scope: [
1190
- "support.class.component",
1191
- "support.class.component.jsx",
1192
- "support.class.component.tsx",
1193
- "support.class.component.vue"
1194
- ],
1195
- settings: {
1196
- foreground: "var(--syntax-escape)",
1197
- fontStyle: ""
1198
- }
1199
- },
1200
- {
1201
- scope: ["punctuation.definition.annotation", "storage.type.annotation"],
1202
- settings: {
1203
- foreground: "var(--syntax-number)"
1204
- }
1205
- },
1206
- {
1207
- scope: "constant.other.enum.java",
1208
- settings: {
1209
- foreground: "var(--syntax-operator)"
1210
- }
1211
- },
1212
- {
1213
- scope: "storage.modifier.import.java",
1214
- settings: {
1215
- foreground: "var(--syntax-fg)"
1216
- }
1217
- },
1218
- {
1219
- scope: "comment.block.javadoc.java keyword.other.documentation.javadoc.java",
1220
- settings: {
1221
- fontStyle: ""
1222
- }
1223
- },
1224
- {
1225
- scope: "meta.export variable.other.readwrite.js",
1226
- settings: {
1227
- foreground: "var(--syntax-parameter)"
1228
- }
1229
- },
1230
- {
1231
- scope: [
1232
- "variable.other.constant.js",
1233
- "variable.other.constant.ts",
1234
- "variable.other.property.js",
1235
- "variable.other.property.ts"
1236
- ],
1237
- settings: {
1238
- foreground: "var(--syntax-fg)"
1239
- }
1240
- },
1241
- {
1242
- scope: ["variable.other.jsdoc", "comment.block.documentation variable.other"],
1243
- settings: {
1244
- foreground: "var(--syntax-parameter)",
1245
- fontStyle: ""
1246
- }
1247
- },
1248
- {
1249
- scope: "storage.type.class.jsdoc",
1250
- settings: {
1251
- fontStyle: ""
1252
- }
1253
- },
1254
- {
1255
- scope: "support.type.object.console.js",
1256
- settings: {
1257
- foreground: "var(--syntax-fg)"
1258
- }
1259
- },
1260
- {
1261
- scope: ["support.constant.node", "support.type.object.module.js"],
1262
- settings: {
1263
- foreground: "var(--syntax-keyword)"
1264
- }
1265
- },
1266
- {
1267
- scope: "storage.modifier.implements",
1268
- settings: {
1269
- foreground: "var(--syntax-keyword)"
1270
- }
1271
- },
1272
- {
1273
- scope: [
1274
- "constant.language.null.js",
1275
- "constant.language.null.ts",
1276
- "constant.language.undefined.js",
1277
- "constant.language.undefined.ts",
1278
- "support.type.builtin.ts"
1279
- ],
1280
- settings: {
1281
- foreground: "var(--syntax-keyword)"
1282
- }
1283
- },
1284
- {
1285
- scope: "variable.parameter.generic",
1286
- settings: {
1287
- foreground: "var(--syntax-number)"
1288
- }
1289
- },
1290
- {
1291
- scope: ["keyword.declaration.function.arrow.js", "storage.type.function.arrow.ts"],
1292
- settings: {
1293
- foreground: "var(--syntax-operator)"
1294
- }
1295
- },
1296
- {
1297
- scope: "punctuation.decorator.ts",
1298
- settings: {
1299
- foreground: "var(--syntax-function)"
1300
- }
1301
- },
1302
- {
1303
- scope: [
1304
- "keyword.operator.expression.in.js",
1305
- "keyword.operator.expression.in.ts",
1306
- "keyword.operator.expression.infer.ts",
1307
- "keyword.operator.expression.instanceof.js",
1308
- "keyword.operator.expression.instanceof.ts",
1309
- "keyword.operator.expression.is",
1310
- "keyword.operator.expression.keyof.ts",
1311
- "keyword.operator.expression.of.js",
1312
- "keyword.operator.expression.of.ts",
1313
- "keyword.operator.expression.typeof.ts"
1314
- ],
1315
- settings: {
1316
- foreground: "var(--syntax-keyword)"
1317
- }
1318
- },
1319
- {
1320
- scope: "support.function.macro.julia",
1321
- settings: {
1322
- foreground: "var(--syntax-operator)"
1323
- }
1324
- },
1325
- {
1326
- scope: "constant.language.julia",
1327
- settings: {
1328
- foreground: "var(--syntax-number)"
1329
- }
1330
- },
1331
- {
1332
- scope: "constant.other.symbol.julia",
1333
- settings: {
1334
- foreground: "var(--syntax-parameter)"
1335
- }
1336
- },
1337
- {
1338
- scope: "text.tex keyword.control.preamble",
1339
- settings: {
1340
- foreground: "var(--syntax-operator)"
1341
- }
1342
- },
1343
- {
1344
- scope: "text.tex support.function.be",
1345
- settings: {
1346
- foreground: "var(--syntax-function)"
1347
- }
1348
- },
1349
- {
1350
- scope: "constant.other.general.math.tex",
1351
- settings: {
1352
- foreground: "var(--syntax-string-alias)"
1353
- }
1354
- },
1355
- {
1356
- scope: "comment.line.double-dash.documentation.lua storage.type.annotation.lua",
1357
- settings: {
1358
- foreground: "var(--syntax-keyword)",
1359
- fontStyle: ""
1360
- }
1361
- },
1362
- {
1363
- scope: [
1364
- "comment.line.double-dash.documentation.lua entity.name.variable.lua",
1365
- "comment.line.double-dash.documentation.lua variable.lua"
1366
- ],
1367
- settings: {
1368
- foreground: "var(--syntax-fg)"
1369
- }
1370
- },
1371
- {
1372
- scope: [
1373
- "heading.1.markdown punctuation.definition.heading.markdown",
1374
- "heading.1.markdown",
1375
- "heading.1.quarto punctuation.definition.heading.quarto",
1376
- "heading.1.quarto",
1377
- "markup.heading.atx.1.mdx",
1378
- "markup.heading.atx.1.mdx punctuation.definition.heading.mdx",
1379
- "markup.heading.setext.1.markdown",
1380
- "markup.heading.heading-0.asciidoc"
1381
- ],
1382
- settings: {
1383
- foreground: "var(--syntax-builtin)"
1384
- }
1385
- },
1386
- {
1387
- scope: [
1388
- "heading.2.markdown punctuation.definition.heading.markdown",
1389
- "heading.2.markdown",
1390
- "heading.2.quarto punctuation.definition.heading.quarto",
1391
- "heading.2.quarto",
1392
- "markup.heading.atx.2.mdx",
1393
- "markup.heading.atx.2.mdx punctuation.definition.heading.mdx",
1394
- "markup.heading.setext.2.markdown",
1395
- "markup.heading.heading-1.asciidoc"
1396
- ],
1397
- settings: {
1398
- foreground: "var(--syntax-number)"
1399
- }
1400
- },
1401
- {
1402
- scope: [
1403
- "heading.3.markdown punctuation.definition.heading.markdown",
1404
- "heading.3.markdown",
1405
- "heading.3.quarto punctuation.definition.heading.quarto",
1406
- "heading.3.quarto",
1407
- "markup.heading.atx.3.mdx",
1408
- "markup.heading.atx.3.mdx punctuation.definition.heading.mdx",
1409
- "markup.heading.heading-2.asciidoc"
1410
- ],
1411
- settings: {
1412
- foreground: "var(--syntax-number)"
1413
- }
1414
- },
1415
- {
1416
- scope: [
1417
- "heading.4.markdown punctuation.definition.heading.markdown",
1418
- "heading.4.markdown",
1419
- "heading.4.quarto punctuation.definition.heading.quarto",
1420
- "heading.4.quarto",
1421
- "markup.heading.atx.4.mdx",
1422
- "markup.heading.atx.4.mdx punctuation.definition.heading.mdx",
1423
- "markup.heading.heading-3.asciidoc"
1424
- ],
1425
- settings: {
1426
- foreground: "var(--syntax-operator)"
1427
- }
1428
- },
1429
- {
1430
- scope: [
1431
- "heading.5.markdown punctuation.definition.heading.markdown",
1432
- "heading.5.markdown",
1433
- "heading.5.quarto punctuation.definition.heading.quarto",
1434
- "heading.5.quarto",
1435
- "markup.heading.atx.5.mdx",
1436
- "markup.heading.atx.5.mdx punctuation.definition.heading.mdx",
1437
- "markup.heading.heading-4.asciidoc"
1438
- ],
1439
- settings: {
1440
- foreground: "var(--syntax-function)"
1441
- }
1442
- },
1443
- {
1444
- scope: [
1445
- "heading.6.markdown punctuation.definition.heading.markdown",
1446
- "heading.6.markdown",
1447
- "heading.6.quarto punctuation.definition.heading.quarto",
1448
- "heading.6.quarto",
1449
- "markup.heading.atx.6.mdx",
1450
- "markup.heading.atx.6.mdx punctuation.definition.heading.mdx",
1451
- "markup.heading.heading-5.asciidoc"
1452
- ],
1453
- settings: {
1454
- foreground: "var(--syntax-keyword)"
1455
- }
1456
- },
1457
- {
1458
- scope: "markup.bold",
1459
- settings: {
1460
- foreground: "var(--syntax-builtin)",
1461
- fontStyle: "bold"
1462
- }
1463
- },
1464
- {
1465
- scope: "markup.italic",
1466
- settings: {
1467
- foreground: "var(--syntax-builtin)"
1468
- }
1469
- },
1470
- {
1471
- scope: "markup.strikethrough",
1472
- settings: {
1473
- foreground: "var(--syntax-comment)",
1474
- fontStyle: "strikethrough"
1475
- }
1476
- },
1477
- {
1478
- scope: ["punctuation.definition.link", "markup.underline.link"],
1479
- settings: {
1480
- foreground: "var(--syntax-function)"
1481
- }
1482
- },
1483
- {
1484
- scope: [
1485
- "text.html.markdown punctuation.definition.link.title",
1486
- "text.html.quarto punctuation.definition.link.title",
1487
- "string.other.link.title.markdown",
1488
- "string.other.link.title.quarto",
1489
- "markup.link",
1490
- "punctuation.definition.constant.markdown",
1491
- "punctuation.definition.constant.quarto",
1492
- "constant.other.reference.link.markdown",
1493
- "constant.other.reference.link.quarto",
1494
- "markup.substitution.attribute-reference"
1495
- ],
1496
- settings: {
1497
- foreground: "var(--syntax-blue-pale)"
1498
- }
1499
- },
1500
- {
1501
- scope: [
1502
- "punctuation.definition.raw.markdown",
1503
- "punctuation.definition.raw.quarto",
1504
- "markup.inline.raw.string.markdown",
1505
- "markup.inline.raw.string.quarto",
1506
- "markup.raw.block.markdown",
1507
- "markup.raw.block.quarto"
1508
- ],
1509
- settings: {
1510
- foreground: "var(--syntax-operator)"
1511
- }
1512
- },
1513
- {
1514
- scope: "fenced_code.block.language",
1515
- settings: {
1516
- foreground: "var(--syntax-function)"
1517
- }
1518
- },
1519
- {
1520
- scope: [
1521
- "markup.fenced_code.block punctuation.definition",
1522
- "markup.raw support.asciidoc"
1523
- ],
1524
- settings: {
1525
- foreground: "var(--syntax-comment)"
1526
- }
1527
- },
1528
- {
1529
- scope: ["markup.quote", "punctuation.definition.quote.begin"],
1530
- settings: {
1531
- foreground: "var(--syntax-escape)"
1532
- }
1533
- },
1534
- {
1535
- scope: "meta.separator.markdown",
1536
- settings: {
1537
- foreground: "var(--syntax-operator)"
1538
- }
1539
- },
1540
- {
1541
- scope: [
1542
- "punctuation.definition.list.begin.markdown",
1543
- "punctuation.definition.list.begin.quarto",
1544
- "markup.list.bullet"
1545
- ],
1546
- settings: {
1547
- foreground: "var(--syntax-operator)"
1548
- }
1549
- },
1550
- {
1551
- scope: "markup.heading.quarto",
1552
- settings: {
1553
- fontStyle: "bold"
1554
- }
1555
- },
1556
- {
1557
- scope: [
1558
- "entity.other.attribute-name.multipart.nix",
1559
- "entity.other.attribute-name.single.nix"
1560
- ],
1561
- settings: {
1562
- foreground: "var(--syntax-function)"
1563
- }
1564
- },
1565
- {
1566
- scope: "variable.parameter.name.nix",
1567
- settings: {
1568
- foreground: "var(--syntax-fg)",
1569
- fontStyle: ""
1570
- }
1571
- },
1572
- {
1573
- scope: "meta.embedded variable.parameter.name.nix",
1574
- settings: {
1575
- foreground: "var(--syntax-blue-pale)",
1576
- fontStyle: ""
1577
- }
1578
- },
1579
- {
1580
- scope: "string.unquoted.path.nix",
1581
- settings: {
1582
- foreground: "var(--syntax-escape)",
1583
- fontStyle: ""
1584
- }
1585
- },
1586
- {
1587
- scope: ["support.attribute.builtin", "meta.attribute.php"],
1588
- settings: {
1589
- foreground: "var(--syntax-number)"
1590
- }
1591
- },
1592
- {
1593
- scope: "meta.function.parameters.php punctuation.definition.variable.php",
1594
- settings: {
1595
- foreground: "var(--syntax-parameter)"
1596
- }
1597
- },
1598
- {
1599
- scope: "constant.language.php",
1600
- settings: {
1601
- foreground: "var(--syntax-keyword)"
1602
- }
1603
- },
1604
- {
1605
- scope: "text.html.php support.function",
1606
- settings: {
1607
- foreground: "var(--syntax-function)"
1608
- }
1609
- },
1610
- {
1611
- scope: "keyword.other.phpdoc.php",
1612
- settings: {
1613
- fontStyle: ""
1614
- }
1615
- },
1616
- {
1617
- scope: ["support.variable.magic.python", "meta.function-call.arguments.python"],
1618
- settings: {
1619
- foreground: "var(--syntax-fg)"
1620
- }
1621
- },
1622
- {
1623
- scope: ["support.function.magic.python"],
1624
- settings: {
1625
- foreground: "var(--syntax-function)"
1626
- }
1627
- },
1628
- {
1629
- scope: [
1630
- "variable.parameter.function.language.special.self.python",
1631
- "variable.language.special.self.python"
1632
- ],
1633
- settings: {
1634
- foreground: "var(--syntax-builtin)"
1635
- }
1636
- },
1637
- {
1638
- scope: ["keyword.control.flow.python", "keyword.operator.logical.python"],
1639
- settings: {
1640
- foreground: "var(--syntax-keyword)"
1641
- }
1642
- },
1643
- {
1644
- scope: "storage.type.function.python",
1645
- settings: {
1646
- foreground: "var(--syntax-keyword)"
1647
- }
1648
- },
1649
- {
1650
- scope: [
1651
- "support.token.decorator.python",
1652
- "meta.function.decorator.identifier.python"
1653
- ],
1654
- settings: {
1655
- foreground: "var(--syntax-function)"
1656
- }
1657
- },
1658
- {
1659
- scope: ["meta.function-call.python"],
1660
- settings: {
1661
- foreground: "var(--syntax-function)"
1662
- }
1663
- },
1664
- {
1665
- scope: [
1666
- "entity.name.function.decorator.python",
1667
- "punctuation.definition.decorator.python"
1668
- ],
1669
- settings: {
1670
- foreground: "var(--syntax-number)"
1671
- }
1672
- },
1673
- {
1674
- scope: "constant.character.format.placeholder.other.python",
1675
- settings: {
1676
- foreground: "var(--syntax-escape)"
1677
- }
1678
- },
1679
- {
1680
- scope: ["support.type.exception.python", "support.function.builtin.python"],
1681
- settings: {
1682
- foreground: "var(--syntax-number)"
1683
- }
1684
- },
1685
- {
1686
- scope: ["support.type.python"],
1687
- settings: {
1688
- foreground: "var(--syntax-number)"
1689
- }
1690
- },
1691
- {
1692
- scope: "constant.language.python",
1693
- settings: {
1694
- foreground: "var(--syntax-keyword)"
1695
- }
1696
- },
1697
- {
1698
- scope: ["meta.indexed-name.python", "meta.item-access.python"],
1699
- settings: {
1700
- foreground: "var(--syntax-parameter)"
1701
- }
1702
- },
1703
- {
1704
- scope: "storage.type.string.python",
1705
- settings: {
1706
- foreground: "var(--syntax-operator)"
1707
- }
1708
- },
1709
- {
1710
- scope: "meta.function.parameters.python",
1711
- settings: {
1712
- fontStyle: ""
1713
- }
1714
- },
1715
- {
1716
- scope: [
1717
- "string.regexp punctuation.definition.string.begin",
1718
- "string.regexp punctuation.definition.string.end"
1719
- ],
1720
- settings: {
1721
- foreground: "var(--syntax-escape)"
1722
- }
1723
- },
1724
- {
1725
- scope: "keyword.control.anchor.regexp",
1726
- settings: {
1727
- foreground: "var(--syntax-keyword)"
1728
- }
1729
- },
1730
- {
1731
- scope: "string.regexp.ts",
1732
- settings: {
1733
- foreground: "var(--syntax-fg)"
1734
- }
1735
- },
1736
- {
1737
- scope: [
1738
- "punctuation.definition.group.regexp",
1739
- "keyword.other.back-reference.regexp"
1740
- ],
1741
- settings: {
1742
- foreground: "var(--syntax-operator)"
1743
- }
1744
- },
1745
- {
1746
- scope: "punctuation.definition.character-class.regexp",
1747
- settings: {
1748
- foreground: "var(--syntax-number)"
1749
- }
1750
- },
1751
- {
1752
- scope: "constant.other.character-class.regexp",
1753
- settings: {
1754
- foreground: "var(--syntax-escape)"
1755
- }
1756
- },
1757
- {
1758
- scope: "constant.other.character-class.range.regexp",
1759
- settings: {
1760
- foreground: "var(--syntax-rose)"
1761
- }
1762
- },
1763
- {
1764
- scope: "keyword.operator.quantifier.regexp",
1765
- settings: {
1766
- foreground: "var(--syntax-operator)"
1767
- }
1768
- },
1769
- {
1770
- scope: "constant.character.numeric.regexp",
1771
- settings: {
1772
- foreground: "var(--syntax-number)"
1773
- }
1774
- },
1775
- {
1776
- scope: [
1777
- "punctuation.definition.group.no-capture.regexp",
1778
- "meta.assertion.look-ahead.regexp",
1779
- "meta.assertion.negative-look-ahead.regexp"
1780
- ],
1781
- settings: {
1782
- foreground: "var(--syntax-function)"
1783
- }
1784
- },
1785
- {
1786
- scope: [
1787
- "meta.annotation.rust",
1788
- "meta.annotation.rust punctuation",
1789
- "meta.attribute.rust",
1790
- "punctuation.definition.attribute.rust"
1791
- ],
1792
- settings: {
1793
- foreground: "var(--syntax-number)"
1794
- }
1795
- },
1796
- {
1797
- scope: [
1798
- "meta.attribute.rust string.quoted.double.rust",
1799
- "meta.attribute.rust string.quoted.single.char.rust"
1800
- ],
1801
- settings: {
1802
- fontStyle: ""
1803
- }
1804
- },
1805
- {
1806
- scope: [
1807
- "entity.name.function.macro.rules.rust",
1808
- "storage.type.module.rust",
1809
- "storage.modifier.rust",
1810
- "storage.type.struct.rust",
1811
- "storage.type.enum.rust",
1812
- "storage.type.trait.rust",
1813
- "storage.type.union.rust",
1814
- "storage.type.impl.rust",
1815
- "storage.type.rust",
1816
- "storage.type.function.rust",
1817
- "storage.type.type.rust"
1818
- ],
1819
- settings: {
1820
- foreground: "var(--syntax-keyword)",
1821
- fontStyle: ""
1822
- }
1823
- },
1824
- {
1825
- scope: "entity.name.type.numeric.rust",
1826
- settings: {
1827
- foreground: "var(--syntax-keyword)",
1828
- fontStyle: ""
1829
- }
1830
- },
1831
- {
1832
- scope: "meta.generic.rust",
1833
- settings: {
1834
- foreground: "var(--syntax-number)"
1835
- }
1836
- },
1837
- {
1838
- scope: "entity.name.impl.rust",
1839
- settings: {
1840
- foreground: "var(--syntax-number)"
1841
- }
1842
- },
1843
- {
1844
- scope: "entity.name.module.rust",
1845
- settings: {
1846
- foreground: "var(--syntax-number)"
1847
- }
1848
- },
1849
- {
1850
- scope: "entity.name.trait.rust",
1851
- settings: {
1852
- foreground: "var(--syntax-number)"
1853
- }
1854
- },
1855
- {
1856
- scope: "storage.type.source.rust",
1857
- settings: {
1858
- foreground: "var(--syntax-number)"
1859
- }
1860
- },
1861
- {
1862
- scope: "entity.name.union.rust",
1863
- settings: {
1864
- foreground: "var(--syntax-number)"
1865
- }
1866
- },
1867
- {
1868
- scope: "meta.enum.rust storage.type.source.rust",
1869
- settings: {
1870
- foreground: "var(--syntax-operator)"
1871
- }
1872
- },
1873
- {
1874
- scope: [
1875
- "support.macro.rust",
1876
- "meta.macro.rust support.function.rust",
1877
- "entity.name.function.macro.rust"
1878
- ],
1879
- settings: {
1880
- foreground: "var(--syntax-function)"
1881
- }
1882
- },
1883
- {
1884
- scope: ["storage.modifier.lifetime.rust", "entity.name.type.lifetime"],
1885
- settings: {
1886
- foreground: "var(--syntax-function)"
1887
- }
1888
- },
1889
- {
1890
- scope: "string.quoted.double.rust constant.other.placeholder.rust",
1891
- settings: {
1892
- foreground: "var(--syntax-escape)"
1893
- }
1894
- },
1895
- {
1896
- scope: "meta.function.return-type.rust meta.generic.rust storage.type.rust",
1897
- settings: {
1898
- foreground: "var(--syntax-fg)"
1899
- }
1900
- },
1901
- {
1902
- scope: "meta.function.call.rust",
1903
- settings: {
1904
- foreground: "var(--syntax-function)"
1905
- }
1906
- },
1907
- {
1908
- scope: "punctuation.brackets.angle.rust",
1909
- settings: {
1910
- foreground: "var(--syntax-function)"
1911
- }
1912
- },
1913
- {
1914
- scope: "constant.other.caps.rust",
1915
- settings: {
1916
- foreground: "var(--syntax-number)"
1917
- }
1918
- },
1919
- {
1920
- scope: ["meta.function.definition.rust variable.other.rust"],
1921
- settings: {
1922
- foreground: "var(--syntax-parameter)"
1923
- }
1924
- },
1925
- {
1926
- scope: "meta.function.call.rust variable.other.rust",
1927
- settings: {
1928
- foreground: "var(--syntax-fg)"
1929
- }
1930
- },
1931
- {
1932
- scope: "variable.language.self.rust",
1933
- settings: {
1934
- foreground: "var(--syntax-builtin)"
1935
- }
1936
- },
1937
- {
1938
- scope: [
1939
- "variable.other.metavariable.name.rust",
1940
- "meta.macro.metavariable.rust keyword.operator.macro.dollar.rust"
1941
- ],
1942
- settings: {
1943
- foreground: "var(--syntax-escape)"
1944
- }
1945
- },
1946
- {
1947
- scope: [
1948
- "comment.line.shebang",
1949
- "comment.line.shebang punctuation.definition.comment",
1950
- "comment.line.shebang",
1951
- "punctuation.definition.comment.shebang.shell",
1952
- "meta.shebang.shell"
1953
- ],
1954
- settings: {
1955
- foreground: "var(--syntax-escape)"
1956
- }
1957
- },
1958
- {
1959
- scope: "comment.line.shebang constant.language",
1960
- settings: {
1961
- foreground: "var(--syntax-operator)"
1962
- }
1963
- },
1964
- {
1965
- scope: [
1966
- "meta.function-call.arguments.shell punctuation.definition.variable.shell",
1967
- "meta.function-call.arguments.shell punctuation.section.interpolation",
1968
- "meta.function-call.arguments.shell punctuation.definition.variable.shell",
1969
- "meta.function-call.arguments.shell punctuation.section.interpolation"
1970
- ],
1971
- settings: {
1972
- foreground: "var(--syntax-builtin)"
1973
- }
1974
- },
1975
- {
1976
- scope: "meta.string meta.interpolation.parameter.shell variable.other.readwrite",
1977
- settings: {
1978
- foreground: "var(--syntax-number)"
1979
- }
1980
- },
1981
- {
1982
- scope: [
1983
- "source.shell punctuation.section.interpolation",
1984
- "punctuation.definition.evaluation.backticks.shell"
1985
- ],
1986
- settings: {
1987
- foreground: "var(--syntax-operator)"
1988
- }
1989
- },
1990
- {
1991
- scope: "entity.name.tag.heredoc.shell",
1992
- settings: {
1993
- foreground: "var(--syntax-keyword)"
1994
- }
1995
- },
1996
- {
1997
- scope: "string.quoted.double.shell variable.other.normal.shell",
1998
- settings: {
1999
- foreground: "var(--syntax-fg)"
2000
- }
2001
- },
2002
- {
2003
- scope: "token.info-token",
2004
- settings: {
2005
- foreground: "var(--syntax-blue)"
2006
- }
2007
- },
2008
- {
2009
- scope: "token.warn-token",
2010
- settings: {
2011
- foreground: "var(--syntax-amber)"
2012
- }
2013
- },
2014
- {
2015
- scope: "token.error-token",
2016
- settings: {
2017
- foreground: "var(--syntax-builtin)"
2018
- }
2019
- },
2020
- {
2021
- scope: "token.debug-token",
2022
- settings: {
2023
- foreground: "var(--syntax-purple)"
2024
- }
2025
- }
2026
- ]
2027
- };
2028
-
2029
- // components/src/asciidoc/util.ts
2030
- var highlighterPromise = null;
2031
- var customLanguages = ["oxql", "p4"];
2032
- var supportedLanguages = [...Object.keys(bundledLanguages), ...customLanguages];
2033
- function getHighlighter() {
2034
- if (!highlighterPromise) {
2035
- const langs = [{ ...oxql_tmLanguage_default }, { ...p4_tmLanguage_default }];
2036
- highlighterPromise = createHighlighter({ themes: [oxide_syntax_default], langs });
2037
- }
2038
- return highlighterPromise;
2039
- }
2040
- async function highlightCode(code, lang, { inline = false } = {}) {
2041
- const h = await getHighlighter();
2042
- const resolved = supportedLanguages.includes(lang) ? lang : "text";
2043
- if (!h.getLoadedLanguages().includes(resolved)) {
2044
- await h.loadLanguage(resolved);
2045
- }
2046
- return h.codeToHtml(code, {
2047
- lang: resolved,
2048
- theme: oxide_syntax_default,
2049
- ...inline ? { structure: "inline" } : {}
2050
- });
2051
- }
2052
- var highlight = async (block) => {
2053
- if (block.type === "listing") {
2054
- const literalBlock = block;
2055
- if (typeof literalBlock.subbedSource !== "string") {
2056
- return block;
414
+ var highlighterPromise = null;
415
+ var customLanguages = ["oxql", "p4"];
416
+ var supportedLanguages = [...Object.keys(bundledLanguages), ...customLanguages];
417
+ function getHighlighter() {
418
+ if (!highlighterPromise) {
419
+ const langs = [{ ...oxql_tmLanguage_default }, { ...p4_tmLanguage_default }];
420
+ highlighterPromise = createHighlighter({ themes: [oxide_syntax_default], langs });
421
+ }
422
+ return highlighterPromise;
423
+ }
424
+ async function highlightCode(code, lang, { inline = false } = {}) {
425
+ const h = await getHighlighter();
426
+ const resolved = supportedLanguages.includes(lang) ? lang : "text";
427
+ if (!h.getLoadedLanguages().includes(resolved)) {
428
+ await h.loadLanguage(resolved);
429
+ }
430
+ return h.codeToHtml(code, {
431
+ lang: resolved,
432
+ theme: oxide_syntax_default,
433
+ ...inline ? { structure: "inline" } : {}
434
+ });
435
+ }
436
+ var highlight = async (block) => {
437
+ if (block.type === "listing") {
438
+ const literalBlock = block;
439
+ if (typeof literalBlock.subbedSource !== "string") {
440
+ return block;
2057
441
  }
2058
442
  const source = literalBlock.subbedSource;
2059
443
  const lineComment = literalBlock.attributes["line-comment"];
@@ -2063,7 +447,10 @@ var highlight = async (block) => {
2063
447
  lineComment !== void 0 ? String(lineComment) : void 0
2064
448
  );
2065
449
  const calloutRegex = /<i class="conum" data-value="\d+"><\/i>(?:<b>\(\d+\)<\/b>)?/g;
2066
- const decodeIndex = (letters) => parseInt(letters.replace(/[A-J]/g, (c) => String("ABCDEFGHIJ".indexOf(c))), 10);
450
+ const decodeIndex = (letters) => parseInt(
451
+ letters.replace(/[A-J]/g, (c) => String("ABCDEFGHIJ".indexOf(c))),
452
+ 10
453
+ );
2067
454
  const callouts = [];
2068
455
  const placeholderContent = content.replace(calloutRegex, (match) => {
2069
456
  callouts.push(match);