edu360-web-ui 1.0.102 → 1.0.104
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.
- package/dist/main.css +2 -2
- package/dist/shizhanyun-web-ui.js +1137 -16
- package/dist/shizhanyun-web-ui.umd.cjs +3 -3
- package/package.json +1 -1
|
@@ -26966,7 +26966,7 @@ var hasRequiredAngelscript;
|
|
|
26966
26966
|
function requireAngelscript() {
|
|
26967
26967
|
if (hasRequiredAngelscript) return angelscript_1;
|
|
26968
26968
|
hasRequiredAngelscript = 1;
|
|
26969
|
-
function
|
|
26969
|
+
function angelscript2(hljs2) {
|
|
26970
26970
|
const builtInTypeMode = {
|
|
26971
26971
|
className: "built_in",
|
|
26972
26972
|
begin: "\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"
|
|
@@ -27130,7 +27130,7 @@ function requireAngelscript() {
|
|
|
27130
27130
|
]
|
|
27131
27131
|
};
|
|
27132
27132
|
}
|
|
27133
|
-
angelscript_1 =
|
|
27133
|
+
angelscript_1 = angelscript2;
|
|
27134
27134
|
return angelscript_1;
|
|
27135
27135
|
}
|
|
27136
27136
|
var apache_1;
|
|
@@ -29058,7 +29058,7 @@ var hasRequiredAsciidoc;
|
|
|
29058
29058
|
function requireAsciidoc() {
|
|
29059
29059
|
if (hasRequiredAsciidoc) return asciidoc_1;
|
|
29060
29060
|
hasRequiredAsciidoc = 1;
|
|
29061
|
-
function
|
|
29061
|
+
function asciidoc2(hljs2) {
|
|
29062
29062
|
const regex2 = hljs2.regex;
|
|
29063
29063
|
const HORIZONTAL_RULE = {
|
|
29064
29064
|
begin: "^'{3,}[ \\t]*$",
|
|
@@ -29304,7 +29304,7 @@ function requireAsciidoc() {
|
|
|
29304
29304
|
]
|
|
29305
29305
|
};
|
|
29306
29306
|
}
|
|
29307
|
-
asciidoc_1 =
|
|
29307
|
+
asciidoc_1 = asciidoc2;
|
|
29308
29308
|
return asciidoc_1;
|
|
29309
29309
|
}
|
|
29310
29310
|
var aspectj_1;
|
|
@@ -29835,7 +29835,7 @@ var hasRequiredAwk;
|
|
|
29835
29835
|
function requireAwk() {
|
|
29836
29836
|
if (hasRequiredAwk) return awk_1;
|
|
29837
29837
|
hasRequiredAwk = 1;
|
|
29838
|
-
function
|
|
29838
|
+
function awk2(hljs2) {
|
|
29839
29839
|
const VARIABLE = {
|
|
29840
29840
|
className: "variable",
|
|
29841
29841
|
variants: [
|
|
@@ -29892,7 +29892,7 @@ function requireAwk() {
|
|
|
29892
29892
|
]
|
|
29893
29893
|
};
|
|
29894
29894
|
}
|
|
29895
|
-
awk_1 =
|
|
29895
|
+
awk_1 = awk2;
|
|
29896
29896
|
return awk_1;
|
|
29897
29897
|
}
|
|
29898
29898
|
var axapta_1;
|
|
@@ -29900,7 +29900,7 @@ var hasRequiredAxapta;
|
|
|
29900
29900
|
function requireAxapta() {
|
|
29901
29901
|
if (hasRequiredAxapta) return axapta_1;
|
|
29902
29902
|
hasRequiredAxapta = 1;
|
|
29903
|
-
function
|
|
29903
|
+
function axapta2(hljs2) {
|
|
29904
29904
|
const IDENT_RE2 = hljs2.UNDERSCORE_IDENT_RE;
|
|
29905
29905
|
const BUILT_IN_KEYWORDS = [
|
|
29906
29906
|
"anytype",
|
|
@@ -30072,7 +30072,7 @@ function requireAxapta() {
|
|
|
30072
30072
|
]
|
|
30073
30073
|
};
|
|
30074
30074
|
}
|
|
30075
|
-
axapta_1 =
|
|
30075
|
+
axapta_1 = axapta2;
|
|
30076
30076
|
return axapta_1;
|
|
30077
30077
|
}
|
|
30078
30078
|
var bash_1;
|
|
@@ -31352,7 +31352,7 @@ var hasRequiredCeylon;
|
|
|
31352
31352
|
function requireCeylon() {
|
|
31353
31353
|
if (hasRequiredCeylon) return ceylon_1;
|
|
31354
31354
|
hasRequiredCeylon = 1;
|
|
31355
|
-
function
|
|
31355
|
+
function ceylon2(hljs2) {
|
|
31356
31356
|
const KEYWORDS2 = [
|
|
31357
31357
|
"assembly",
|
|
31358
31358
|
"module",
|
|
@@ -31478,7 +31478,7 @@ function requireCeylon() {
|
|
|
31478
31478
|
].concat(EXPRESSIONS2)
|
|
31479
31479
|
};
|
|
31480
31480
|
}
|
|
31481
|
-
ceylon_1 =
|
|
31481
|
+
ceylon_1 = ceylon2;
|
|
31482
31482
|
return ceylon_1;
|
|
31483
31483
|
}
|
|
31484
31484
|
var clean_1;
|
|
@@ -58953,7 +58953,7 @@ var hasRequiredNix;
|
|
|
58953
58953
|
function requireNix() {
|
|
58954
58954
|
if (hasRequiredNix) return nix_1;
|
|
58955
58955
|
hasRequiredNix = 1;
|
|
58956
|
-
function
|
|
58956
|
+
function nix2(hljs2) {
|
|
58957
58957
|
const regex2 = hljs2.regex;
|
|
58958
58958
|
const KEYWORDS2 = {
|
|
58959
58959
|
keyword: [
|
|
@@ -59298,7 +59298,7 @@ function requireNix() {
|
|
|
59298
59298
|
contains: EXPRESSIONS2.concat(REPL)
|
|
59299
59299
|
};
|
|
59300
59300
|
}
|
|
59301
|
-
nix_1 =
|
|
59301
|
+
nix_1 = nix2;
|
|
59302
59302
|
return nix_1;
|
|
59303
59303
|
}
|
|
59304
59304
|
var nodeRepl_1;
|
|
@@ -78481,7 +78481,12 @@ const _sfc_main$b = {
|
|
|
78481
78481
|
"routeros",
|
|
78482
78482
|
// 纯文本
|
|
78483
78483
|
"plaintext",
|
|
78484
|
-
"text"
|
|
78484
|
+
"text",
|
|
78485
|
+
"awk",
|
|
78486
|
+
"axapta",
|
|
78487
|
+
"angelscript",
|
|
78488
|
+
"asciidoc",
|
|
78489
|
+
"ceylon"
|
|
78485
78490
|
].sort();
|
|
78486
78491
|
const lang = ref(props.node.attrs.language || "javascript");
|
|
78487
78492
|
const updateLanguage = (data) => {
|
|
@@ -78605,7 +78610,171 @@ const _sfc_main$b = {
|
|
|
78605
78610
|
};
|
|
78606
78611
|
}
|
|
78607
78612
|
};
|
|
78608
|
-
const CodeBlockView = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
78613
|
+
const CodeBlockView = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-b028180b"]]);
|
|
78614
|
+
function angelscript(hljs2) {
|
|
78615
|
+
const builtInTypeMode = {
|
|
78616
|
+
className: "built_in",
|
|
78617
|
+
begin: "\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"
|
|
78618
|
+
};
|
|
78619
|
+
const objectHandleMode = {
|
|
78620
|
+
className: "symbol",
|
|
78621
|
+
begin: "[a-zA-Z0-9_]+@"
|
|
78622
|
+
};
|
|
78623
|
+
const genericMode = {
|
|
78624
|
+
className: "keyword",
|
|
78625
|
+
begin: "<",
|
|
78626
|
+
end: ">",
|
|
78627
|
+
contains: [
|
|
78628
|
+
builtInTypeMode,
|
|
78629
|
+
objectHandleMode
|
|
78630
|
+
]
|
|
78631
|
+
};
|
|
78632
|
+
builtInTypeMode.contains = [genericMode];
|
|
78633
|
+
objectHandleMode.contains = [genericMode];
|
|
78634
|
+
const KEYWORDS2 = [
|
|
78635
|
+
"for",
|
|
78636
|
+
"in|0",
|
|
78637
|
+
"break",
|
|
78638
|
+
"continue",
|
|
78639
|
+
"while",
|
|
78640
|
+
"do|0",
|
|
78641
|
+
"return",
|
|
78642
|
+
"if",
|
|
78643
|
+
"else",
|
|
78644
|
+
"case",
|
|
78645
|
+
"switch",
|
|
78646
|
+
"namespace",
|
|
78647
|
+
"is",
|
|
78648
|
+
"cast",
|
|
78649
|
+
"or",
|
|
78650
|
+
"and",
|
|
78651
|
+
"xor",
|
|
78652
|
+
"not",
|
|
78653
|
+
"get|0",
|
|
78654
|
+
"in",
|
|
78655
|
+
"inout|10",
|
|
78656
|
+
"out",
|
|
78657
|
+
"override",
|
|
78658
|
+
"set|0",
|
|
78659
|
+
"private",
|
|
78660
|
+
"public",
|
|
78661
|
+
"const",
|
|
78662
|
+
"default|0",
|
|
78663
|
+
"final",
|
|
78664
|
+
"shared",
|
|
78665
|
+
"external",
|
|
78666
|
+
"mixin|10",
|
|
78667
|
+
"enum",
|
|
78668
|
+
"typedef",
|
|
78669
|
+
"funcdef",
|
|
78670
|
+
"this",
|
|
78671
|
+
"super",
|
|
78672
|
+
"import",
|
|
78673
|
+
"from",
|
|
78674
|
+
"interface",
|
|
78675
|
+
"abstract|0",
|
|
78676
|
+
"try",
|
|
78677
|
+
"catch",
|
|
78678
|
+
"protected",
|
|
78679
|
+
"explicit",
|
|
78680
|
+
"property"
|
|
78681
|
+
];
|
|
78682
|
+
return {
|
|
78683
|
+
name: "AngelScript",
|
|
78684
|
+
aliases: ["asc"],
|
|
78685
|
+
keywords: KEYWORDS2,
|
|
78686
|
+
// avoid close detection with C# and JS
|
|
78687
|
+
illegal: "(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",
|
|
78688
|
+
contains: [
|
|
78689
|
+
{
|
|
78690
|
+
// 'strings'
|
|
78691
|
+
className: "string",
|
|
78692
|
+
begin: "'",
|
|
78693
|
+
end: "'",
|
|
78694
|
+
illegal: "\\n",
|
|
78695
|
+
contains: [hljs2.BACKSLASH_ESCAPE],
|
|
78696
|
+
relevance: 0
|
|
78697
|
+
},
|
|
78698
|
+
// """heredoc strings"""
|
|
78699
|
+
{
|
|
78700
|
+
className: "string",
|
|
78701
|
+
begin: '"""',
|
|
78702
|
+
end: '"""'
|
|
78703
|
+
},
|
|
78704
|
+
{
|
|
78705
|
+
// "strings"
|
|
78706
|
+
className: "string",
|
|
78707
|
+
begin: '"',
|
|
78708
|
+
end: '"',
|
|
78709
|
+
illegal: "\\n",
|
|
78710
|
+
contains: [hljs2.BACKSLASH_ESCAPE],
|
|
78711
|
+
relevance: 0
|
|
78712
|
+
},
|
|
78713
|
+
hljs2.C_LINE_COMMENT_MODE,
|
|
78714
|
+
// single-line comments
|
|
78715
|
+
hljs2.C_BLOCK_COMMENT_MODE,
|
|
78716
|
+
// comment blocks
|
|
78717
|
+
{
|
|
78718
|
+
// metadata
|
|
78719
|
+
className: "string",
|
|
78720
|
+
begin: "^\\s*\\[",
|
|
78721
|
+
end: "\\]"
|
|
78722
|
+
},
|
|
78723
|
+
{
|
|
78724
|
+
// interface or namespace declaration
|
|
78725
|
+
beginKeywords: "interface namespace",
|
|
78726
|
+
end: /\{/,
|
|
78727
|
+
illegal: "[;.\\-]",
|
|
78728
|
+
contains: [
|
|
78729
|
+
{
|
|
78730
|
+
// interface or namespace name
|
|
78731
|
+
className: "symbol",
|
|
78732
|
+
begin: "[a-zA-Z0-9_]+"
|
|
78733
|
+
}
|
|
78734
|
+
]
|
|
78735
|
+
},
|
|
78736
|
+
{
|
|
78737
|
+
// class declaration
|
|
78738
|
+
beginKeywords: "class",
|
|
78739
|
+
end: /\{/,
|
|
78740
|
+
illegal: "[;.\\-]",
|
|
78741
|
+
contains: [
|
|
78742
|
+
{
|
|
78743
|
+
// class name
|
|
78744
|
+
className: "symbol",
|
|
78745
|
+
begin: "[a-zA-Z0-9_]+",
|
|
78746
|
+
contains: [
|
|
78747
|
+
{
|
|
78748
|
+
begin: "[:,]\\s*",
|
|
78749
|
+
contains: [
|
|
78750
|
+
{
|
|
78751
|
+
className: "symbol",
|
|
78752
|
+
begin: "[a-zA-Z0-9_]+"
|
|
78753
|
+
}
|
|
78754
|
+
]
|
|
78755
|
+
}
|
|
78756
|
+
]
|
|
78757
|
+
}
|
|
78758
|
+
]
|
|
78759
|
+
},
|
|
78760
|
+
builtInTypeMode,
|
|
78761
|
+
// built-in types
|
|
78762
|
+
objectHandleMode,
|
|
78763
|
+
// object handles
|
|
78764
|
+
{
|
|
78765
|
+
// literals
|
|
78766
|
+
className: "literal",
|
|
78767
|
+
begin: "\\b(null|true|false)"
|
|
78768
|
+
},
|
|
78769
|
+
{
|
|
78770
|
+
// numbers
|
|
78771
|
+
className: "number",
|
|
78772
|
+
relevance: 0,
|
|
78773
|
+
begin: "(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"
|
|
78774
|
+
}
|
|
78775
|
+
]
|
|
78776
|
+
};
|
|
78777
|
+
}
|
|
78609
78778
|
function armasm(hljs2) {
|
|
78610
78779
|
const COMMENT2 = { variants: [
|
|
78611
78780
|
hljs2.COMMENT("^[ \\t]*(?=#)", "$", {
|
|
@@ -78692,6 +78861,607 @@ function armasm(hljs2) {
|
|
|
78692
78861
|
]
|
|
78693
78862
|
};
|
|
78694
78863
|
}
|
|
78864
|
+
function asciidoc(hljs2) {
|
|
78865
|
+
const regex2 = hljs2.regex;
|
|
78866
|
+
const HORIZONTAL_RULE = {
|
|
78867
|
+
begin: "^'{3,}[ \\t]*$",
|
|
78868
|
+
relevance: 10
|
|
78869
|
+
};
|
|
78870
|
+
const ESCAPED_FORMATTING = [
|
|
78871
|
+
// escaped constrained formatting marks (i.e., \* \_ or \`)
|
|
78872
|
+
{ begin: /\\[*_`]/ },
|
|
78873
|
+
// escaped unconstrained formatting marks (i.e., \\** \\__ or \\``)
|
|
78874
|
+
// must ignore until the next formatting marks
|
|
78875
|
+
// this rule might not be 100% compliant with Asciidoctor 2.0 but we are entering undefined behavior territory...
|
|
78876
|
+
{ begin: /\\\\\*{2}[^\n]*?\*{2}/ },
|
|
78877
|
+
{ begin: /\\\\_{2}[^\n]*_{2}/ },
|
|
78878
|
+
{ begin: /\\\\`{2}[^\n]*`{2}/ },
|
|
78879
|
+
// guard: constrained formatting mark may not be preceded by ":", ";" or
|
|
78880
|
+
// "}". match these so the constrained rule doesn't see them
|
|
78881
|
+
{ begin: /[:;}][*_`](?![*_`])/ }
|
|
78882
|
+
];
|
|
78883
|
+
const STRONG = [
|
|
78884
|
+
// inline unconstrained strong (single line)
|
|
78885
|
+
{
|
|
78886
|
+
className: "strong",
|
|
78887
|
+
begin: /\*{2}([^\n]+?)\*{2}/
|
|
78888
|
+
},
|
|
78889
|
+
// inline unconstrained strong (multi-line)
|
|
78890
|
+
{
|
|
78891
|
+
className: "strong",
|
|
78892
|
+
begin: regex2.concat(
|
|
78893
|
+
/\*\*/,
|
|
78894
|
+
/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,
|
|
78895
|
+
/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,
|
|
78896
|
+
/\*\*/
|
|
78897
|
+
),
|
|
78898
|
+
relevance: 0
|
|
78899
|
+
},
|
|
78900
|
+
// inline constrained strong (single line)
|
|
78901
|
+
{
|
|
78902
|
+
className: "strong",
|
|
78903
|
+
// must not precede or follow a word character
|
|
78904
|
+
begin: /\B\*(\S|\S[^\n]*?\S)\*(?!\w)/
|
|
78905
|
+
},
|
|
78906
|
+
// inline constrained strong (multi-line)
|
|
78907
|
+
{
|
|
78908
|
+
className: "strong",
|
|
78909
|
+
// must not precede or follow a word character
|
|
78910
|
+
begin: /\*[^\s]([^\n]+\n)+([^\n]+)\*/
|
|
78911
|
+
}
|
|
78912
|
+
];
|
|
78913
|
+
const EMPHASIS = [
|
|
78914
|
+
// inline unconstrained emphasis (single line)
|
|
78915
|
+
{
|
|
78916
|
+
className: "emphasis",
|
|
78917
|
+
begin: /_{2}([^\n]+?)_{2}/
|
|
78918
|
+
},
|
|
78919
|
+
// inline unconstrained emphasis (multi-line)
|
|
78920
|
+
{
|
|
78921
|
+
className: "emphasis",
|
|
78922
|
+
begin: regex2.concat(
|
|
78923
|
+
/__/,
|
|
78924
|
+
/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,
|
|
78925
|
+
/(_(?!_)|\\[^\n]|[^_\n\\])*/,
|
|
78926
|
+
/__/
|
|
78927
|
+
),
|
|
78928
|
+
relevance: 0
|
|
78929
|
+
},
|
|
78930
|
+
// inline constrained emphasis (single line)
|
|
78931
|
+
{
|
|
78932
|
+
className: "emphasis",
|
|
78933
|
+
// must not precede or follow a word character
|
|
78934
|
+
begin: /\b_(\S|\S[^\n]*?\S)_(?!\w)/
|
|
78935
|
+
},
|
|
78936
|
+
// inline constrained emphasis (multi-line)
|
|
78937
|
+
{
|
|
78938
|
+
className: "emphasis",
|
|
78939
|
+
// must not precede or follow a word character
|
|
78940
|
+
begin: /_[^\s]([^\n]+\n)+([^\n]+)_/
|
|
78941
|
+
},
|
|
78942
|
+
// inline constrained emphasis using single quote (legacy)
|
|
78943
|
+
{
|
|
78944
|
+
className: "emphasis",
|
|
78945
|
+
// must not follow a word character or be followed by a single quote or space
|
|
78946
|
+
begin: "\\B'(?!['\\s])",
|
|
78947
|
+
end: "(\\n{2}|')",
|
|
78948
|
+
// allow escaped single quote followed by word char
|
|
78949
|
+
contains: [
|
|
78950
|
+
{
|
|
78951
|
+
begin: "\\\\'\\w",
|
|
78952
|
+
relevance: 0
|
|
78953
|
+
}
|
|
78954
|
+
],
|
|
78955
|
+
relevance: 0
|
|
78956
|
+
}
|
|
78957
|
+
];
|
|
78958
|
+
const ADMONITION = {
|
|
78959
|
+
className: "symbol",
|
|
78960
|
+
begin: "^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",
|
|
78961
|
+
relevance: 10
|
|
78962
|
+
};
|
|
78963
|
+
const BULLET_LIST = {
|
|
78964
|
+
className: "bullet",
|
|
78965
|
+
begin: "^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"
|
|
78966
|
+
};
|
|
78967
|
+
return {
|
|
78968
|
+
name: "AsciiDoc",
|
|
78969
|
+
aliases: ["adoc"],
|
|
78970
|
+
contains: [
|
|
78971
|
+
// block comment
|
|
78972
|
+
hljs2.COMMENT(
|
|
78973
|
+
"^/{4,}\\n",
|
|
78974
|
+
"\\n/{4,}$",
|
|
78975
|
+
// can also be done as...
|
|
78976
|
+
// '^/{4,}$',
|
|
78977
|
+
// '^/{4,}$',
|
|
78978
|
+
{ relevance: 10 }
|
|
78979
|
+
),
|
|
78980
|
+
// line comment
|
|
78981
|
+
hljs2.COMMENT(
|
|
78982
|
+
"^//",
|
|
78983
|
+
"$",
|
|
78984
|
+
{ relevance: 0 }
|
|
78985
|
+
),
|
|
78986
|
+
// title
|
|
78987
|
+
{
|
|
78988
|
+
className: "title",
|
|
78989
|
+
begin: "^\\.\\w.*$"
|
|
78990
|
+
},
|
|
78991
|
+
// example, admonition & sidebar blocks
|
|
78992
|
+
{
|
|
78993
|
+
begin: "^[=\\*]{4,}\\n",
|
|
78994
|
+
end: "\\n^[=\\*]{4,}$",
|
|
78995
|
+
relevance: 10
|
|
78996
|
+
},
|
|
78997
|
+
// headings
|
|
78998
|
+
{
|
|
78999
|
+
className: "section",
|
|
79000
|
+
relevance: 10,
|
|
79001
|
+
variants: [
|
|
79002
|
+
{ begin: "^(={1,6})[ ].+?([ ]\\1)?$" },
|
|
79003
|
+
{ begin: "^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$" }
|
|
79004
|
+
]
|
|
79005
|
+
},
|
|
79006
|
+
// document attributes
|
|
79007
|
+
{
|
|
79008
|
+
className: "meta",
|
|
79009
|
+
begin: "^:.+?:",
|
|
79010
|
+
end: "\\s",
|
|
79011
|
+
excludeEnd: true,
|
|
79012
|
+
relevance: 10
|
|
79013
|
+
},
|
|
79014
|
+
// block attributes
|
|
79015
|
+
{
|
|
79016
|
+
className: "meta",
|
|
79017
|
+
begin: "^\\[.+?\\]$",
|
|
79018
|
+
relevance: 0
|
|
79019
|
+
},
|
|
79020
|
+
// quoteblocks
|
|
79021
|
+
{
|
|
79022
|
+
className: "quote",
|
|
79023
|
+
begin: "^_{4,}\\n",
|
|
79024
|
+
end: "\\n_{4,}$",
|
|
79025
|
+
relevance: 10
|
|
79026
|
+
},
|
|
79027
|
+
// listing and literal blocks
|
|
79028
|
+
{
|
|
79029
|
+
className: "code",
|
|
79030
|
+
begin: "^[\\-\\.]{4,}\\n",
|
|
79031
|
+
end: "\\n[\\-\\.]{4,}$",
|
|
79032
|
+
relevance: 10
|
|
79033
|
+
},
|
|
79034
|
+
// passthrough blocks
|
|
79035
|
+
{
|
|
79036
|
+
begin: "^\\+{4,}\\n",
|
|
79037
|
+
end: "\\n\\+{4,}$",
|
|
79038
|
+
contains: [
|
|
79039
|
+
{
|
|
79040
|
+
begin: "<",
|
|
79041
|
+
end: ">",
|
|
79042
|
+
subLanguage: "xml",
|
|
79043
|
+
relevance: 0
|
|
79044
|
+
}
|
|
79045
|
+
],
|
|
79046
|
+
relevance: 10
|
|
79047
|
+
},
|
|
79048
|
+
BULLET_LIST,
|
|
79049
|
+
ADMONITION,
|
|
79050
|
+
...ESCAPED_FORMATTING,
|
|
79051
|
+
...STRONG,
|
|
79052
|
+
...EMPHASIS,
|
|
79053
|
+
// inline smart quotes
|
|
79054
|
+
{
|
|
79055
|
+
className: "string",
|
|
79056
|
+
variants: [
|
|
79057
|
+
{ begin: "``.+?''" },
|
|
79058
|
+
{ begin: "`.+?'" }
|
|
79059
|
+
]
|
|
79060
|
+
},
|
|
79061
|
+
// inline unconstrained emphasis
|
|
79062
|
+
{
|
|
79063
|
+
className: "code",
|
|
79064
|
+
begin: /`{2}/,
|
|
79065
|
+
end: /(\n{2}|`{2})/
|
|
79066
|
+
},
|
|
79067
|
+
// inline code snippets (TODO should get same treatment as strong and emphasis)
|
|
79068
|
+
{
|
|
79069
|
+
className: "code",
|
|
79070
|
+
begin: "(`.+?`|\\+.+?\\+)",
|
|
79071
|
+
relevance: 0
|
|
79072
|
+
},
|
|
79073
|
+
// indented literal block
|
|
79074
|
+
{
|
|
79075
|
+
className: "code",
|
|
79076
|
+
begin: "^[ \\t]",
|
|
79077
|
+
end: "$",
|
|
79078
|
+
relevance: 0
|
|
79079
|
+
},
|
|
79080
|
+
HORIZONTAL_RULE,
|
|
79081
|
+
// images and links
|
|
79082
|
+
{
|
|
79083
|
+
begin: "(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",
|
|
79084
|
+
returnBegin: true,
|
|
79085
|
+
contains: [
|
|
79086
|
+
{
|
|
79087
|
+
begin: "(link|image:?):",
|
|
79088
|
+
relevance: 0
|
|
79089
|
+
},
|
|
79090
|
+
{
|
|
79091
|
+
className: "link",
|
|
79092
|
+
begin: "\\w",
|
|
79093
|
+
end: "[^\\[]+",
|
|
79094
|
+
relevance: 0
|
|
79095
|
+
},
|
|
79096
|
+
{
|
|
79097
|
+
className: "string",
|
|
79098
|
+
begin: "\\[",
|
|
79099
|
+
end: "\\]",
|
|
79100
|
+
excludeBegin: true,
|
|
79101
|
+
excludeEnd: true,
|
|
79102
|
+
relevance: 0
|
|
79103
|
+
}
|
|
79104
|
+
],
|
|
79105
|
+
relevance: 10
|
|
79106
|
+
}
|
|
79107
|
+
]
|
|
79108
|
+
};
|
|
79109
|
+
}
|
|
79110
|
+
function awk(hljs2) {
|
|
79111
|
+
const VARIABLE = {
|
|
79112
|
+
className: "variable",
|
|
79113
|
+
variants: [
|
|
79114
|
+
{ begin: /\$[\w\d#@][\w\d_]*/ },
|
|
79115
|
+
{ begin: /\$\{(.*?)\}/ }
|
|
79116
|
+
]
|
|
79117
|
+
};
|
|
79118
|
+
const KEYWORDS2 = "BEGIN END if else while do for in break continue delete next nextfile function func exit|10";
|
|
79119
|
+
const STRING = {
|
|
79120
|
+
className: "string",
|
|
79121
|
+
contains: [hljs2.BACKSLASH_ESCAPE],
|
|
79122
|
+
variants: [
|
|
79123
|
+
{
|
|
79124
|
+
begin: /(u|b)?r?'''/,
|
|
79125
|
+
end: /'''/,
|
|
79126
|
+
relevance: 10
|
|
79127
|
+
},
|
|
79128
|
+
{
|
|
79129
|
+
begin: /(u|b)?r?"""/,
|
|
79130
|
+
end: /"""/,
|
|
79131
|
+
relevance: 10
|
|
79132
|
+
},
|
|
79133
|
+
{
|
|
79134
|
+
begin: /(u|r|ur)'/,
|
|
79135
|
+
end: /'/,
|
|
79136
|
+
relevance: 10
|
|
79137
|
+
},
|
|
79138
|
+
{
|
|
79139
|
+
begin: /(u|r|ur)"/,
|
|
79140
|
+
end: /"/,
|
|
79141
|
+
relevance: 10
|
|
79142
|
+
},
|
|
79143
|
+
{
|
|
79144
|
+
begin: /(b|br)'/,
|
|
79145
|
+
end: /'/
|
|
79146
|
+
},
|
|
79147
|
+
{
|
|
79148
|
+
begin: /(b|br)"/,
|
|
79149
|
+
end: /"/
|
|
79150
|
+
},
|
|
79151
|
+
hljs2.APOS_STRING_MODE,
|
|
79152
|
+
hljs2.QUOTE_STRING_MODE
|
|
79153
|
+
]
|
|
79154
|
+
};
|
|
79155
|
+
return {
|
|
79156
|
+
name: "Awk",
|
|
79157
|
+
keywords: { keyword: KEYWORDS2 },
|
|
79158
|
+
contains: [
|
|
79159
|
+
VARIABLE,
|
|
79160
|
+
STRING,
|
|
79161
|
+
hljs2.REGEXP_MODE,
|
|
79162
|
+
hljs2.HASH_COMMENT_MODE,
|
|
79163
|
+
hljs2.NUMBER_MODE
|
|
79164
|
+
]
|
|
79165
|
+
};
|
|
79166
|
+
}
|
|
79167
|
+
function axapta(hljs2) {
|
|
79168
|
+
const IDENT_RE2 = hljs2.UNDERSCORE_IDENT_RE;
|
|
79169
|
+
const BUILT_IN_KEYWORDS = [
|
|
79170
|
+
"anytype",
|
|
79171
|
+
"boolean",
|
|
79172
|
+
"byte",
|
|
79173
|
+
"char",
|
|
79174
|
+
"container",
|
|
79175
|
+
"date",
|
|
79176
|
+
"double",
|
|
79177
|
+
"enum",
|
|
79178
|
+
"guid",
|
|
79179
|
+
"int",
|
|
79180
|
+
"int64",
|
|
79181
|
+
"long",
|
|
79182
|
+
"real",
|
|
79183
|
+
"short",
|
|
79184
|
+
"str",
|
|
79185
|
+
"utcdatetime",
|
|
79186
|
+
"var"
|
|
79187
|
+
];
|
|
79188
|
+
const LITERAL_KEYWORDS = [
|
|
79189
|
+
"default",
|
|
79190
|
+
"false",
|
|
79191
|
+
"null",
|
|
79192
|
+
"true"
|
|
79193
|
+
];
|
|
79194
|
+
const NORMAL_KEYWORDS = [
|
|
79195
|
+
"abstract",
|
|
79196
|
+
"as",
|
|
79197
|
+
"asc",
|
|
79198
|
+
"avg",
|
|
79199
|
+
"break",
|
|
79200
|
+
"breakpoint",
|
|
79201
|
+
"by",
|
|
79202
|
+
"byref",
|
|
79203
|
+
"case",
|
|
79204
|
+
"catch",
|
|
79205
|
+
"changecompany",
|
|
79206
|
+
"class",
|
|
79207
|
+
"client",
|
|
79208
|
+
"client",
|
|
79209
|
+
"common",
|
|
79210
|
+
"const",
|
|
79211
|
+
"continue",
|
|
79212
|
+
"count",
|
|
79213
|
+
"crosscompany",
|
|
79214
|
+
"delegate",
|
|
79215
|
+
"delete_from",
|
|
79216
|
+
"desc",
|
|
79217
|
+
"display",
|
|
79218
|
+
"div",
|
|
79219
|
+
"do",
|
|
79220
|
+
"edit",
|
|
79221
|
+
"else",
|
|
79222
|
+
"eventhandler",
|
|
79223
|
+
"exists",
|
|
79224
|
+
"extends",
|
|
79225
|
+
"final",
|
|
79226
|
+
"finally",
|
|
79227
|
+
"firstfast",
|
|
79228
|
+
"firstonly",
|
|
79229
|
+
"firstonly1",
|
|
79230
|
+
"firstonly10",
|
|
79231
|
+
"firstonly100",
|
|
79232
|
+
"firstonly1000",
|
|
79233
|
+
"flush",
|
|
79234
|
+
"for",
|
|
79235
|
+
"forceliterals",
|
|
79236
|
+
"forcenestedloop",
|
|
79237
|
+
"forceplaceholders",
|
|
79238
|
+
"forceselectorder",
|
|
79239
|
+
"forupdate",
|
|
79240
|
+
"from",
|
|
79241
|
+
"generateonly",
|
|
79242
|
+
"group",
|
|
79243
|
+
"hint",
|
|
79244
|
+
"if",
|
|
79245
|
+
"implements",
|
|
79246
|
+
"in",
|
|
79247
|
+
"index",
|
|
79248
|
+
"insert_recordset",
|
|
79249
|
+
"interface",
|
|
79250
|
+
"internal",
|
|
79251
|
+
"is",
|
|
79252
|
+
"join",
|
|
79253
|
+
"like",
|
|
79254
|
+
"maxof",
|
|
79255
|
+
"minof",
|
|
79256
|
+
"mod",
|
|
79257
|
+
"namespace",
|
|
79258
|
+
"new",
|
|
79259
|
+
"next",
|
|
79260
|
+
"nofetch",
|
|
79261
|
+
"notexists",
|
|
79262
|
+
"optimisticlock",
|
|
79263
|
+
"order",
|
|
79264
|
+
"outer",
|
|
79265
|
+
"pessimisticlock",
|
|
79266
|
+
"print",
|
|
79267
|
+
"private",
|
|
79268
|
+
"protected",
|
|
79269
|
+
"public",
|
|
79270
|
+
"readonly",
|
|
79271
|
+
"repeatableread",
|
|
79272
|
+
"retry",
|
|
79273
|
+
"return",
|
|
79274
|
+
"reverse",
|
|
79275
|
+
"select",
|
|
79276
|
+
"server",
|
|
79277
|
+
"setting",
|
|
79278
|
+
"static",
|
|
79279
|
+
"sum",
|
|
79280
|
+
"super",
|
|
79281
|
+
"switch",
|
|
79282
|
+
"this",
|
|
79283
|
+
"throw",
|
|
79284
|
+
"try",
|
|
79285
|
+
"ttsabort",
|
|
79286
|
+
"ttsbegin",
|
|
79287
|
+
"ttscommit",
|
|
79288
|
+
"unchecked",
|
|
79289
|
+
"update_recordset",
|
|
79290
|
+
"using",
|
|
79291
|
+
"validtimestate",
|
|
79292
|
+
"void",
|
|
79293
|
+
"where",
|
|
79294
|
+
"while"
|
|
79295
|
+
];
|
|
79296
|
+
const KEYWORDS2 = {
|
|
79297
|
+
keyword: NORMAL_KEYWORDS,
|
|
79298
|
+
built_in: BUILT_IN_KEYWORDS,
|
|
79299
|
+
literal: LITERAL_KEYWORDS
|
|
79300
|
+
};
|
|
79301
|
+
const CLASS_DEFINITION = {
|
|
79302
|
+
variants: [
|
|
79303
|
+
{ match: [
|
|
79304
|
+
/(class|interface)\s+/,
|
|
79305
|
+
IDENT_RE2,
|
|
79306
|
+
/\s+(extends|implements)\s+/,
|
|
79307
|
+
IDENT_RE2
|
|
79308
|
+
] },
|
|
79309
|
+
{ match: [
|
|
79310
|
+
/class\s+/,
|
|
79311
|
+
IDENT_RE2
|
|
79312
|
+
] }
|
|
79313
|
+
],
|
|
79314
|
+
scope: {
|
|
79315
|
+
2: "title.class",
|
|
79316
|
+
4: "title.class.inherited"
|
|
79317
|
+
},
|
|
79318
|
+
keywords: KEYWORDS2
|
|
79319
|
+
};
|
|
79320
|
+
return {
|
|
79321
|
+
name: "X++",
|
|
79322
|
+
aliases: ["x++"],
|
|
79323
|
+
keywords: KEYWORDS2,
|
|
79324
|
+
contains: [
|
|
79325
|
+
hljs2.C_LINE_COMMENT_MODE,
|
|
79326
|
+
hljs2.C_BLOCK_COMMENT_MODE,
|
|
79327
|
+
hljs2.APOS_STRING_MODE,
|
|
79328
|
+
hljs2.QUOTE_STRING_MODE,
|
|
79329
|
+
hljs2.C_NUMBER_MODE,
|
|
79330
|
+
{
|
|
79331
|
+
className: "meta",
|
|
79332
|
+
begin: "#",
|
|
79333
|
+
end: "$"
|
|
79334
|
+
},
|
|
79335
|
+
CLASS_DEFINITION
|
|
79336
|
+
]
|
|
79337
|
+
};
|
|
79338
|
+
}
|
|
79339
|
+
function ceylon(hljs2) {
|
|
79340
|
+
const KEYWORDS2 = [
|
|
79341
|
+
"assembly",
|
|
79342
|
+
"module",
|
|
79343
|
+
"package",
|
|
79344
|
+
"import",
|
|
79345
|
+
"alias",
|
|
79346
|
+
"class",
|
|
79347
|
+
"interface",
|
|
79348
|
+
"object",
|
|
79349
|
+
"given",
|
|
79350
|
+
"value",
|
|
79351
|
+
"assign",
|
|
79352
|
+
"void",
|
|
79353
|
+
"function",
|
|
79354
|
+
"new",
|
|
79355
|
+
"of",
|
|
79356
|
+
"extends",
|
|
79357
|
+
"satisfies",
|
|
79358
|
+
"abstracts",
|
|
79359
|
+
"in",
|
|
79360
|
+
"out",
|
|
79361
|
+
"return",
|
|
79362
|
+
"break",
|
|
79363
|
+
"continue",
|
|
79364
|
+
"throw",
|
|
79365
|
+
"assert",
|
|
79366
|
+
"dynamic",
|
|
79367
|
+
"if",
|
|
79368
|
+
"else",
|
|
79369
|
+
"switch",
|
|
79370
|
+
"case",
|
|
79371
|
+
"for",
|
|
79372
|
+
"while",
|
|
79373
|
+
"try",
|
|
79374
|
+
"catch",
|
|
79375
|
+
"finally",
|
|
79376
|
+
"then",
|
|
79377
|
+
"let",
|
|
79378
|
+
"this",
|
|
79379
|
+
"outer",
|
|
79380
|
+
"super",
|
|
79381
|
+
"is",
|
|
79382
|
+
"exists",
|
|
79383
|
+
"nonempty"
|
|
79384
|
+
];
|
|
79385
|
+
const DECLARATION_MODIFIERS = [
|
|
79386
|
+
"shared",
|
|
79387
|
+
"abstract",
|
|
79388
|
+
"formal",
|
|
79389
|
+
"default",
|
|
79390
|
+
"actual",
|
|
79391
|
+
"variable",
|
|
79392
|
+
"late",
|
|
79393
|
+
"native",
|
|
79394
|
+
"deprecated",
|
|
79395
|
+
"final",
|
|
79396
|
+
"sealed",
|
|
79397
|
+
"annotation",
|
|
79398
|
+
"suppressWarnings",
|
|
79399
|
+
"small"
|
|
79400
|
+
];
|
|
79401
|
+
const DOCUMENTATION = [
|
|
79402
|
+
"doc",
|
|
79403
|
+
"by",
|
|
79404
|
+
"license",
|
|
79405
|
+
"see",
|
|
79406
|
+
"throws",
|
|
79407
|
+
"tagged"
|
|
79408
|
+
];
|
|
79409
|
+
const SUBST = {
|
|
79410
|
+
className: "subst",
|
|
79411
|
+
excludeBegin: true,
|
|
79412
|
+
excludeEnd: true,
|
|
79413
|
+
begin: /``/,
|
|
79414
|
+
end: /``/,
|
|
79415
|
+
keywords: KEYWORDS2,
|
|
79416
|
+
relevance: 10
|
|
79417
|
+
};
|
|
79418
|
+
const EXPRESSIONS2 = [
|
|
79419
|
+
{
|
|
79420
|
+
// verbatim string
|
|
79421
|
+
className: "string",
|
|
79422
|
+
begin: '"""',
|
|
79423
|
+
end: '"""',
|
|
79424
|
+
relevance: 10
|
|
79425
|
+
},
|
|
79426
|
+
{
|
|
79427
|
+
// string literal or template
|
|
79428
|
+
className: "string",
|
|
79429
|
+
begin: '"',
|
|
79430
|
+
end: '"',
|
|
79431
|
+
contains: [SUBST]
|
|
79432
|
+
},
|
|
79433
|
+
{
|
|
79434
|
+
// character literal
|
|
79435
|
+
className: "string",
|
|
79436
|
+
begin: "'",
|
|
79437
|
+
end: "'"
|
|
79438
|
+
},
|
|
79439
|
+
{
|
|
79440
|
+
// numeric literal
|
|
79441
|
+
className: "number",
|
|
79442
|
+
begin: "#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",
|
|
79443
|
+
relevance: 0
|
|
79444
|
+
}
|
|
79445
|
+
];
|
|
79446
|
+
SUBST.contains = EXPRESSIONS2;
|
|
79447
|
+
return {
|
|
79448
|
+
name: "Ceylon",
|
|
79449
|
+
keywords: {
|
|
79450
|
+
keyword: KEYWORDS2.concat(DECLARATION_MODIFIERS),
|
|
79451
|
+
meta: DOCUMENTATION
|
|
79452
|
+
},
|
|
79453
|
+
illegal: "\\$[^01]|#[^0-9a-fA-F]",
|
|
79454
|
+
contains: [
|
|
79455
|
+
hljs2.C_LINE_COMMENT_MODE,
|
|
79456
|
+
hljs2.COMMENT("/\\*", "\\*/", { contains: ["self"] }),
|
|
79457
|
+
{
|
|
79458
|
+
// compiler annotation
|
|
79459
|
+
className: "meta",
|
|
79460
|
+
begin: '@[a-z]\\w*(?::"[^"]*")?'
|
|
79461
|
+
}
|
|
79462
|
+
].concat(EXPRESSIONS2)
|
|
79463
|
+
};
|
|
79464
|
+
}
|
|
78695
79465
|
function clojure(hljs2) {
|
|
78696
79466
|
const SYMBOLSTART = "a-zA-Z_\\-!.?+*=<>&'";
|
|
78697
79467
|
const SYMBOL_RE = "[#]?[" + SYMBOLSTART + "][" + SYMBOLSTART + "0-9/;:$#]*";
|
|
@@ -82763,6 +83533,351 @@ function nginx(hljs2) {
|
|
|
82763
83533
|
illegal: "[^\\s\\}\\{]"
|
|
82764
83534
|
};
|
|
82765
83535
|
}
|
|
83536
|
+
function nix(hljs2) {
|
|
83537
|
+
const regex2 = hljs2.regex;
|
|
83538
|
+
const KEYWORDS2 = {
|
|
83539
|
+
keyword: [
|
|
83540
|
+
"assert",
|
|
83541
|
+
"else",
|
|
83542
|
+
"if",
|
|
83543
|
+
"in",
|
|
83544
|
+
"inherit",
|
|
83545
|
+
"let",
|
|
83546
|
+
"or",
|
|
83547
|
+
"rec",
|
|
83548
|
+
"then",
|
|
83549
|
+
"with"
|
|
83550
|
+
],
|
|
83551
|
+
literal: [
|
|
83552
|
+
"true",
|
|
83553
|
+
"false",
|
|
83554
|
+
"null"
|
|
83555
|
+
],
|
|
83556
|
+
built_in: [
|
|
83557
|
+
// toplevel builtins
|
|
83558
|
+
"abort",
|
|
83559
|
+
"baseNameOf",
|
|
83560
|
+
"builtins",
|
|
83561
|
+
"derivation",
|
|
83562
|
+
"derivationStrict",
|
|
83563
|
+
"dirOf",
|
|
83564
|
+
"fetchGit",
|
|
83565
|
+
"fetchMercurial",
|
|
83566
|
+
"fetchTarball",
|
|
83567
|
+
"fetchTree",
|
|
83568
|
+
"fromTOML",
|
|
83569
|
+
"import",
|
|
83570
|
+
"isNull",
|
|
83571
|
+
"map",
|
|
83572
|
+
"placeholder",
|
|
83573
|
+
"removeAttrs",
|
|
83574
|
+
"scopedImport",
|
|
83575
|
+
"throw",
|
|
83576
|
+
"toString"
|
|
83577
|
+
]
|
|
83578
|
+
};
|
|
83579
|
+
const BUILTINS = {
|
|
83580
|
+
scope: "built_in",
|
|
83581
|
+
match: regex2.either(...[
|
|
83582
|
+
"abort",
|
|
83583
|
+
"add",
|
|
83584
|
+
"addDrvOutputDependencies",
|
|
83585
|
+
"addErrorContext",
|
|
83586
|
+
"all",
|
|
83587
|
+
"any",
|
|
83588
|
+
"appendContext",
|
|
83589
|
+
"attrNames",
|
|
83590
|
+
"attrValues",
|
|
83591
|
+
"baseNameOf",
|
|
83592
|
+
"bitAnd",
|
|
83593
|
+
"bitOr",
|
|
83594
|
+
"bitXor",
|
|
83595
|
+
"break",
|
|
83596
|
+
"builtins",
|
|
83597
|
+
"catAttrs",
|
|
83598
|
+
"ceil",
|
|
83599
|
+
"compareVersions",
|
|
83600
|
+
"concatLists",
|
|
83601
|
+
"concatMap",
|
|
83602
|
+
"concatStringsSep",
|
|
83603
|
+
"convertHash",
|
|
83604
|
+
"currentSystem",
|
|
83605
|
+
"currentTime",
|
|
83606
|
+
"deepSeq",
|
|
83607
|
+
"derivation",
|
|
83608
|
+
"derivationStrict",
|
|
83609
|
+
"dirOf",
|
|
83610
|
+
"div",
|
|
83611
|
+
"elem",
|
|
83612
|
+
"elemAt",
|
|
83613
|
+
"false",
|
|
83614
|
+
"fetchGit",
|
|
83615
|
+
"fetchMercurial",
|
|
83616
|
+
"fetchTarball",
|
|
83617
|
+
"fetchTree",
|
|
83618
|
+
"fetchurl",
|
|
83619
|
+
"filter",
|
|
83620
|
+
"filterSource",
|
|
83621
|
+
"findFile",
|
|
83622
|
+
"flakeRefToString",
|
|
83623
|
+
"floor",
|
|
83624
|
+
"foldl'",
|
|
83625
|
+
"fromJSON",
|
|
83626
|
+
"fromTOML",
|
|
83627
|
+
"functionArgs",
|
|
83628
|
+
"genList",
|
|
83629
|
+
"genericClosure",
|
|
83630
|
+
"getAttr",
|
|
83631
|
+
"getContext",
|
|
83632
|
+
"getEnv",
|
|
83633
|
+
"getFlake",
|
|
83634
|
+
"groupBy",
|
|
83635
|
+
"hasAttr",
|
|
83636
|
+
"hasContext",
|
|
83637
|
+
"hashFile",
|
|
83638
|
+
"hashString",
|
|
83639
|
+
"head",
|
|
83640
|
+
"import",
|
|
83641
|
+
"intersectAttrs",
|
|
83642
|
+
"isAttrs",
|
|
83643
|
+
"isBool",
|
|
83644
|
+
"isFloat",
|
|
83645
|
+
"isFunction",
|
|
83646
|
+
"isInt",
|
|
83647
|
+
"isList",
|
|
83648
|
+
"isNull",
|
|
83649
|
+
"isPath",
|
|
83650
|
+
"isString",
|
|
83651
|
+
"langVersion",
|
|
83652
|
+
"length",
|
|
83653
|
+
"lessThan",
|
|
83654
|
+
"listToAttrs",
|
|
83655
|
+
"map",
|
|
83656
|
+
"mapAttrs",
|
|
83657
|
+
"match",
|
|
83658
|
+
"mul",
|
|
83659
|
+
"nixPath",
|
|
83660
|
+
"nixVersion",
|
|
83661
|
+
"null",
|
|
83662
|
+
"parseDrvName",
|
|
83663
|
+
"parseFlakeRef",
|
|
83664
|
+
"partition",
|
|
83665
|
+
"path",
|
|
83666
|
+
"pathExists",
|
|
83667
|
+
"placeholder",
|
|
83668
|
+
"readDir",
|
|
83669
|
+
"readFile",
|
|
83670
|
+
"readFileType",
|
|
83671
|
+
"removeAttrs",
|
|
83672
|
+
"replaceStrings",
|
|
83673
|
+
"scopedImport",
|
|
83674
|
+
"seq",
|
|
83675
|
+
"sort",
|
|
83676
|
+
"split",
|
|
83677
|
+
"splitVersion",
|
|
83678
|
+
"storeDir",
|
|
83679
|
+
"storePath",
|
|
83680
|
+
"stringLength",
|
|
83681
|
+
"sub",
|
|
83682
|
+
"substring",
|
|
83683
|
+
"tail",
|
|
83684
|
+
"throw",
|
|
83685
|
+
"toFile",
|
|
83686
|
+
"toJSON",
|
|
83687
|
+
"toPath",
|
|
83688
|
+
"toString",
|
|
83689
|
+
"toXML",
|
|
83690
|
+
"trace",
|
|
83691
|
+
"traceVerbose",
|
|
83692
|
+
"true",
|
|
83693
|
+
"tryEval",
|
|
83694
|
+
"typeOf",
|
|
83695
|
+
"unsafeDiscardOutputDependency",
|
|
83696
|
+
"unsafeDiscardStringContext",
|
|
83697
|
+
"unsafeGetAttrPos",
|
|
83698
|
+
"warn",
|
|
83699
|
+
"zipAttrsWith"
|
|
83700
|
+
].map((b2) => `builtins\\.${b2}`)),
|
|
83701
|
+
relevance: 10
|
|
83702
|
+
};
|
|
83703
|
+
const IDENTIFIER_REGEX = "[A-Za-z_][A-Za-z0-9_'-]*";
|
|
83704
|
+
const LOOKUP_PATH = {
|
|
83705
|
+
scope: "symbol",
|
|
83706
|
+
match: new RegExp(`<${IDENTIFIER_REGEX}(/${IDENTIFIER_REGEX})*>`)
|
|
83707
|
+
};
|
|
83708
|
+
const PATH_PIECE = "[A-Za-z0-9_\\+\\.-]+";
|
|
83709
|
+
const PATH = {
|
|
83710
|
+
scope: "symbol",
|
|
83711
|
+
match: new RegExp(`(\\.\\.|\\.|~)?/(${PATH_PIECE})?(/${PATH_PIECE})*(?=[\\s;])`)
|
|
83712
|
+
};
|
|
83713
|
+
const OPERATOR_WITHOUT_MINUS_REGEX = regex2.either(...[
|
|
83714
|
+
"==",
|
|
83715
|
+
"=",
|
|
83716
|
+
"\\+\\+",
|
|
83717
|
+
"\\+",
|
|
83718
|
+
"<=",
|
|
83719
|
+
"<\\|",
|
|
83720
|
+
"<",
|
|
83721
|
+
">=",
|
|
83722
|
+
">",
|
|
83723
|
+
"->",
|
|
83724
|
+
"//",
|
|
83725
|
+
"/",
|
|
83726
|
+
"!=",
|
|
83727
|
+
"!",
|
|
83728
|
+
"\\|\\|",
|
|
83729
|
+
"\\|>",
|
|
83730
|
+
"\\?",
|
|
83731
|
+
"\\*",
|
|
83732
|
+
"&&"
|
|
83733
|
+
]);
|
|
83734
|
+
const OPERATOR = {
|
|
83735
|
+
scope: "operator",
|
|
83736
|
+
match: regex2.concat(OPERATOR_WITHOUT_MINUS_REGEX, /(?!-)/),
|
|
83737
|
+
relevance: 0
|
|
83738
|
+
};
|
|
83739
|
+
const NUMBER = {
|
|
83740
|
+
scope: "number",
|
|
83741
|
+
match: new RegExp(`${hljs2.NUMBER_RE}(?!-)`),
|
|
83742
|
+
relevance: 0
|
|
83743
|
+
};
|
|
83744
|
+
const MINUS_OPERATOR = {
|
|
83745
|
+
variants: [
|
|
83746
|
+
{
|
|
83747
|
+
scope: "operator",
|
|
83748
|
+
beforeMatch: /\s/,
|
|
83749
|
+
// The (?!>) is used to ensure this doesn't collide with the '->' operator
|
|
83750
|
+
begin: /-(?!>)/
|
|
83751
|
+
},
|
|
83752
|
+
{
|
|
83753
|
+
begin: [
|
|
83754
|
+
new RegExp(`${hljs2.NUMBER_RE}`),
|
|
83755
|
+
/-/,
|
|
83756
|
+
/(?!>)/
|
|
83757
|
+
],
|
|
83758
|
+
beginScope: {
|
|
83759
|
+
1: "number",
|
|
83760
|
+
2: "operator"
|
|
83761
|
+
}
|
|
83762
|
+
},
|
|
83763
|
+
{
|
|
83764
|
+
begin: [
|
|
83765
|
+
OPERATOR_WITHOUT_MINUS_REGEX,
|
|
83766
|
+
/-/,
|
|
83767
|
+
/(?!>)/
|
|
83768
|
+
],
|
|
83769
|
+
beginScope: {
|
|
83770
|
+
1: "operator",
|
|
83771
|
+
2: "operator"
|
|
83772
|
+
}
|
|
83773
|
+
}
|
|
83774
|
+
],
|
|
83775
|
+
relevance: 0
|
|
83776
|
+
};
|
|
83777
|
+
const ATTRS = {
|
|
83778
|
+
beforeMatch: /(^|\{|;)\s*/,
|
|
83779
|
+
begin: new RegExp(`${IDENTIFIER_REGEX}(\\.${IDENTIFIER_REGEX})*\\s*=(?!=)`),
|
|
83780
|
+
returnBegin: true,
|
|
83781
|
+
relevance: 0,
|
|
83782
|
+
contains: [
|
|
83783
|
+
{
|
|
83784
|
+
scope: "attr",
|
|
83785
|
+
match: new RegExp(`${IDENTIFIER_REGEX}(\\.${IDENTIFIER_REGEX})*(?=\\s*=)`),
|
|
83786
|
+
relevance: 0.2
|
|
83787
|
+
}
|
|
83788
|
+
]
|
|
83789
|
+
};
|
|
83790
|
+
const NORMAL_ESCAPED_DOLLAR = {
|
|
83791
|
+
scope: "char.escape",
|
|
83792
|
+
match: /\\\$/
|
|
83793
|
+
};
|
|
83794
|
+
const INDENTED_ESCAPED_DOLLAR = {
|
|
83795
|
+
scope: "char.escape",
|
|
83796
|
+
match: /''\$/
|
|
83797
|
+
};
|
|
83798
|
+
const ANTIQUOTE = {
|
|
83799
|
+
scope: "subst",
|
|
83800
|
+
begin: /\$\{/,
|
|
83801
|
+
end: /\}/,
|
|
83802
|
+
keywords: KEYWORDS2
|
|
83803
|
+
};
|
|
83804
|
+
const ESCAPED_DOUBLEQUOTE = {
|
|
83805
|
+
scope: "char.escape",
|
|
83806
|
+
match: /'''/
|
|
83807
|
+
};
|
|
83808
|
+
const ESCAPED_LITERAL = {
|
|
83809
|
+
scope: "char.escape",
|
|
83810
|
+
match: /\\(?!\$)./
|
|
83811
|
+
};
|
|
83812
|
+
const STRING = {
|
|
83813
|
+
scope: "string",
|
|
83814
|
+
variants: [
|
|
83815
|
+
{
|
|
83816
|
+
begin: "''",
|
|
83817
|
+
end: "''",
|
|
83818
|
+
contains: [
|
|
83819
|
+
INDENTED_ESCAPED_DOLLAR,
|
|
83820
|
+
ANTIQUOTE,
|
|
83821
|
+
ESCAPED_DOUBLEQUOTE,
|
|
83822
|
+
ESCAPED_LITERAL
|
|
83823
|
+
]
|
|
83824
|
+
},
|
|
83825
|
+
{
|
|
83826
|
+
begin: '"',
|
|
83827
|
+
end: '"',
|
|
83828
|
+
contains: [
|
|
83829
|
+
NORMAL_ESCAPED_DOLLAR,
|
|
83830
|
+
ANTIQUOTE,
|
|
83831
|
+
ESCAPED_LITERAL
|
|
83832
|
+
]
|
|
83833
|
+
}
|
|
83834
|
+
]
|
|
83835
|
+
};
|
|
83836
|
+
const FUNCTION_PARAMS = {
|
|
83837
|
+
scope: "params",
|
|
83838
|
+
match: new RegExp(`${IDENTIFIER_REGEX}\\s*:(?=\\s)`)
|
|
83839
|
+
};
|
|
83840
|
+
const EXPRESSIONS2 = [
|
|
83841
|
+
NUMBER,
|
|
83842
|
+
hljs2.HASH_COMMENT_MODE,
|
|
83843
|
+
hljs2.C_BLOCK_COMMENT_MODE,
|
|
83844
|
+
hljs2.COMMENT(
|
|
83845
|
+
/\/\*\*(?!\/)/,
|
|
83846
|
+
/\*\//,
|
|
83847
|
+
{
|
|
83848
|
+
subLanguage: "markdown",
|
|
83849
|
+
relevance: 0
|
|
83850
|
+
}
|
|
83851
|
+
),
|
|
83852
|
+
BUILTINS,
|
|
83853
|
+
STRING,
|
|
83854
|
+
LOOKUP_PATH,
|
|
83855
|
+
PATH,
|
|
83856
|
+
FUNCTION_PARAMS,
|
|
83857
|
+
ATTRS,
|
|
83858
|
+
MINUS_OPERATOR,
|
|
83859
|
+
OPERATOR
|
|
83860
|
+
];
|
|
83861
|
+
ANTIQUOTE.contains = EXPRESSIONS2;
|
|
83862
|
+
const REPL = [
|
|
83863
|
+
{
|
|
83864
|
+
scope: "meta.prompt",
|
|
83865
|
+
match: /^nix-repl>(?=\s)/,
|
|
83866
|
+
relevance: 10
|
|
83867
|
+
},
|
|
83868
|
+
{
|
|
83869
|
+
scope: "meta",
|
|
83870
|
+
beforeMatch: /\s+/,
|
|
83871
|
+
begin: /:([a-z]+|\?)/
|
|
83872
|
+
}
|
|
83873
|
+
];
|
|
83874
|
+
return {
|
|
83875
|
+
name: "Nix",
|
|
83876
|
+
aliases: ["nixos"],
|
|
83877
|
+
keywords: KEYWORDS2,
|
|
83878
|
+
contains: EXPRESSIONS2.concat(REPL)
|
|
83879
|
+
};
|
|
83880
|
+
}
|
|
82766
83881
|
function ocaml(hljs2) {
|
|
82767
83882
|
return {
|
|
82768
83883
|
name: "OCaml",
|
|
@@ -98739,6 +99854,12 @@ lowlight.register("prolog", prolog);
|
|
|
98739
99854
|
lowlight.register("tcl", tcl);
|
|
98740
99855
|
lowlight.register("pascal", delphi);
|
|
98741
99856
|
lowlight.register("delphi", delphi);
|
|
99857
|
+
lowlight.register("awk", awk);
|
|
99858
|
+
lowlight.register("axapta", axapta);
|
|
99859
|
+
lowlight.register("angelscript", angelscript);
|
|
99860
|
+
lowlight.register("asciidoc", asciidoc);
|
|
99861
|
+
lowlight.register("nix", nix);
|
|
99862
|
+
lowlight.register("ceylon", ceylon);
|
|
98742
99863
|
const CodeBlockCustom = index_default$1.extend({
|
|
98743
99864
|
addOptions() {
|
|
98744
99865
|
return {
|
|
@@ -123139,7 +124260,7 @@ const _sfc_main = {
|
|
|
123139
124260
|
])), [
|
|
123140
124261
|
[_directive_loading, unref(isLoading)]
|
|
123141
124262
|
]),
|
|
123142
|
-
__props.limitLength != Infinity ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
124263
|
+
__props.limitLength != Infinity && !__props.isInline ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
123143
124264
|
createElementVNode("div", null, [
|
|
123144
124265
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
123145
124266
|
]),
|
|
@@ -123150,7 +124271,7 @@ const _sfc_main = {
|
|
|
123150
124271
|
};
|
|
123151
124272
|
}
|
|
123152
124273
|
};
|
|
123153
|
-
const TiptapVue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
124274
|
+
const TiptapVue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-61a8ac4c"]]);
|
|
123154
124275
|
const components = [
|
|
123155
124276
|
{
|
|
123156
124277
|
name: "TiptapVue",
|