@covalent/components 8.5.3 → 8.5.5
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/code-snippet.js +1 -1
- package/code-snippet.mjs +93 -93
- package/package.json +1 -1
- package/style.css +1 -1
- package/theme/dark-theme.css +1 -1
- package/theme/dark-theme.css.map +1 -1
- package/theme/light-theme.css +1 -1
- package/theme/light-theme.css.map +1 -1
package/code-snippet.mjs
CHANGED
@@ -3,7 +3,7 @@ import { n as Te } from "./property-9b6ea53b.mjs";
|
|
3
3
|
import { o as It } from "./query-assigned-nodes-df691e78.mjs";
|
4
4
|
import { o as kt } from "./class-map-4b94b017.mjs";
|
5
5
|
import { a as xt } from "./_commonjsHelpers-de2741aa.mjs";
|
6
|
-
const Dt = `:host{background-color:var(--mdc-theme-surface-canvas);border-radius:var(--mdc-shape-medium);display:block;position:relative;overflow:hidden}:host pre{margin:0;padding:16px 0;overflow:auto}:host pre code.hljs.cv-code-snippet{padding:0 16px;display:block;overflow-x:auto}:host .hljs{color:var(--cov-theme-code-snippet-color, #abb2bf)}:host .hljs-comment,:host .hljs-quote{color:var(--cov-theme-code-snippet-comment, #5c6370);font-style:italic}:host .hljs-doctag,:host .hljs-formula,:host .hljs-keyword{color:var(--cov-theme-code-snippet-keyword, #c678dd)}:host .hljs-deletion,:host .hljs-name,:host .hljs-section,:host .hljs-selector-tag,:host .hljs-subst{color:var(--cov-theme-code-snippet-selector, #e06c75)}:host .hljs-literal{color:var(--cov-theme-code-snippet-literal, #56b6c2)}:host .hljs-addition,:host .hljs-attribute,:host .hljs-meta .hljs-string,:host .hljs-regexp,:host .hljs-string{color:var(--cov-theme-code-snippet-string, #98c379)}:host .hljs-attr,:host .hljs-number,:host .hljs-selector-attr,:host .hljs-selector-class,:host .hljs-selector-pseudo,:host .hljs-template-variable,:host .hljs-type,:host .hljs-variable{color:var(--cov-theme-code-snippet-variable, #d19a66)}:host .hljs-bullet,:host .hljs-link,:host .hljs-meta,:host .hljs-selector-id,:host .hljs-symbol,:host .hljs-title{color:var(--cov-theme-code-snippet-title, #61aeee)}:host .hljs-built_in,:host .hljs-class .hljs-title,:host .hljs-title.class_{color:var(--cov-theme-code-snippet-class, #e6c07b)}:host .hljs-emphasis{font-style:italic}:host .hljs-strong{font-weight:700}:host .hljs-link{text-decoration:underline}:host([inline]){border-radius:0}.header{border-bottom:1px solid var(--mdc-theme-border);position:sticky;top:-8px;background-color:var(--mdc-theme-surface-canvas);display:flex;justify-content:space-between;padding:4px 8px 4px 16px;align-items:center;border-radius:var(--mdc-shape-medium) var(--mdc-shape-medium) 0 0}.title{font-family:var(--mdc-typography-subtitle2-font-family);font-size:var(--mdc-typography-subtitle2-font-size);font-weight:var(--mdc-typography-subtitle2-font-weight);line-height:var(--mdc-typography-subtitle2-line-height);padding-right:16px}
|
6
|
+
const Dt = `:host{background-color:var(--mdc-theme-surface-canvas);border-radius:var(--mdc-shape-medium);display:block;position:relative;overflow:hidden}:host pre{margin:0;padding:16px 0;overflow:auto}:host pre code.hljs.cv-code-snippet{padding:0 16px;display:block;overflow-x:auto;font-family:var(--cov-theme-code-font-family);font-size:var(--cov-theme-code-font-size);font-weight:var(--cov-theme-code-font-weight);line-height:var(--cov-theme-code-line-height)}:host .hljs{color:var(--cov-theme-code-snippet-color, #abb2bf)}:host .hljs-comment,:host .hljs-quote{color:var(--cov-theme-code-snippet-comment, #5c6370);font-style:italic}:host .hljs-doctag,:host .hljs-formula,:host .hljs-keyword{color:var(--cov-theme-code-snippet-keyword, #c678dd)}:host .hljs-deletion,:host .hljs-name,:host .hljs-section,:host .hljs-selector-tag,:host .hljs-subst{color:var(--cov-theme-code-snippet-selector, #e06c75)}:host .hljs-literal{color:var(--cov-theme-code-snippet-literal, #56b6c2)}:host .hljs-addition,:host .hljs-attribute,:host .hljs-meta .hljs-string,:host .hljs-regexp,:host .hljs-string{color:var(--cov-theme-code-snippet-string, #98c379)}:host .hljs-attr,:host .hljs-number,:host .hljs-selector-attr,:host .hljs-selector-class,:host .hljs-selector-pseudo,:host .hljs-template-variable,:host .hljs-type,:host .hljs-variable{color:var(--cov-theme-code-snippet-variable, #d19a66)}:host .hljs-bullet,:host .hljs-link,:host .hljs-meta,:host .hljs-selector-id,:host .hljs-symbol,:host .hljs-title{color:var(--cov-theme-code-snippet-title, #61aeee)}:host .hljs-built_in,:host .hljs-class .hljs-title,:host .hljs-title.class_{color:var(--cov-theme-code-snippet-class, #e6c07b)}:host .hljs-emphasis{font-style:italic}:host .hljs-strong{font-weight:700}:host .hljs-link{text-decoration:underline}:host([inline]){border-radius:0}.header{border-bottom:1px solid var(--mdc-theme-border);position:sticky;top:-8px;background-color:var(--mdc-theme-surface-canvas);display:flex;justify-content:space-between;padding:4px 8px 4px 16px;align-items:center;border-radius:var(--mdc-shape-medium) var(--mdc-shape-medium) 0 0}.title{font-family:var(--mdc-typography-subtitle2-font-family);font-size:var(--mdc-typography-subtitle2-font-size);font-weight:var(--mdc-typography-subtitle2-font-weight);line-height:var(--mdc-typography-subtitle2-line-height);padding-right:16px}
|
7
7
|
`;
|
8
8
|
function gt(n) {
|
9
9
|
return n instanceof Map ? n.clear = n.delete = n.set = function() {
|
@@ -103,13 +103,13 @@ class Ut {
|
|
103
103
|
this.buffer += `<span class="${e}">`;
|
104
104
|
}
|
105
105
|
}
|
106
|
-
const
|
106
|
+
const wn = (n = {}) => {
|
107
107
|
const e = { children: [] };
|
108
108
|
return Object.assign(e, n), e;
|
109
109
|
};
|
110
110
|
class hn {
|
111
111
|
constructor() {
|
112
|
-
this.rootNode =
|
112
|
+
this.rootNode = wn(), this.stack = [this.rootNode];
|
113
113
|
}
|
114
114
|
get top() {
|
115
115
|
return this.stack[this.stack.length - 1];
|
@@ -123,7 +123,7 @@ class hn {
|
|
123
123
|
}
|
124
124
|
/** @param {string} scope */
|
125
125
|
openNode(e) {
|
126
|
-
const t =
|
126
|
+
const t = wn({ scope: e });
|
127
127
|
this.add(t), this.stack.push(t);
|
128
128
|
}
|
129
129
|
closeNode() {
|
@@ -494,12 +494,12 @@ function mr(n, e) {
|
|
494
494
|
function Er(n) {
|
495
495
|
return pr.includes(n.toLowerCase());
|
496
496
|
}
|
497
|
-
const
|
497
|
+
const On = {}, pe = (n) => {
|
498
498
|
console.error(n);
|
499
499
|
}, Rn = (n, ...e) => {
|
500
500
|
console.log(`WARN: ${n}`, ...e);
|
501
501
|
}, he = (n, e) => {
|
502
|
-
|
502
|
+
On[`${n}/${e}`] || (console.log(`Deprecated as of ${n}. ${e}`), On[`${n}/${e}`] = !0);
|
503
503
|
}, Ie = new Error();
|
504
504
|
function yt(n, e, { key: t }) {
|
505
505
|
let s = 0;
|
@@ -651,12 +651,12 @@ function Sr(n) {
|
|
651
651
|
})), n.cachedVariants ? n.cachedVariants : vt(n) ? ge(n, { starts: n.starts ? ge(n.starts) : null }) : Object.isFrozen(n) ? ge(n) : n;
|
652
652
|
}
|
653
653
|
var Tr = "11.9.0";
|
654
|
-
class
|
654
|
+
class wr extends Error {
|
655
655
|
constructor(e, t) {
|
656
656
|
super(e), this.name = "HTMLInjectionError", this.html = t;
|
657
657
|
}
|
658
658
|
}
|
659
|
-
const Le = bt, An = ge, Mn = Symbol("nomatch"),
|
659
|
+
const Le = bt, An = ge, Mn = Symbol("nomatch"), Or = 7, St = function(n) {
|
660
660
|
const e = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null), s = [];
|
661
661
|
let c = !0;
|
662
662
|
const o = "Could not find the language '{}', did you forget to load/include a language module?", a = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
@@ -678,26 +678,26 @@ const Le = bt, An = ge, Mn = Symbol("nomatch"), wr = 7, St = function(n) {
|
|
678
678
|
function d(u) {
|
679
679
|
let f = u.className + " ";
|
680
680
|
f += u.parentNode ? u.parentNode.className : "";
|
681
|
-
const
|
682
|
-
if (
|
683
|
-
const k = I(
|
684
|
-
return k || (Rn(o.replace("{}",
|
681
|
+
const O = r.languageDetectRe.exec(f);
|
682
|
+
if (O) {
|
683
|
+
const k = I(O[1]);
|
684
|
+
return k || (Rn(o.replace("{}", O[1])), Rn("Falling back to no-highlight mode for this block.", u)), k ? O[1] : "no-highlight";
|
685
685
|
}
|
686
686
|
return f.split(/\s+/).find((k) => i(k) || I(k));
|
687
687
|
}
|
688
|
-
function l(u, f,
|
688
|
+
function l(u, f, O) {
|
689
689
|
let k = "", U = "";
|
690
|
-
typeof f == "object" ? (k = u,
|
691
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f),
|
690
|
+
typeof f == "object" ? (k = u, O = f.ignoreIllegals, U = f.language) : (he("10.7.0", "highlight(lang, code, ...args) has been deprecated."), he("10.7.0", `Please use highlight(code, options) instead.
|
691
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), O === void 0 && (O = !0);
|
692
692
|
const Y = {
|
693
693
|
code: k,
|
694
694
|
language: U
|
695
695
|
};
|
696
696
|
B("before:highlight", Y);
|
697
|
-
const ne = Y.result ? Y.result : g(Y.language, Y.code,
|
697
|
+
const ne = Y.result ? Y.result : g(Y.language, Y.code, O);
|
698
698
|
return ne.code = Y.code, B("after:highlight", ne), ne;
|
699
699
|
}
|
700
|
-
function g(u, f,
|
700
|
+
function g(u, f, O, k) {
|
701
701
|
const U = /* @__PURE__ */ Object.create(null);
|
702
702
|
function Y(_, y) {
|
703
703
|
return _.keywords[y];
|
@@ -715,7 +715,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
715
715
|
const x = re.case_insensitive ? y[0].toLowerCase() : y[0], X = Y(S, x);
|
716
716
|
if (X) {
|
717
717
|
const [se, xe] = X;
|
718
|
-
if (G.addText(T), T = "", U[x] = (U[x] || 0) + 1, U[x] <=
|
718
|
+
if (G.addText(T), T = "", U[x] = (U[x] || 0) + 1, U[x] <= Or && (fe += xe), se.startsWith("_"))
|
719
719
|
T += y[0];
|
720
720
|
else {
|
721
721
|
const De = re.classNameAliases[se] || se;
|
@@ -807,7 +807,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
807
807
|
_.forEach((y) => G.openNode(y));
|
808
808
|
}
|
809
809
|
let be = {};
|
810
|
-
function
|
810
|
+
function we(_, y) {
|
811
811
|
const T = y && y[0];
|
812
812
|
if (P += _, T == null)
|
813
813
|
return z(), 0;
|
@@ -820,7 +820,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
820
820
|
}
|
821
821
|
if (be = y, y.type === "begin")
|
822
822
|
return ee(y);
|
823
|
-
if (y.type === "illegal" && !
|
823
|
+
if (y.type === "illegal" && !O) {
|
824
824
|
const x = new Error('Illegal lexeme "' + T + '" for mode "' + (S.scope || "<unnamed>") + '"');
|
825
825
|
throw x.mode = S, x;
|
826
826
|
} else if (y.type === "end") {
|
@@ -837,8 +837,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
837
837
|
const re = I(u);
|
838
838
|
if (!re)
|
839
839
|
throw pe(o.replace("{}", u)), new Error('Unknown language: "' + u + '"');
|
840
|
-
const
|
841
|
-
let Ee = "", S = k ||
|
840
|
+
const Oe = vr(re);
|
841
|
+
let Ee = "", S = k || Oe;
|
842
842
|
const Re = {}, G = new r.__emitter(r);
|
843
843
|
oe();
|
844
844
|
let P = "", fe = 0, de = 0, ue = 0, ce = !1;
|
@@ -851,10 +851,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
851
851
|
const _ = S.matcher.exec(f);
|
852
852
|
if (!_)
|
853
853
|
break;
|
854
|
-
const y = f.substring(de, _.index), T =
|
854
|
+
const y = f.substring(de, _.index), T = we(y, _);
|
855
855
|
de = _.index + T;
|
856
856
|
}
|
857
|
-
|
857
|
+
we(f.substring(de));
|
858
858
|
}
|
859
859
|
return G.finalize(), Ee = G.toHTML(), {
|
860
860
|
language: u,
|
@@ -905,10 +905,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
905
905
|
}
|
906
906
|
function p(u, f) {
|
907
907
|
f = f || r.languages || Object.keys(e);
|
908
|
-
const
|
908
|
+
const O = b(u), k = f.filter(I).filter(F).map(
|
909
909
|
(z) => g(z, u, !1)
|
910
910
|
);
|
911
|
-
k.unshift(
|
911
|
+
k.unshift(O);
|
912
912
|
const U = k.sort((z, Z) => {
|
913
913
|
if (z.relevance !== Z.relevance)
|
914
914
|
return Z.relevance - z.relevance;
|
@@ -922,30 +922,30 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
922
922
|
}), [Y, ne] = U, te = Y;
|
923
923
|
return te.secondBest = ne, te;
|
924
924
|
}
|
925
|
-
function m(u, f,
|
926
|
-
const k = f && t[f] ||
|
925
|
+
function m(u, f, O) {
|
926
|
+
const k = f && t[f] || O;
|
927
927
|
u.classList.add("hljs"), u.classList.add(`language-${k}`);
|
928
928
|
}
|
929
929
|
function E(u) {
|
930
930
|
let f = null;
|
931
|
-
const
|
932
|
-
if (i(
|
931
|
+
const O = d(u);
|
932
|
+
if (i(O))
|
933
933
|
return;
|
934
934
|
if (B(
|
935
935
|
"before:highlightElement",
|
936
|
-
{ el: u, language:
|
936
|
+
{ el: u, language: O }
|
937
937
|
), u.dataset.highlighted) {
|
938
938
|
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", u);
|
939
939
|
return;
|
940
940
|
}
|
941
941
|
if (u.children.length > 0 && (r.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(u)), r.throwUnescapedHTML))
|
942
|
-
throw new
|
942
|
+
throw new wr(
|
943
943
|
"One of your code blocks includes unescaped HTML.",
|
944
944
|
u.innerHTML
|
945
945
|
);
|
946
946
|
f = u;
|
947
|
-
const k = f.textContent, U =
|
948
|
-
u.innerHTML = U.value, u.dataset.highlighted = "yes", m(u,
|
947
|
+
const k = f.textContent, U = O ? l(k, { language: O, ignoreIllegals: !0 }) : p(k);
|
948
|
+
u.innerHTML = U.value, u.dataset.highlighted = "yes", m(u, O, U.language), u.result = {
|
949
949
|
language: U.language,
|
950
950
|
// TODO: remove with version 11.0
|
951
951
|
re: U.relevance,
|
@@ -961,7 +961,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
961
961
|
const h = () => {
|
962
962
|
M(), he("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
963
963
|
};
|
964
|
-
function
|
964
|
+
function w() {
|
965
965
|
M(), he("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
966
966
|
}
|
967
967
|
let C = !1;
|
@@ -977,17 +977,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
977
977
|
}
|
978
978
|
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", A, !1);
|
979
979
|
function D(u, f) {
|
980
|
-
let
|
980
|
+
let O = null;
|
981
981
|
try {
|
982
|
-
|
982
|
+
O = f(n);
|
983
983
|
} catch (k) {
|
984
984
|
if (pe("Language definition for '{}' could not be registered.".replace("{}", u)), c)
|
985
985
|
pe(k);
|
986
986
|
else
|
987
987
|
throw k;
|
988
|
-
|
988
|
+
O = a;
|
989
989
|
}
|
990
|
-
|
990
|
+
O.name || (O.name = u), e[u] = O, O.rawDefinition = f.bind(null, n), O.aliases && H(O.aliases, { languageName: u });
|
991
991
|
}
|
992
992
|
function L(u) {
|
993
993
|
delete e[u];
|
@@ -1001,8 +1001,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
1001
1001
|
return u = (u || "").toLowerCase(), e[u] || e[t[u]];
|
1002
1002
|
}
|
1003
1003
|
function H(u, { languageName: f }) {
|
1004
|
-
typeof u == "string" && (u = [u]), u.forEach((
|
1005
|
-
t[
|
1004
|
+
typeof u == "string" && (u = [u]), u.forEach((O) => {
|
1005
|
+
t[O.toLowerCase()] = f;
|
1006
1006
|
});
|
1007
1007
|
}
|
1008
1008
|
function F(u) {
|
@@ -1028,9 +1028,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
1028
1028
|
f !== -1 && s.splice(f, 1);
|
1029
1029
|
}
|
1030
1030
|
function B(u, f) {
|
1031
|
-
const
|
1031
|
+
const O = u;
|
1032
1032
|
s.forEach(function(k) {
|
1033
|
-
k[
|
1033
|
+
k[O] && k[O](f);
|
1034
1034
|
});
|
1035
1035
|
}
|
1036
1036
|
function V(u) {
|
@@ -1045,7 +1045,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = u, k = f), w ===
|
|
1045
1045
|
highlightBlock: V,
|
1046
1046
|
configure: N,
|
1047
1047
|
initHighlighting: h,
|
1048
|
-
initHighlightingOnLoad:
|
1048
|
+
initHighlightingOnLoad: w,
|
1049
1049
|
registerLanguage: D,
|
1050
1050
|
unregisterLanguage: L,
|
1051
1051
|
listLanguages: v,
|
@@ -1409,7 +1409,7 @@ function Mr() {
|
|
1409
1409
|
], N = [
|
1410
1410
|
"true",
|
1411
1411
|
"false"
|
1412
|
-
], h = { match: /(\/[a-z._-]+)+/ },
|
1412
|
+
], h = { match: /(\/[a-z._-]+)+/ }, w = [
|
1413
1413
|
"break",
|
1414
1414
|
"cd",
|
1415
1415
|
"continue",
|
@@ -1632,7 +1632,7 @@ function Mr() {
|
|
1632
1632
|
keyword: E,
|
1633
1633
|
literal: N,
|
1634
1634
|
built_in: [
|
1635
|
-
...
|
1635
|
+
...w,
|
1636
1636
|
...C,
|
1637
1637
|
// Shell modifiers
|
1638
1638
|
"set",
|
@@ -1792,7 +1792,7 @@ function Cr() {
|
|
1792
1792
|
literal: "true false NULL",
|
1793
1793
|
// TODO: apply hinting work similar to what was done in cpp.js
|
1794
1794
|
built_in: "std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
|
1795
|
-
},
|
1795
|
+
}, w = [
|
1796
1796
|
b,
|
1797
1797
|
i,
|
1798
1798
|
s,
|
@@ -1818,12 +1818,12 @@ function Cr() {
|
|
1818
1818
|
}
|
1819
1819
|
],
|
1820
1820
|
keywords: h,
|
1821
|
-
contains:
|
1821
|
+
contains: w.concat([
|
1822
1822
|
{
|
1823
1823
|
begin: /\(/,
|
1824
1824
|
end: /\)/,
|
1825
1825
|
keywords: h,
|
1826
|
-
contains:
|
1826
|
+
contains: w.concat(["self"]),
|
1827
1827
|
relevance: 0
|
1828
1828
|
}
|
1829
1829
|
]),
|
@@ -1900,7 +1900,7 @@ function Cr() {
|
|
1900
1900
|
contains: [].concat(
|
1901
1901
|
C,
|
1902
1902
|
M,
|
1903
|
-
|
1903
|
+
w,
|
1904
1904
|
[
|
1905
1905
|
b,
|
1906
1906
|
{
|
@@ -2146,7 +2146,7 @@ function Ir() {
|
|
2146
2146
|
"weak_ptr",
|
2147
2147
|
"wstring",
|
2148
2148
|
"wstring_view"
|
2149
|
-
],
|
2149
|
+
], w = [
|
2150
2150
|
"abort",
|
2151
2151
|
"abs",
|
2152
2152
|
"acos",
|
@@ -2264,7 +2264,7 @@ function Ir() {
|
|
2264
2264
|
relevance: 0,
|
2265
2265
|
keywords: {
|
2266
2266
|
// Only for relevance, not highlighting.
|
2267
|
-
_hint:
|
2267
|
+
_hint: w
|
2268
2268
|
},
|
2269
2269
|
begin: t.concat(
|
2270
2270
|
/\b/,
|
@@ -2659,7 +2659,7 @@ function kr() {
|
|
2659
2659
|
l,
|
2660
2660
|
e.APOS_STRING_MODE,
|
2661
2661
|
e.QUOTE_STRING_MODE
|
2662
|
-
] },
|
2662
|
+
] }, w = {
|
2663
2663
|
begin: "<",
|
2664
2664
|
end: ">",
|
2665
2665
|
contains: [
|
@@ -2722,7 +2722,7 @@ function kr() {
|
|
2722
2722
|
contains: [
|
2723
2723
|
{ beginKeywords: "where class" },
|
2724
2724
|
i,
|
2725
|
-
|
2725
|
+
w,
|
2726
2726
|
e.C_LINE_COMMENT_MODE,
|
2727
2727
|
e.C_BLOCK_COMMENT_MODE
|
2728
2728
|
]
|
@@ -2745,7 +2745,7 @@ function kr() {
|
|
2745
2745
|
illegal: /[^\s:]/,
|
2746
2746
|
contains: [
|
2747
2747
|
i,
|
2748
|
-
|
2748
|
+
w,
|
2749
2749
|
e.C_LINE_COMMENT_MODE,
|
2750
2750
|
e.C_BLOCK_COMMENT_MODE
|
2751
2751
|
]
|
@@ -2789,7 +2789,7 @@ function kr() {
|
|
2789
2789
|
returnBegin: !0,
|
2790
2790
|
contains: [
|
2791
2791
|
e.TITLE_MODE,
|
2792
|
-
|
2792
|
+
w
|
2793
2793
|
],
|
2794
2794
|
relevance: 0
|
2795
2795
|
},
|
@@ -4962,12 +4962,12 @@ function zr() {
|
|
4962
4962
|
literal: t,
|
4963
4963
|
built_in: r,
|
4964
4964
|
"variable.language": a
|
4965
|
-
}, h = "[0-9](_?[0-9])*",
|
4965
|
+
}, h = "[0-9](_?[0-9])*", w = `\\.(${h})`, C = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", M = {
|
4966
4966
|
className: "number",
|
4967
4967
|
variants: [
|
4968
4968
|
// DecimalLiteral
|
4969
|
-
{ begin: `(\\b(${C})((${
|
4970
|
-
{ begin: `\\b(${C})\\b((${
|
4969
|
+
{ begin: `(\\b(${C})((${w})|\\.)?|(${w}))[eE][+-]?(${h})\\b` },
|
4970
|
+
{ begin: `\\b(${C})\\b((${w})\\b|\\.)?|(${w})\\b` },
|
4971
4971
|
// DecimalBigIntegerLiteral
|
4972
4972
|
{ begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
|
4973
4973
|
// NonDecimalIntegerLiteral
|
@@ -5177,7 +5177,7 @@ function zr() {
|
|
5177
5177
|
className: "meta",
|
5178
5178
|
relevance: 10,
|
5179
5179
|
begin: /^\s*['"]use (strict|asm)['"]/
|
5180
|
-
},
|
5180
|
+
}, O = {
|
5181
5181
|
variants: [
|
5182
5182
|
{
|
5183
5183
|
match: [
|
@@ -5376,7 +5376,7 @@ function zr() {
|
|
5376
5376
|
}
|
5377
5377
|
]
|
5378
5378
|
},
|
5379
|
-
|
5379
|
+
O,
|
5380
5380
|
{
|
5381
5381
|
// prevent this from getting swallowed up by function
|
5382
5382
|
// since they appear "function like"
|
@@ -6324,7 +6324,7 @@ function Gr() {
|
|
6324
6324
|
begin: J,
|
6325
6325
|
relevance: ae
|
6326
6326
|
};
|
6327
|
-
},
|
6327
|
+
}, w = {
|
6328
6328
|
$pattern: /[a-z-]+/,
|
6329
6329
|
keyword: g,
|
6330
6330
|
attribute: t.join(" ")
|
@@ -6333,7 +6333,7 @@ function Gr() {
|
|
6333
6333
|
begin: "\\(",
|
6334
6334
|
end: "\\)",
|
6335
6335
|
contains: E,
|
6336
|
-
keywords:
|
6336
|
+
keywords: w,
|
6337
6337
|
relevance: 0
|
6338
6338
|
};
|
6339
6339
|
E.push(
|
@@ -6403,7 +6403,7 @@ function Gr() {
|
|
6403
6403
|
begin: "@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",
|
6404
6404
|
starts: {
|
6405
6405
|
end: "[;{}]",
|
6406
|
-
keywords:
|
6406
|
+
keywords: w,
|
6407
6407
|
returnEnd: !0,
|
6408
6408
|
contains: E,
|
6409
6409
|
relevance: 0
|
@@ -7493,7 +7493,7 @@ function Xr() {
|
|
7493
7493
|
"while",
|
7494
7494
|
"xor",
|
7495
7495
|
"yield"
|
7496
|
-
],
|
7496
|
+
], w = [
|
7497
7497
|
// Standard PHP library:
|
7498
7498
|
// <https://www.php.net/manual/en/book.spl.php>
|
7499
7499
|
"Error|0",
|
@@ -7596,14 +7596,14 @@ function Xr() {
|
|
7596
7596
|
B.push(V), V.toLowerCase() === V ? B.push(V.toUpperCase()) : B.push(V.toLowerCase());
|
7597
7597
|
}), B;
|
7598
7598
|
})(N),
|
7599
|
-
built_in:
|
7599
|
+
built_in: w
|
7600
7600
|
}, A = (W) => W.map((B) => B.replace(/\|\d+$/, "")), D = { variants: [
|
7601
7601
|
{
|
7602
7602
|
match: [
|
7603
7603
|
/new/,
|
7604
7604
|
t.concat(p, "+"),
|
7605
7605
|
// to prevent built ins from being confused as the class constructor call
|
7606
|
-
t.concat("(?!", A(
|
7606
|
+
t.concat("(?!", A(w).join("\\b|"), "\\b)"),
|
7607
7607
|
o
|
7608
7608
|
],
|
7609
7609
|
scope: {
|
@@ -7686,7 +7686,7 @@ function Xr() {
|
|
7686
7686
|
match: [
|
7687
7687
|
/\b/,
|
7688
7688
|
// to prevent keywords from being confused as the function title
|
7689
|
-
t.concat("(?!fn\\b|function\\b|", A(h).join("\\b|"), "|", A(
|
7689
|
+
t.concat("(?!fn\\b|function\\b|", A(h).join("\\b|"), "|", A(w).join("\\b|"), "\\b)"),
|
7690
7690
|
c,
|
7691
7691
|
t.concat(p, "*"),
|
7692
7692
|
t.lookahead(/(?=\()/)
|
@@ -8233,7 +8233,7 @@ function Jr() {
|
|
8233
8233
|
endsWithParent: !0
|
8234
8234
|
}
|
8235
8235
|
]
|
8236
|
-
},
|
8236
|
+
}, w = {
|
8237
8237
|
className: "params",
|
8238
8238
|
variants: [
|
8239
8239
|
// Exclude params in functions without params
|
@@ -8298,7 +8298,7 @@ function Jr() {
|
|
8298
8298
|
1: "keyword",
|
8299
8299
|
3: "title.function"
|
8300
8300
|
},
|
8301
|
-
contains: [
|
8301
|
+
contains: [w]
|
8302
8302
|
},
|
8303
8303
|
{
|
8304
8304
|
variants: [
|
@@ -8333,7 +8333,7 @@ function Jr() {
|
|
8333
8333
|
end: /(?=#)|$/,
|
8334
8334
|
contains: [
|
8335
8335
|
N,
|
8336
|
-
|
8336
|
+
w,
|
8337
8337
|
b
|
8338
8338
|
]
|
8339
8339
|
}
|
@@ -10179,7 +10179,7 @@ function aa() {
|
|
10179
10179
|
className: "operator",
|
10180
10180
|
begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
|
10181
10181
|
relevance: 0
|
10182
|
-
},
|
10182
|
+
}, w = {
|
10183
10183
|
begin: t.concat(/\b/, t.either(...m), /\s*\(/),
|
10184
10184
|
relevance: 0,
|
10185
10185
|
keywords: { built_in: m }
|
@@ -10218,7 +10218,7 @@ function aa() {
|
|
10218
10218
|
className: "type",
|
10219
10219
|
begin: t.either(...r)
|
10220
10220
|
},
|
10221
|
-
|
10221
|
+
w,
|
10222
10222
|
N,
|
10223
10223
|
c,
|
10224
10224
|
o,
|
@@ -10515,11 +10515,11 @@ function ia() {
|
|
10515
10515
|
// /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u,
|
10516
10516
|
// /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
|
10517
10517
|
// /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
|
10518
|
-
),
|
10518
|
+
), w = c(
|
10519
10519
|
h,
|
10520
10520
|
/\d/,
|
10521
10521
|
/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
|
10522
|
-
), C = t(h,
|
10522
|
+
), C = t(h, w, "*"), M = t(/[A-Z]/, w, "*"), A = [
|
10523
10523
|
"attached",
|
10524
10524
|
"autoclosure",
|
10525
10525
|
t(/convention\(/, c("swift", "block", "c"), /\)/),
|
@@ -10606,7 +10606,7 @@ function ia() {
|
|
10606
10606
|
J,
|
10607
10607
|
ae,
|
10608
10608
|
V
|
10609
|
-
],
|
10609
|
+
], O = {
|
10610
10610
|
// Consume .built_in to prevent highlighting properties and methods.
|
10611
10611
|
match: t(/\./, c(...p)),
|
10612
10612
|
relevance: 0
|
@@ -10614,7 +10614,7 @@ function ia() {
|
|
10614
10614
|
className: "built_in",
|
10615
10615
|
match: t(/\b/, c(...p), /(?=\()/)
|
10616
10616
|
}, U = [
|
10617
|
-
|
10617
|
+
O,
|
10618
10618
|
k
|
10619
10619
|
], Y = {
|
10620
10620
|
// Prevent -> from being highlighting as an operator.
|
@@ -10697,7 +10697,7 @@ function ia() {
|
|
10697
10697
|
relevance: 0,
|
10698
10698
|
contains: [v.BACKSLASH_ESCAPE]
|
10699
10699
|
}
|
10700
|
-
],
|
10700
|
+
], we = {
|
10701
10701
|
begin: /\/[^\s](?=[^/\n]*\/)/,
|
10702
10702
|
end: /\//,
|
10703
10703
|
contains: be
|
@@ -10715,20 +10715,20 @@ function ia() {
|
|
10715
10715
|
}
|
10716
10716
|
]
|
10717
10717
|
};
|
10718
|
-
},
|
10718
|
+
}, Oe = {
|
10719
10719
|
scope: "regexp",
|
10720
10720
|
variants: [
|
10721
10721
|
re("###"),
|
10722
10722
|
re("##"),
|
10723
10723
|
re("#"),
|
10724
|
-
|
10724
|
+
we
|
10725
10725
|
]
|
10726
10726
|
}, Ee = { match: t(/`/, C, /`/) }, S = {
|
10727
10727
|
className: "variable",
|
10728
10728
|
match: /\$\d+/
|
10729
10729
|
}, Re = {
|
10730
10730
|
className: "variable",
|
10731
|
-
match: `\\$${
|
10731
|
+
match: `\\$${w}+`
|
10732
10732
|
}, G = [
|
10733
10733
|
Ee,
|
10734
10734
|
S,
|
@@ -10765,7 +10765,7 @@ function ia() {
|
|
10765
10765
|
{
|
10766
10766
|
// Common Apple frameworks, for relevance boost
|
10767
10767
|
className: "type",
|
10768
|
-
match: t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,
|
10768
|
+
match: t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, w, "+")
|
10769
10769
|
},
|
10770
10770
|
{
|
10771
10771
|
// Type identifier
|
@@ -10815,7 +10815,7 @@ function ia() {
|
|
10815
10815
|
"self",
|
10816
10816
|
y,
|
10817
10817
|
...F,
|
10818
|
-
|
10818
|
+
Oe,
|
10819
10819
|
...f,
|
10820
10820
|
...U,
|
10821
10821
|
...te,
|
@@ -10908,7 +10908,7 @@ function ia() {
|
|
10908
10908
|
1: "keyword",
|
10909
10909
|
3: "title"
|
10910
10910
|
}
|
10911
|
-
},
|
10911
|
+
}, wt = {
|
10912
10912
|
begin: [
|
10913
10913
|
/precedencegroup/,
|
10914
10914
|
/\s+/,
|
@@ -10926,7 +10926,7 @@ function ia() {
|
|
10926
10926
|
end: /}/
|
10927
10927
|
};
|
10928
10928
|
for (const $ of oe.variants) {
|
10929
|
-
const Ae = $.contains.find((
|
10929
|
+
const Ae = $.contains.find((Ot) => Ot.label === "interpol");
|
10930
10930
|
Ae.keywords = u;
|
10931
10931
|
const ye = [
|
10932
10932
|
...f,
|
@@ -10969,14 +10969,14 @@ function ia() {
|
|
10969
10969
|
]
|
10970
10970
|
},
|
10971
10971
|
Tt,
|
10972
|
-
|
10972
|
+
wt,
|
10973
10973
|
{
|
10974
10974
|
beginKeywords: "import",
|
10975
10975
|
end: /$/,
|
10976
10976
|
contains: [...F],
|
10977
10977
|
relevance: 0
|
10978
10978
|
},
|
10979
|
-
|
10979
|
+
Oe,
|
10980
10980
|
...f,
|
10981
10981
|
...U,
|
10982
10982
|
...te,
|
@@ -11356,11 +11356,11 @@ function oa() {
|
|
11356
11356
|
literal: t,
|
11357
11357
|
built_in: r,
|
11358
11358
|
"variable.language": a
|
11359
|
-
},
|
11359
|
+
}, w = "[0-9](_?[0-9])*", C = `\\.(${w})`, M = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", A = {
|
11360
11360
|
className: "number",
|
11361
11361
|
variants: [
|
11362
11362
|
// DecimalLiteral
|
11363
|
-
{ begin: `(\\b(${M})((${C})|\\.)?|(${C}))[eE][+-]?(${
|
11363
|
+
{ begin: `(\\b(${M})((${C})|\\.)?|(${C}))[eE][+-]?(${w})\\b` },
|
11364
11364
|
{ begin: `\\b(${M})\\b((${C})\\b|\\.)?|(${C})\\b` },
|
11365
11365
|
// DecimalBigIntegerLiteral
|
11366
11366
|
{ begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
|
@@ -11566,7 +11566,7 @@ function oa() {
|
|
11566
11566
|
...c
|
11567
11567
|
]
|
11568
11568
|
}
|
11569
|
-
},
|
11569
|
+
}, O = {
|
11570
11570
|
label: "use_strict",
|
11571
11571
|
className: "meta",
|
11572
11572
|
relevance: 10,
|
@@ -11677,7 +11677,7 @@ function oa() {
|
|
11677
11677
|
binary: "node",
|
11678
11678
|
relevance: 5
|
11679
11679
|
}),
|
11680
|
-
|
11680
|
+
O,
|
11681
11681
|
l.APOS_STRING_MODE,
|
11682
11682
|
l.QUOTE_STRING_MODE,
|
11683
11683
|
L,
|
@@ -11861,7 +11861,7 @@ function oa() {
|
|
11861
11861
|
"readonly",
|
11862
11862
|
"enum",
|
11863
11863
|
"override"
|
11864
|
-
],
|
11864
|
+
], w = {
|
11865
11865
|
$pattern: n,
|
11866
11866
|
keyword: e.concat(h),
|
11867
11867
|
literal: t,
|
@@ -11876,7 +11876,7 @@ function oa() {
|
|
11876
11876
|
throw new Error("can not find mode to replace");
|
11877
11877
|
D.contains.splice(I, 1, v);
|
11878
11878
|
};
|
11879
|
-
Object.assign(g.keywords,
|
11879
|
+
Object.assign(g.keywords, w), g.exports.PARAMS_CONTAINS.push(C), g.contains = g.contains.concat([
|
11880
11880
|
C,
|
11881
11881
|
m,
|
11882
11882
|
E
|