@covalent/components 6.4.0 → 6.4.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.
- package/action-ribbon.js +6 -6
- package/action-ribbon.mjs +24 -23
- package/alert.js +4 -4
- package/alert.mjs +28 -27
- package/app-shell.js +4 -4
- package/app-shell.mjs +10 -10
- package/{base-element-67ae173f.mjs → base-element-c3dc926e.mjs} +2 -2
- package/{base-element-58a3f9ea.js → base-element-d5abe37a.js} +1 -1
- package/button.js +4 -4
- package/button.mjs +13 -13
- package/card.js +8 -8
- package/card.mjs +4 -4
- package/check-list-item.js +3 -3
- package/check-list-item.mjs +16 -16
- package/checkbox.js +1 -1
- package/checkbox.mjs +15 -15
- package/circular-progress.js +7 -7
- package/circular-progress.mjs +6 -6
- package/class-map-08c84aeb.mjs +62 -0
- package/class-map-50b8edb4.js +9 -0
- package/code-snippet.js +9 -9
- package/code-snippet.mjs +1213 -1276
- package/{dialog-9ac44447.mjs → dialog-85c21333.mjs} +39 -39
- package/{dialog-79036d60.js → dialog-8ee07177.js} +4 -4
- package/dialog.js +1 -1
- package/dialog.mjs +8 -8
- package/{directive-helpers-e3ea6592.mjs → directive-helpers-725a181d.mjs} +3 -3
- package/{directive-helpers-0ce1f995.js → directive-helpers-fce8cf91.js} +2 -2
- package/drawer.js +1 -1
- package/drawer.mjs +8 -8
- package/empty-state.js +7 -7
- package/empty-state.mjs +4 -4
- package/{event-options-78d6cf94.mjs → event-options-3937d997.mjs} +1 -1
- package/{event-options-3f5eb195.js → event-options-7bc382d8.js} +1 -1
- package/{form-element-bd973124.mjs → form-element-6dbd7afa.mjs} +4 -4
- package/{form-element-ead758d4.js → form-element-d4e7bcdb.js} +2 -2
- package/foundation-2334d146.mjs +60 -0
- package/{foundation-62d4413d.js → foundation-3f55a9dc.js} +3 -24
- package/{foundation-3f556da7.mjs → foundation-c580100a.mjs} +28 -78
- package/foundation-e830bd94.js +22 -0
- package/icon-button.js +5 -5
- package/icon-button.mjs +12 -12
- package/icon-check-toggle.js +5 -5
- package/icon-check-toggle.mjs +15 -15
- package/icon-radio-toggle.js +4 -4
- package/icon-radio-toggle.mjs +15 -15
- package/icon.js +1 -1
- package/icon.mjs +3 -3
- package/{if-defined-c367f208.mjs → if-defined-639ed018.mjs} +1 -1
- package/if-defined-cb12d481.js +5 -0
- package/index.js +1 -1
- package/index.mjs +121 -120
- package/linear-progress.js +6 -6
- package/linear-progress.mjs +13 -13
- package/{list-066f5de4.mjs → list-d616957b.mjs} +3 -3
- package/{list-05db7fed.js → list-defdaa3b.js} +2 -2
- package/list-expansion.js +4 -4
- package/list-expansion.mjs +25 -25
- package/{list-item-8da7ba96.js → list-item-3fa66f09.js} +3 -3
- package/{list-item-ba77097d.mjs → list-item-d5c05e10.mjs} +6 -6
- package/list-item.js +1 -1
- package/list-item.mjs +13 -13
- package/list.js +1 -1
- package/list.mjs +15 -15
- package/menu.js +1 -1
- package/menu.mjs +15 -15
- package/{mwc-checkbox-base-3da36456.mjs → mwc-checkbox-base-10e977f2.mjs} +21 -21
- package/{mwc-checkbox-base-d46c7666.js → mwc-checkbox-base-435c1f1d.js} +9 -9
- package/{mwc-checkbox.css-b3434429.js → mwc-checkbox.css-956e3d6c.js} +1 -1
- package/{mwc-checkbox.css-8f4f1a9b.mjs → mwc-checkbox.css-b7abc7fd.mjs} +1 -1
- package/{mwc-drawer-base-fe660bdf.mjs → mwc-drawer-base-b2b772c3.mjs} +10 -10
- package/{mwc-drawer-base-8eecb1de.js → mwc-drawer-base-f44fcf34.js} +6 -6
- package/{mwc-icon-8c9cd0c9.js → mwc-icon-b96fb867.js} +2 -2
- package/{mwc-icon-ba18383d.mjs → mwc-icon-c7013880.mjs} +2 -2
- package/{mwc-line-ripple-directive-d1cf9570.js → mwc-line-ripple-directive-a97ce725.js} +3 -3
- package/{mwc-line-ripple-directive-ffce2cff.mjs → mwc-line-ripple-directive-c3e1f04a.mjs} +6 -6
- package/{mwc-list-base-cb3500b4.js → mwc-list-base-7d5f7278.js} +4 -4
- package/{mwc-list-base-32d4ac31.mjs → mwc-list-base-c0f8af1c.mjs} +9 -9
- package/{mwc-list-item-base-4a4d1e1b.js → mwc-list-item-base-803b9771.js} +8 -8
- package/{mwc-list-item-base-8654347d.mjs → mwc-list-item-base-acef0223.mjs} +7 -7
- package/{mwc-list-item.css-25adc0c4.js → mwc-list-item.css-401e2407.js} +1 -1
- package/{mwc-list-item.css-b0009fc7.mjs → mwc-list-item.css-b5481d96.mjs} +1 -1
- package/{mwc-menu-base-572a76b9.mjs → mwc-menu-base-8970b43d.mjs} +11 -11
- package/{mwc-menu-base-f14ec544.js → mwc-menu-base-ac49fe54.js} +17 -17
- package/{mwc-radio-base-470b4fcc.js → mwc-radio-base-442d495a.js} +4 -4
- package/{mwc-radio-base-9446d39b.mjs → mwc-radio-base-c29e6f42.mjs} +11 -11
- package/{mwc-radio.css-4e140252.js → mwc-radio.css-388ad26d.js} +1 -1
- package/{mwc-radio.css-7454bb11.mjs → mwc-radio.css-4694aa9c.mjs} +1 -1
- package/{mwc-slider.css-10adbaf8.mjs → mwc-slider.css-336f809b.mjs} +12 -12
- package/{mwc-slider.css-9dd57b10.js → mwc-slider.css-48f02f1e.js} +11 -11
- package/{mwc-tab-base-fc3ffb43.js → mwc-tab-base-1a19b299.js} +13 -13
- package/{mwc-tab-base-4ba47acc.mjs → mwc-tab-base-7fb3d339.mjs} +14 -14
- package/{mwc-top-app-bar-base-0304e67f.js → mwc-top-app-bar-base-14e0a018.js} +8 -8
- package/{mwc-top-app-bar-base-adc4168a.mjs → mwc-top-app-bar-base-79c87e69.mjs} +24 -22
- package/nav-list-item.js +2 -2
- package/nav-list-item.mjs +13 -13
- package/package.json +1 -1
- package/{property-57f6f6fe.js → property-074570d1.js} +1 -1
- package/{property-9b6ea53b.mjs → property-ca27685b.mjs} +9 -9
- package/{query-d843aa92.mjs → query-1e7846ea.mjs} +1 -1
- package/{query-680f1868.js → query-2ba749b7.js} +1 -1
- package/query-assigned-elements-07e38f46.js +33 -0
- package/{query-assigned-elements-4a39219d.mjs → query-assigned-elements-514e5265.mjs} +152 -153
- package/{query-assigned-nodes-99eae71d.js → query-assigned-nodes-9ec0fa5f.js} +1 -1
- package/{query-assigned-nodes-df691e78.mjs → query-assigned-nodes-bea12e0c.mjs} +1 -1
- package/radio-list-item.js +3 -3
- package/radio-list-item.mjs +18 -18
- package/radio.js +1 -1
- package/radio.mjs +15 -15
- package/{ripple-handlers-c82b1232.js → ripple-handlers-2176f137.js} +5 -5
- package/{ripple-handlers-321219b8.mjs → ripple-handlers-227497d3.mjs} +10 -10
- package/select.js +10 -10
- package/select.mjs +20 -20
- package/side-sheet.js +2 -2
- package/side-sheet.mjs +21 -21
- package/slider-range.js +7 -7
- package/slider-range.mjs +13 -13
- package/slider.js +3 -3
- package/slider.mjs +15 -15
- package/snackbar.js +6 -6
- package/snackbar.mjs +12 -12
- package/{state-b5e865db.mjs → state-6f7e570d.mjs} +1 -1
- package/state-949232e6.js +5 -0
- package/status-header-item.js +3 -3
- package/status-header-item.mjs +15 -15
- package/status-header.js +2 -2
- package/status-header.mjs +3 -3
- package/style-map-2cb0fb63.mjs +40 -0
- package/style-map-3056a771.js +5 -0
- package/style.css +1 -1
- package/switch.js +8 -8
- package/switch.mjs +13 -13
- package/tab-bar.js +5 -5
- package/tab-bar.mjs +16 -16
- package/tab.js +1 -1
- package/tab.mjs +12 -12
- package/text-lockup.js +4 -4
- package/text-lockup.mjs +7 -7
- package/textarea.js +4 -4
- package/textarea.mjs +26 -26
- package/{textfield-2cee5a1a.mjs → textfield-276b0ded.mjs} +14 -14
- package/{textfield-0993c163.js → textfield-507c6a06.js} +12 -12
- package/textfield.js +1 -1
- package/textfield.mjs +14 -14
- package/toolbar.js +1 -1
- package/toolbar.mjs +8 -8
- package/tooltip/tooltip.d.ts.map +1 -1
- package/tooltip.js +11 -32
- package/tooltip.mjs +516 -611
- package/{top-app-bar-a531c1b4.js → top-app-bar-34e85527.js} +1 -1
- package/{top-app-bar-f83386e0.mjs → top-app-bar-a236c3bc.mjs} +1 -1
- package/top-app-bar-fixed.js +5 -89
- package/top-app-bar-fixed.mjs +37 -279
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +9 -9
- package/tree-list-item.js +7 -7
- package/tree-list-item.mjs +6 -6
- package/tree-list.js +2 -2
- package/tree-list.mjs +1 -1
- package/tslib.es6-6b53b818.js +1 -0
- package/tslib.es6-b5e819a6.mjs +82 -0
- package/typography.js +3 -3
- package/typography.mjs +2 -2
- package/{utils-2932417c.mjs → utils-dc65fdc9.mjs} +2 -2
- package/class-map-4b94b017.mjs +0 -62
- package/class-map-b5efe8da.js +0 -9
- package/if-defined-f1c45245.js +0 -5
- package/query-assigned-elements-f623705d.js +0 -31
- package/state-0974a8e5.js +0 -5
- package/style-map-88d2563f.js +0 -5
- package/style-map-bc3ed3e0.mjs +0 -44
- package/tslib.es6-e6a11c8a.js +0 -1
- package/tslib.es6-f1eaf65c.mjs +0 -82
package/code-snippet.mjs
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
import { i as Tt, r as St, s as
|
2
|
-
import {
|
3
|
-
import { o as Rt } from "./query-assigned-nodes-
|
4
|
-
import { o as At } from "./class-map-
|
5
|
-
|
6
|
-
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
7
|
-
}
|
8
|
-
const It = `: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}
|
1
|
+
import { i as Tt, r as St, s as wt, y as Se, e as Ot } from "./query-assigned-elements-514e5265.mjs";
|
2
|
+
import { e as ve } from "./property-ca27685b.mjs";
|
3
|
+
import { o as Rt } from "./query-assigned-nodes-bea12e0c.mjs";
|
4
|
+
import { o as At } from "./class-map-08c84aeb.mjs";
|
5
|
+
const Mt = `: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}
|
9
6
|
`;
|
10
|
-
|
7
|
+
var _n = { exports: {} };
|
8
|
+
function mn(n) {
|
11
9
|
return n instanceof Map ? n.clear = n.delete = n.set = function() {
|
12
10
|
throw new Error("map is read-only");
|
13
11
|
} : n instanceof Set && (n.add = n.clear = n.delete = function() {
|
14
12
|
throw new Error("set is read-only");
|
15
|
-
}), Object.freeze(n), Object.getOwnPropertyNames(n).forEach((e)
|
16
|
-
|
17
|
-
|
13
|
+
}), Object.freeze(n), Object.getOwnPropertyNames(n).forEach(function(e) {
|
14
|
+
var t = n[e];
|
15
|
+
typeof t == "object" && !Object.isFrozen(t) && mn(t);
|
18
16
|
}), n;
|
19
17
|
}
|
20
|
-
|
18
|
+
_n.exports = mn;
|
19
|
+
_n.exports.default = mn;
|
20
|
+
class Tn {
|
21
21
|
/**
|
22
22
|
* @param {CompiledMode} mode
|
23
23
|
*/
|
@@ -28,10 +28,10 @@ class yn {
|
|
28
28
|
this.isMatchIgnored = !0;
|
29
29
|
}
|
30
30
|
}
|
31
|
-
function
|
31
|
+
function gt(n) {
|
32
32
|
return n.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
33
33
|
}
|
34
|
-
function
|
34
|
+
function ue(n, ...e) {
|
35
35
|
const t = /* @__PURE__ */ Object.create(null);
|
36
36
|
for (const s in n)
|
37
37
|
t[s] = n[s];
|
@@ -41,9 +41,7 @@ function de(n, ...e) {
|
|
41
41
|
}), /** @type {T} */
|
42
42
|
t;
|
43
43
|
}
|
44
|
-
const
|
45
|
-
if (n.startsWith("language:"))
|
46
|
-
return n.replace("language:", "language-");
|
44
|
+
const It = "</span>", Sn = (n) => !!n.scope || n.sublanguage && n.language, Ct = (n, { prefix: e }) => {
|
47
45
|
if (n.includes(".")) {
|
48
46
|
const t = n.split(".");
|
49
47
|
return [
|
@@ -53,7 +51,7 @@ const Ct = "</span>", vn = (n) => !!n.scope, kt = (n, { prefix: e }) => {
|
|
53
51
|
}
|
54
52
|
return `${e}${n}`;
|
55
53
|
};
|
56
|
-
class
|
54
|
+
class kt {
|
57
55
|
/**
|
58
56
|
* Creates a new HTMLRenderer
|
59
57
|
*
|
@@ -68,27 +66,24 @@ class xt {
|
|
68
66
|
*
|
69
67
|
* @param {string} text */
|
70
68
|
addText(e) {
|
71
|
-
this.buffer +=
|
69
|
+
this.buffer += gt(e);
|
72
70
|
}
|
73
71
|
/**
|
74
72
|
* Adds a node open to the output stream (if needed)
|
75
73
|
*
|
76
74
|
* @param {Node} node */
|
77
75
|
openNode(e) {
|
78
|
-
if (!
|
76
|
+
if (!Sn(e))
|
79
77
|
return;
|
80
|
-
|
81
|
-
|
82
|
-
{ prefix: this.classPrefix }
|
83
|
-
);
|
84
|
-
this.span(t);
|
78
|
+
let t = "";
|
79
|
+
e.sublanguage ? t = `language-${e.language}` : t = Ct(e.scope, { prefix: this.classPrefix }), this.span(t);
|
85
80
|
}
|
86
81
|
/**
|
87
82
|
* Adds a node close to the output stream (if needed)
|
88
83
|
*
|
89
84
|
* @param {Node} node */
|
90
85
|
closeNode(e) {
|
91
|
-
|
86
|
+
Sn(e) && (this.buffer += It);
|
92
87
|
}
|
93
88
|
/**
|
94
89
|
* returns the accumulated buffer
|
@@ -105,13 +100,13 @@ class xt {
|
|
105
100
|
this.buffer += `<span class="${e}">`;
|
106
101
|
}
|
107
102
|
}
|
108
|
-
const
|
103
|
+
const wn = (n = {}) => {
|
109
104
|
const e = { children: [] };
|
110
105
|
return Object.assign(e, n), e;
|
111
106
|
};
|
112
|
-
class
|
107
|
+
class En {
|
113
108
|
constructor() {
|
114
|
-
this.rootNode =
|
109
|
+
this.rootNode = wn(), this.stack = [this.rootNode];
|
115
110
|
}
|
116
111
|
get top() {
|
117
112
|
return this.stack[this.stack.length - 1];
|
@@ -125,7 +120,7 @@ class mn {
|
|
125
120
|
}
|
126
121
|
/** @param {string} scope */
|
127
122
|
openNode(e) {
|
128
|
-
const t =
|
123
|
+
const t = wn({ scope: e });
|
129
124
|
this.add(t), this.stack.push(t);
|
130
125
|
}
|
131
126
|
closeNode() {
|
@@ -158,83 +153,83 @@ class mn {
|
|
158
153
|
*/
|
159
154
|
static _collapse(e) {
|
160
155
|
typeof e != "string" && e.children && (e.children.every((t) => typeof t == "string") ? e.children = [e.children.join("")] : e.children.forEach((t) => {
|
161
|
-
|
156
|
+
En._collapse(t);
|
162
157
|
}));
|
163
158
|
}
|
164
159
|
}
|
165
|
-
class
|
160
|
+
class xt extends En {
|
166
161
|
/**
|
167
162
|
* @param {*} options
|
168
163
|
*/
|
169
164
|
constructor(e) {
|
170
165
|
super(), this.options = e;
|
171
166
|
}
|
167
|
+
/**
|
168
|
+
* @param {string} text
|
169
|
+
* @param {string} scope
|
170
|
+
*/
|
171
|
+
addKeyword(e, t) {
|
172
|
+
e !== "" && (this.openNode(t), this.addText(e), this.closeNode());
|
173
|
+
}
|
172
174
|
/**
|
173
175
|
* @param {string} text
|
174
176
|
*/
|
175
177
|
addText(e) {
|
176
178
|
e !== "" && this.add(e);
|
177
179
|
}
|
178
|
-
/** @param {string} scope */
|
179
|
-
startScope(e) {
|
180
|
-
this.openNode(e);
|
181
|
-
}
|
182
|
-
endScope() {
|
183
|
-
this.closeNode();
|
184
|
-
}
|
185
180
|
/**
|
186
181
|
* @param {Emitter & {root: DataNode}} emitter
|
187
182
|
* @param {string} name
|
188
183
|
*/
|
189
|
-
|
184
|
+
addSublanguage(e, t) {
|
190
185
|
const s = e.root;
|
191
|
-
|
186
|
+
s.sublanguage = !0, s.language = t, this.add(s);
|
192
187
|
}
|
193
188
|
toHTML() {
|
194
|
-
return new
|
189
|
+
return new kt(this, this.options).value();
|
195
190
|
}
|
196
191
|
finalize() {
|
197
|
-
return
|
192
|
+
return !0;
|
198
193
|
}
|
199
194
|
}
|
200
|
-
function
|
195
|
+
function he(n) {
|
201
196
|
return n ? typeof n == "string" ? n : n.source : null;
|
202
197
|
}
|
203
|
-
function
|
198
|
+
function bt(n) {
|
204
199
|
return be("(?=", n, ")");
|
205
200
|
}
|
206
|
-
function
|
201
|
+
function Dt(n) {
|
207
202
|
return be("(?:", n, ")*");
|
208
203
|
}
|
209
|
-
function
|
204
|
+
function Lt(n) {
|
210
205
|
return be("(?:", n, ")?");
|
211
206
|
}
|
212
207
|
function be(...n) {
|
213
|
-
return n.map((t) =>
|
208
|
+
return n.map((t) => he(t)).join("");
|
214
209
|
}
|
215
|
-
function
|
210
|
+
function Bt(n) {
|
216
211
|
const e = n[n.length - 1];
|
217
212
|
return typeof e == "object" && e.constructor === Object ? (n.splice(n.length - 1, 1), e) : {};
|
218
213
|
}
|
219
|
-
function
|
220
|
-
return "(" + (
|
214
|
+
function fn(...n) {
|
215
|
+
return "(" + (Bt(n).capture ? "" : "?:") + n.map((s) => he(s)).join("|") + ")";
|
221
216
|
}
|
222
|
-
function
|
217
|
+
function pt(n) {
|
223
218
|
return new RegExp(n.toString() + "|").exec("").length - 1;
|
224
219
|
}
|
225
|
-
function
|
220
|
+
function Ut(n, e) {
|
226
221
|
const t = n && n.exec(e);
|
227
222
|
return t && t.index === 0;
|
228
223
|
}
|
229
|
-
const
|
230
|
-
function
|
224
|
+
const Pt = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
225
|
+
function hn(n, { joinWith: e }) {
|
231
226
|
let t = 0;
|
232
227
|
return n.map((s) => {
|
233
228
|
t += 1;
|
234
229
|
const c = t;
|
235
|
-
let o =
|
230
|
+
let o = he(s), a = "";
|
236
231
|
for (; o.length > 0; ) {
|
237
|
-
const r =
|
232
|
+
const r = Pt.exec(o);
|
238
233
|
if (!r) {
|
239
234
|
a += o;
|
240
235
|
break;
|
@@ -244,14 +239,14 @@ function fn(n, { joinWith: e }) {
|
|
244
239
|
return a;
|
245
240
|
}).map((s) => `(${s})`).join(e);
|
246
241
|
}
|
247
|
-
const
|
242
|
+
const Ft = /\b\B/, _t = "[a-zA-Z]\\w*", Nn = "[a-zA-Z_]\\w*", mt = "\\b\\d+(\\.\\d+)?", Et = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", ft = "\\b(0b[01]+)", $t = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", zt = (n = {}) => {
|
248
243
|
const e = /^#![ ]*\//;
|
249
244
|
return n.binary && (n.begin = be(
|
250
245
|
e,
|
251
246
|
/.*\b/,
|
252
247
|
n.binary,
|
253
248
|
/\b.*/
|
254
|
-
)),
|
249
|
+
)), ue({
|
255
250
|
scope: "meta",
|
256
251
|
begin: e,
|
257
252
|
end: /$/,
|
@@ -261,25 +256,25 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
|
|
261
256
|
t.index !== 0 && s.ignoreMatch();
|
262
257
|
}
|
263
258
|
}, n);
|
264
|
-
},
|
259
|
+
}, Ne = {
|
265
260
|
begin: "\\\\[\\s\\S]",
|
266
261
|
relevance: 0
|
267
|
-
},
|
262
|
+
}, Kt = {
|
268
263
|
scope: "string",
|
269
264
|
begin: "'",
|
270
265
|
end: "'",
|
271
266
|
illegal: "\\n",
|
272
|
-
contains: [
|
273
|
-
},
|
267
|
+
contains: [Ne]
|
268
|
+
}, qt = {
|
274
269
|
scope: "string",
|
275
270
|
begin: '"',
|
276
271
|
end: '"',
|
277
272
|
illegal: "\\n",
|
278
|
-
contains: [
|
273
|
+
contains: [Ne]
|
279
274
|
}, Gt = {
|
280
275
|
begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
281
|
-
},
|
282
|
-
const s =
|
276
|
+
}, Re = function(n, e, t = {}) {
|
277
|
+
const s = ue(
|
283
278
|
{
|
284
279
|
scope: "comment",
|
285
280
|
begin: n,
|
@@ -297,7 +292,7 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
|
|
297
292
|
excludeBegin: !0,
|
298
293
|
relevance: 0
|
299
294
|
});
|
300
|
-
const c =
|
295
|
+
const c = fn(
|
301
296
|
// list of common 1 and 2 letter words in English
|
302
297
|
"I",
|
303
298
|
"a",
|
@@ -344,19 +339,19 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
|
|
344
339
|
// look for 3 words in a row
|
345
340
|
}
|
346
341
|
), s;
|
347
|
-
},
|
348
|
-
scope: "number",
|
349
|
-
begin: _t,
|
350
|
-
relevance: 0
|
351
|
-
}, Xt = {
|
342
|
+
}, Ht = Re("//", "$"), Wt = Re("/\\*", "\\*/"), Yt = Re("#", "$"), Zt = {
|
352
343
|
scope: "number",
|
353
344
|
begin: mt,
|
354
345
|
relevance: 0
|
355
|
-
},
|
346
|
+
}, Vt = {
|
356
347
|
scope: "number",
|
357
348
|
begin: Et,
|
358
349
|
relevance: 0
|
359
|
-
},
|
350
|
+
}, Xt = {
|
351
|
+
scope: "number",
|
352
|
+
begin: ft,
|
353
|
+
relevance: 0
|
354
|
+
}, Qt = {
|
360
355
|
// this outer rule makes sure we actually have a WHOLE regex and not simply
|
361
356
|
// an expression such as:
|
362
357
|
//
|
@@ -370,28 +365,28 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
|
|
370
365
|
end: /\/[gimuy]*/,
|
371
366
|
illegal: /\n/,
|
372
367
|
contains: [
|
373
|
-
|
368
|
+
Ne,
|
374
369
|
{
|
375
370
|
begin: /\[/,
|
376
371
|
end: /\]/,
|
377
372
|
relevance: 0,
|
378
|
-
contains: [
|
373
|
+
contains: [Ne]
|
379
374
|
}
|
380
375
|
]
|
381
376
|
}]
|
382
|
-
},
|
377
|
+
}, Jt = {
|
383
378
|
scope: "title",
|
384
|
-
begin:
|
379
|
+
begin: _t,
|
385
380
|
relevance: 0
|
386
|
-
},
|
381
|
+
}, jt = {
|
387
382
|
scope: "title",
|
388
|
-
begin:
|
383
|
+
begin: Nn,
|
389
384
|
relevance: 0
|
390
|
-
},
|
385
|
+
}, er = {
|
391
386
|
// excludes method names from keyword processing
|
392
|
-
begin: "\\.\\s*" +
|
387
|
+
begin: "\\.\\s*" + Nn,
|
393
388
|
relevance: 0
|
394
|
-
},
|
389
|
+
}, nr = function(n) {
|
395
390
|
return Object.assign(
|
396
391
|
n,
|
397
392
|
{
|
@@ -406,56 +401,56 @@ const $t = /\b\B/, pt = "[a-zA-Z]\\w*", hn = "[a-zA-Z_]\\w*", _t = "\\b\\d+(\\.\
|
|
406
401
|
}
|
407
402
|
);
|
408
403
|
};
|
409
|
-
var
|
404
|
+
var we = /* @__PURE__ */ Object.freeze({
|
410
405
|
__proto__: null,
|
411
|
-
MATCH_NOTHING_RE:
|
412
|
-
IDENT_RE:
|
413
|
-
UNDERSCORE_IDENT_RE:
|
414
|
-
NUMBER_RE:
|
415
|
-
C_NUMBER_RE:
|
416
|
-
BINARY_NUMBER_RE:
|
417
|
-
RE_STARTERS_RE:
|
418
|
-
SHEBANG:
|
419
|
-
BACKSLASH_ESCAPE:
|
420
|
-
APOS_STRING_MODE:
|
421
|
-
QUOTE_STRING_MODE:
|
406
|
+
MATCH_NOTHING_RE: Ft,
|
407
|
+
IDENT_RE: _t,
|
408
|
+
UNDERSCORE_IDENT_RE: Nn,
|
409
|
+
NUMBER_RE: mt,
|
410
|
+
C_NUMBER_RE: Et,
|
411
|
+
BINARY_NUMBER_RE: ft,
|
412
|
+
RE_STARTERS_RE: $t,
|
413
|
+
SHEBANG: zt,
|
414
|
+
BACKSLASH_ESCAPE: Ne,
|
415
|
+
APOS_STRING_MODE: Kt,
|
416
|
+
QUOTE_STRING_MODE: qt,
|
422
417
|
PHRASAL_WORDS_MODE: Gt,
|
423
|
-
COMMENT:
|
424
|
-
C_LINE_COMMENT_MODE:
|
425
|
-
C_BLOCK_COMMENT_MODE:
|
426
|
-
HASH_COMMENT_MODE:
|
427
|
-
NUMBER_MODE:
|
428
|
-
C_NUMBER_MODE:
|
429
|
-
BINARY_NUMBER_MODE:
|
430
|
-
REGEXP_MODE:
|
431
|
-
TITLE_MODE:
|
432
|
-
UNDERSCORE_TITLE_MODE:
|
433
|
-
METHOD_GUARD:
|
434
|
-
END_SAME_AS_BEGIN:
|
418
|
+
COMMENT: Re,
|
419
|
+
C_LINE_COMMENT_MODE: Ht,
|
420
|
+
C_BLOCK_COMMENT_MODE: Wt,
|
421
|
+
HASH_COMMENT_MODE: Yt,
|
422
|
+
NUMBER_MODE: Zt,
|
423
|
+
C_NUMBER_MODE: Vt,
|
424
|
+
BINARY_NUMBER_MODE: Xt,
|
425
|
+
REGEXP_MODE: Qt,
|
426
|
+
TITLE_MODE: Jt,
|
427
|
+
UNDERSCORE_TITLE_MODE: jt,
|
428
|
+
METHOD_GUARD: er,
|
429
|
+
END_SAME_AS_BEGIN: nr
|
435
430
|
});
|
436
|
-
function
|
431
|
+
function tr(n, e) {
|
437
432
|
n.input[n.index - 1] === "." && e.ignoreMatch();
|
438
433
|
}
|
439
|
-
function
|
434
|
+
function rr(n, e) {
|
440
435
|
n.className !== void 0 && (n.scope = n.className, delete n.className);
|
441
436
|
}
|
437
|
+
function ar(n, e) {
|
438
|
+
e && n.beginKeywords && (n.begin = "\\b(" + n.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", n.__beforeBegin = tr, n.keywords = n.keywords || n.beginKeywords, delete n.beginKeywords, n.relevance === void 0 && (n.relevance = 0));
|
439
|
+
}
|
442
440
|
function ir(n, e) {
|
443
|
-
|
441
|
+
Array.isArray(n.illegal) && (n.illegal = fn(...n.illegal));
|
444
442
|
}
|
445
443
|
function sr(n, e) {
|
446
|
-
Array.isArray(n.illegal) && (n.illegal = En(...n.illegal));
|
447
|
-
}
|
448
|
-
function or(n, e) {
|
449
444
|
if (n.match) {
|
450
445
|
if (n.begin || n.end)
|
451
446
|
throw new Error("begin & end are not supported with match");
|
452
447
|
n.begin = n.match, delete n.match;
|
453
448
|
}
|
454
449
|
}
|
455
|
-
function
|
450
|
+
function or(n, e) {
|
456
451
|
n.relevance === void 0 && (n.relevance = 1);
|
457
452
|
}
|
458
|
-
const
|
453
|
+
const cr = (n, e) => {
|
459
454
|
if (!n.beforeMatch)
|
460
455
|
return;
|
461
456
|
if (n.starts)
|
@@ -463,13 +458,13 @@ const lr = (n, e) => {
|
|
463
458
|
const t = Object.assign({}, n);
|
464
459
|
Object.keys(n).forEach((s) => {
|
465
460
|
delete n[s];
|
466
|
-
}), n.keywords = t.keywords, n.begin = be(t.beforeMatch,
|
461
|
+
}), n.keywords = t.keywords, n.begin = be(t.beforeMatch, bt(t.begin)), n.starts = {
|
467
462
|
relevance: 0,
|
468
463
|
contains: [
|
469
464
|
Object.assign(t, { endsParent: !0 })
|
470
465
|
]
|
471
466
|
}, n.relevance = 0, delete t.beforeMatch;
|
472
|
-
},
|
467
|
+
}, lr = [
|
473
468
|
"of",
|
474
469
|
"and",
|
475
470
|
"for",
|
@@ -484,70 +479,70 @@ const lr = (n, e) => {
|
|
484
479
|
// common variable name
|
485
480
|
"value"
|
486
481
|
// common variable name
|
487
|
-
],
|
488
|
-
function
|
482
|
+
], dr = "keyword";
|
483
|
+
function ht(n, e, t = dr) {
|
489
484
|
const s = /* @__PURE__ */ Object.create(null);
|
490
485
|
return typeof n == "string" ? c(t, n.split(" ")) : Array.isArray(n) ? c(t, n) : Object.keys(n).forEach(function(o) {
|
491
486
|
Object.assign(
|
492
487
|
s,
|
493
|
-
|
488
|
+
ht(n[o], e, o)
|
494
489
|
);
|
495
490
|
}), s;
|
496
491
|
function c(o, a) {
|
497
492
|
e && (a = a.map((r) => r.toLowerCase())), a.forEach(function(r) {
|
498
493
|
const i = r.split("|");
|
499
|
-
s[i[0]] = [o,
|
494
|
+
s[i[0]] = [o, ur(i[0], i[1])];
|
500
495
|
});
|
501
496
|
}
|
502
497
|
}
|
503
|
-
function
|
504
|
-
return e ? Number(e) :
|
498
|
+
function ur(n, e) {
|
499
|
+
return e ? Number(e) : gr(n) ? 0 : 1;
|
505
500
|
}
|
506
|
-
function
|
507
|
-
return
|
501
|
+
function gr(n) {
|
502
|
+
return lr.includes(n.toLowerCase());
|
508
503
|
}
|
509
|
-
const
|
504
|
+
const On = {}, ge = (n) => {
|
510
505
|
console.error(n);
|
511
|
-
},
|
506
|
+
}, Rn = (n, ...e) => {
|
512
507
|
console.log(`WARN: ${n}`, ...e);
|
513
|
-
},
|
514
|
-
|
515
|
-
},
|
516
|
-
function
|
508
|
+
}, _e = (n, e) => {
|
509
|
+
On[`${n}/${e}`] || (console.log(`Deprecated as of ${n}. ${e}`), On[`${n}/${e}`] = !0);
|
510
|
+
}, Oe = new Error();
|
511
|
+
function Nt(n, e, { key: t }) {
|
517
512
|
let s = 0;
|
518
513
|
const c = n[t], o = {}, a = {};
|
519
514
|
for (let r = 1; r <= e.length; r++)
|
520
|
-
a[r + s] = c[r], o[r + s] = !0, s +=
|
515
|
+
a[r + s] = c[r], o[r + s] = !0, s += pt(e[r - 1]);
|
521
516
|
n[t] = a, n[t]._emit = o, n[t]._multi = !0;
|
522
517
|
}
|
523
|
-
function
|
518
|
+
function br(n) {
|
524
519
|
if (Array.isArray(n.begin)) {
|
525
520
|
if (n.skip || n.excludeBegin || n.returnBegin)
|
526
|
-
throw ge("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
521
|
+
throw ge("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Oe;
|
527
522
|
if (typeof n.beginScope != "object" || n.beginScope === null)
|
528
|
-
throw ge("beginScope must be object"),
|
529
|
-
|
523
|
+
throw ge("beginScope must be object"), Oe;
|
524
|
+
Nt(n, n.begin, { key: "beginScope" }), n.begin = hn(n.begin, { joinWith: "" });
|
530
525
|
}
|
531
526
|
}
|
532
|
-
function
|
527
|
+
function pr(n) {
|
533
528
|
if (Array.isArray(n.end)) {
|
534
529
|
if (n.skip || n.excludeEnd || n.returnEnd)
|
535
|
-
throw ge("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
530
|
+
throw ge("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Oe;
|
536
531
|
if (typeof n.endScope != "object" || n.endScope === null)
|
537
|
-
throw ge("endScope must be object"),
|
538
|
-
|
532
|
+
throw ge("endScope must be object"), Oe;
|
533
|
+
Nt(n, n.end, { key: "endScope" }), n.end = hn(n.end, { joinWith: "" });
|
539
534
|
}
|
540
535
|
}
|
541
|
-
function
|
536
|
+
function _r(n) {
|
542
537
|
n.scope && typeof n.scope == "object" && n.scope !== null && (n.beginScope = n.scope, delete n.scope);
|
543
538
|
}
|
544
|
-
function
|
545
|
-
|
539
|
+
function mr(n) {
|
540
|
+
_r(n), typeof n.beginScope == "string" && (n.beginScope = { _wrap: n.beginScope }), typeof n.endScope == "string" && (n.endScope = { _wrap: n.endScope }), br(n), pr(n);
|
546
541
|
}
|
547
|
-
function
|
542
|
+
function Er(n) {
|
548
543
|
function e(a, r) {
|
549
544
|
return new RegExp(
|
550
|
-
|
545
|
+
he(a),
|
551
546
|
"m" + (n.case_insensitive ? "i" : "") + (n.unicodeRegex ? "u" : "") + (r ? "g" : "")
|
552
547
|
);
|
553
548
|
}
|
@@ -557,12 +552,12 @@ function fr(n) {
|
|
557
552
|
}
|
558
553
|
// @ts-ignore
|
559
554
|
addRule(r, i) {
|
560
|
-
i.position = this.position++, this.matchIndexes[this.matchAt] = i, this.regexes.push([i, r]), this.matchAt +=
|
555
|
+
i.position = this.position++, this.matchIndexes[this.matchAt] = i, this.regexes.push([i, r]), this.matchAt += pt(r) + 1;
|
561
556
|
}
|
562
557
|
compile() {
|
563
558
|
this.regexes.length === 0 && (this.exec = () => null);
|
564
559
|
const r = this.regexes.map((i) => i[1]);
|
565
|
-
this.matcherRe = e(
|
560
|
+
this.matcherRe = e(hn(r, { joinWith: "|" }), !0), this.lastIndex = 0;
|
566
561
|
}
|
567
562
|
/** @param {string} s */
|
568
563
|
exec(r) {
|
@@ -570,7 +565,7 @@ function fr(n) {
|
|
570
565
|
const i = this.matcherRe.exec(r);
|
571
566
|
if (!i)
|
572
567
|
return null;
|
573
|
-
const d = i.findIndex((
|
568
|
+
const d = i.findIndex((u, b) => b > 0 && u !== void 0), l = this.matchIndexes[d];
|
574
569
|
return i.splice(0, d), Object.assign(i, l);
|
575
570
|
}
|
576
571
|
}
|
@@ -619,26 +614,26 @@ function fr(n) {
|
|
619
614
|
if (a.isCompiled)
|
620
615
|
return i;
|
621
616
|
[
|
622
|
-
|
617
|
+
rr,
|
623
618
|
// do this early so compiler extensions generally don't have to worry about
|
624
619
|
// the distinction between match/begin
|
625
|
-
|
626
|
-
|
627
|
-
|
620
|
+
sr,
|
621
|
+
mr,
|
622
|
+
cr
|
628
623
|
].forEach((l) => l(a, r)), n.compilerExtensions.forEach((l) => l(a, r)), a.__beforeBegin = null, [
|
629
|
-
|
624
|
+
ar,
|
630
625
|
// do this later so compiler extensions that come earlier have access to the
|
631
626
|
// raw array if they wanted to perhaps manipulate it, etc.
|
632
|
-
|
627
|
+
ir,
|
633
628
|
// default to 1 relevance if not specified
|
634
|
-
|
629
|
+
or
|
635
630
|
].forEach((l) => l(a, r)), a.isCompiled = !0;
|
636
631
|
let d = null;
|
637
|
-
return typeof a.keywords == "object" && a.keywords.$pattern && (a.keywords = Object.assign({}, a.keywords), d = a.keywords.$pattern, delete a.keywords.$pattern), d = d || /\w+/, a.keywords && (a.keywords =
|
632
|
+
return typeof a.keywords == "object" && a.keywords.$pattern && (a.keywords = Object.assign({}, a.keywords), d = a.keywords.$pattern, delete a.keywords.$pattern), d = d || /\w+/, a.keywords && (a.keywords = ht(a.keywords, n.case_insensitive)), i.keywordPatternRe = e(d, !0), r && (a.begin || (a.begin = /\B|\b/), i.beginRe = e(i.begin), !a.end && !a.endsWithParent && (a.end = /\B|\b/), a.end && (i.endRe = e(i.end)), i.terminatorEnd = he(i.end) || "", a.endsWithParent && r.terminatorEnd && (i.terminatorEnd += (a.end ? "|" : "") + r.terminatorEnd)), a.illegal && (i.illegalRe = e(
|
638
633
|
/** @type {RegExp | string} */
|
639
634
|
a.illegal
|
640
635
|
)), a.contains || (a.contains = []), a.contains = [].concat(...a.contains.map(function(l) {
|
641
|
-
return
|
636
|
+
return fr(l === "self" ? a : l);
|
642
637
|
})), a.contains.forEach(function(l) {
|
643
638
|
o(
|
644
639
|
/** @type Mode */
|
@@ -649,26 +644,26 @@ function fr(n) {
|
|
649
644
|
}
|
650
645
|
if (n.compilerExtensions || (n.compilerExtensions = []), n.contains && n.contains.includes("self"))
|
651
646
|
throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
652
|
-
return n.classNameAliases =
|
647
|
+
return n.classNameAliases = ue(n.classNameAliases || {}), o(
|
653
648
|
/** @type Mode */
|
654
649
|
n
|
655
650
|
);
|
656
651
|
}
|
657
|
-
function
|
658
|
-
return n ? n.endsWithParent ||
|
652
|
+
function yt(n) {
|
653
|
+
return n ? n.endsWithParent || yt(n.starts) : !1;
|
659
654
|
}
|
660
|
-
function
|
655
|
+
function fr(n) {
|
661
656
|
return n.variants && !n.cachedVariants && (n.cachedVariants = n.variants.map(function(e) {
|
662
|
-
return
|
663
|
-
})), n.cachedVariants ? n.cachedVariants :
|
657
|
+
return ue(n, { variants: null }, e);
|
658
|
+
})), n.cachedVariants ? n.cachedVariants : yt(n) ? ue(n, { starts: n.starts ? ue(n.starts) : null }) : Object.isFrozen(n) ? ue(n) : n;
|
664
659
|
}
|
665
|
-
var
|
666
|
-
class
|
660
|
+
var hr = "11.7.0";
|
661
|
+
class Nr extends Error {
|
667
662
|
constructor(e, t) {
|
668
663
|
super(e), this.name = "HTMLInjectionError", this.html = t;
|
669
664
|
}
|
670
665
|
}
|
671
|
-
const
|
666
|
+
const Ce = gt, An = ue, Mn = Symbol("nomatch"), yr = 7, vr = function(n) {
|
672
667
|
const e = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null), s = [];
|
673
668
|
let c = !0;
|
674
669
|
const o = "Could not find the language '{}', did you forget to load/include a language module?", a = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
@@ -682,411 +677,397 @@ const ke = ut, wn = de, Rn = Symbol("nomatch"), vr = 7, yt = function(n) {
|
|
682
677
|
languages: null,
|
683
678
|
// beta configuration options, subject to change, welcome to discuss
|
684
679
|
// https://github.com/highlightjs/highlight.js/issues/1086
|
685
|
-
__emitter:
|
680
|
+
__emitter: xt
|
686
681
|
};
|
687
|
-
function i(
|
688
|
-
return r.noHighlightRe.test(
|
682
|
+
function i(g) {
|
683
|
+
return r.noHighlightRe.test(g);
|
689
684
|
}
|
690
|
-
function d(
|
691
|
-
let
|
692
|
-
|
693
|
-
const
|
694
|
-
if (
|
695
|
-
const
|
696
|
-
return
|
685
|
+
function d(g) {
|
686
|
+
let N = g.className + " ";
|
687
|
+
N += g.parentNode ? g.parentNode.className : "";
|
688
|
+
const S = r.languageDetectRe.exec(N);
|
689
|
+
if (S) {
|
690
|
+
const k = C(S[1]);
|
691
|
+
return k || (Rn(o.replace("{}", S[1])), Rn("Falling back to no-highlight mode for this block.", g)), k ? S[1] : "no-highlight";
|
697
692
|
}
|
698
|
-
return
|
693
|
+
return N.split(/\s+/).find((k) => i(k) || C(k));
|
699
694
|
}
|
700
|
-
function l(
|
701
|
-
let
|
702
|
-
typeof
|
703
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),
|
704
|
-
const
|
705
|
-
code:
|
706
|
-
language:
|
695
|
+
function l(g, N, S) {
|
696
|
+
let k = "", F = "";
|
697
|
+
typeof N == "object" ? (k = g, S = N.ignoreIllegals, F = N.language) : (_e("10.7.0", "highlight(lang, code, ...args) has been deprecated."), _e("10.7.0", `Please use highlight(code, options) instead.
|
698
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), F = g, k = N), S === void 0 && (S = !0);
|
699
|
+
const H = {
|
700
|
+
code: k,
|
701
|
+
language: F
|
707
702
|
};
|
708
|
-
|
709
|
-
const
|
710
|
-
return
|
703
|
+
z("before:highlight", H);
|
704
|
+
const J = H.result ? H.result : u(H.language, H.code, S);
|
705
|
+
return J.code = H.code, z("after:highlight", J), J;
|
711
706
|
}
|
712
|
-
function g
|
713
|
-
const
|
714
|
-
function
|
707
|
+
function u(g, N, S, k) {
|
708
|
+
const F = /* @__PURE__ */ Object.create(null);
|
709
|
+
function H(_, y) {
|
715
710
|
return _.keywords[y];
|
716
711
|
}
|
717
|
-
function
|
712
|
+
function J() {
|
718
713
|
if (!T.keywords) {
|
719
|
-
|
714
|
+
G.addText(U);
|
720
715
|
return;
|
721
716
|
}
|
722
717
|
let _ = 0;
|
723
718
|
T.keywordPatternRe.lastIndex = 0;
|
724
|
-
let y = T.keywordPatternRe.exec(
|
719
|
+
let y = T.keywordPatternRe.exec(U), w = "";
|
725
720
|
for (; y; ) {
|
726
|
-
w +=
|
727
|
-
const
|
728
|
-
if (
|
729
|
-
const [
|
730
|
-
if (
|
721
|
+
w += U.substring(_, y.index);
|
722
|
+
const x = ie.case_insensitive ? y[0].toLowerCase() : y[0], Z = H(T, x);
|
723
|
+
if (Z) {
|
724
|
+
const [se, Me] = Z;
|
725
|
+
if (G.addText(w), w = "", F[x] = (F[x] || 0) + 1, F[x] <= yr && (de += Me), se.startsWith("_"))
|
731
726
|
w += y[0];
|
732
727
|
else {
|
733
|
-
const
|
734
|
-
|
728
|
+
const Ie = ie.classNameAliases[se] || se;
|
729
|
+
G.addKeyword(y[0], Ie);
|
735
730
|
}
|
736
731
|
} else
|
737
732
|
w += y[0];
|
738
|
-
_ = T.keywordPatternRe.lastIndex, y = T.keywordPatternRe.exec(
|
733
|
+
_ = T.keywordPatternRe.lastIndex, y = T.keywordPatternRe.exec(U);
|
739
734
|
}
|
740
|
-
w +=
|
735
|
+
w += U.substring(_), G.addText(w);
|
741
736
|
}
|
742
|
-
function
|
743
|
-
if (
|
737
|
+
function oe() {
|
738
|
+
if (U === "")
|
744
739
|
return;
|
745
740
|
let _ = null;
|
746
741
|
if (typeof T.subLanguage == "string") {
|
747
742
|
if (!e[T.subLanguage]) {
|
748
|
-
|
743
|
+
G.addText(U);
|
749
744
|
return;
|
750
745
|
}
|
751
|
-
_ =
|
746
|
+
_ = u(T.subLanguage, U, !0, Te[T.subLanguage]), Te[T.subLanguage] = /** @type {CompiledMode} */
|
752
747
|
_._top;
|
753
748
|
} else
|
754
|
-
_ = p(
|
755
|
-
T.relevance > 0 && (
|
749
|
+
_ = p(U, T.subLanguage.length ? T.subLanguage : null);
|
750
|
+
T.relevance > 0 && (de += _.relevance), G.addSublanguage(_._emitter, _.language);
|
756
751
|
}
|
757
|
-
function
|
758
|
-
T.subLanguage != null ?
|
752
|
+
function $() {
|
753
|
+
T.subLanguage != null ? oe() : J(), U = "";
|
759
754
|
}
|
760
|
-
function
|
761
|
-
_ !== "" && (q.startScope(y), q.addText(_), q.endScope());
|
762
|
-
}
|
763
|
-
function H(_, y) {
|
755
|
+
function W(_, y) {
|
764
756
|
let w = 1;
|
765
|
-
const
|
766
|
-
for (; w <=
|
757
|
+
const x = y.length - 1;
|
758
|
+
for (; w <= x; ) {
|
767
759
|
if (!_._emit[w]) {
|
768
760
|
w++;
|
769
761
|
continue;
|
770
762
|
}
|
771
|
-
const
|
772
|
-
|
763
|
+
const Z = ie.classNameAliases[_[w]] || _[w], se = y[w];
|
764
|
+
Z ? G.addKeyword(se, Z) : (U = se, J(), U = ""), w++;
|
773
765
|
}
|
774
766
|
}
|
775
|
-
function
|
776
|
-
return _.scope && typeof _.scope == "string" &&
|
767
|
+
function Y(_, y) {
|
768
|
+
return _.scope && typeof _.scope == "string" && G.openNode(ie.classNameAliases[_.scope] || _.scope), _.beginScope && (_.beginScope._wrap ? (G.addKeyword(U, ie.classNameAliases[_.beginScope._wrap] || _.beginScope._wrap), U = "") : _.beginScope._multi && (W(_.beginScope, y), U = "")), T = Object.create(_, { parent: { value: T } }), T;
|
777
769
|
}
|
778
|
-
function
|
779
|
-
let
|
780
|
-
if (
|
770
|
+
function P(_, y, w) {
|
771
|
+
let x = Ut(_.endRe, w);
|
772
|
+
if (x) {
|
781
773
|
if (_["on:end"]) {
|
782
|
-
const
|
783
|
-
_["on:end"](y,
|
774
|
+
const Z = new Tn(_);
|
775
|
+
_["on:end"](y, Z), Z.isMatchIgnored && (x = !1);
|
784
776
|
}
|
785
|
-
if (
|
777
|
+
if (x) {
|
786
778
|
for (; _.endsParent && _.parent; )
|
787
779
|
_ = _.parent;
|
788
780
|
return _;
|
789
781
|
}
|
790
782
|
}
|
791
783
|
if (_.endsWithParent)
|
792
|
-
return
|
784
|
+
return P(_.parent, y, w);
|
793
785
|
}
|
794
|
-
function
|
795
|
-
return T.matcher.regexIndex === 0 ? (
|
786
|
+
function X(_) {
|
787
|
+
return T.matcher.regexIndex === 0 ? (U += _[0], 1) : (fe = !0, 0);
|
796
788
|
}
|
797
789
|
function ee(_) {
|
798
|
-
const y = _[0], w = _.rule,
|
799
|
-
for (const
|
800
|
-
if (
|
801
|
-
return
|
802
|
-
return w.skip ?
|
790
|
+
const y = _[0], w = _.rule, x = new Tn(w), Z = [w.__beforeBegin, w["on:begin"]];
|
791
|
+
for (const se of Z)
|
792
|
+
if (se && (se(_, x), x.isMatchIgnored))
|
793
|
+
return X(y);
|
794
|
+
return w.skip ? U += y : (w.excludeBegin && (U += y), $(), !w.returnBegin && !w.excludeBegin && (U = y)), Y(w, _), w.returnBegin ? 0 : y.length;
|
803
795
|
}
|
804
|
-
function
|
805
|
-
const y = _[0], w =
|
806
|
-
if (!
|
807
|
-
return
|
808
|
-
const
|
809
|
-
T.endScope && T.endScope._wrap ? (
|
796
|
+
function te(_) {
|
797
|
+
const y = _[0], w = N.substring(_.index), x = P(T, _, w);
|
798
|
+
if (!x)
|
799
|
+
return Mn;
|
800
|
+
const Z = T;
|
801
|
+
T.endScope && T.endScope._wrap ? ($(), G.addKeyword(y, T.endScope._wrap)) : T.endScope && T.endScope._multi ? ($(), W(T.endScope, _)) : Z.skip ? U += y : (Z.returnEnd || Z.excludeEnd || (U += y), $(), Z.excludeEnd && (U = y));
|
810
802
|
do
|
811
|
-
T.scope &&
|
812
|
-
while (T !==
|
813
|
-
return
|
803
|
+
T.scope && G.closeNode(), !T.skip && !T.subLanguage && (de += T.relevance), T = T.parent;
|
804
|
+
while (T !== x.parent);
|
805
|
+
return x.starts && Y(x.starts, _), Z.returnEnd ? 0 : y.length;
|
814
806
|
}
|
815
|
-
function
|
807
|
+
function re() {
|
816
808
|
const _ = [];
|
817
809
|
for (let y = T; y !== ie; y = y.parent)
|
818
810
|
y.scope && _.unshift(y.scope);
|
819
|
-
_.forEach((y) =>
|
811
|
+
_.forEach((y) => G.openNode(y));
|
820
812
|
}
|
821
|
-
let
|
822
|
-
function
|
813
|
+
let ae = {};
|
814
|
+
function le(_, y) {
|
823
815
|
const w = y && y[0];
|
824
|
-
if (
|
825
|
-
return
|
826
|
-
if (
|
827
|
-
if (
|
828
|
-
const
|
829
|
-
throw
|
816
|
+
if (U += _, w == null)
|
817
|
+
return $(), 0;
|
818
|
+
if (ae.type === "begin" && y.type === "end" && ae.index === y.index && w === "") {
|
819
|
+
if (U += N.slice(y.index, y.index + 1), !c) {
|
820
|
+
const x = new Error(`0 width match regex (${g})`);
|
821
|
+
throw x.languageName = g, x.badRule = ae.rule, x;
|
830
822
|
}
|
831
823
|
return 1;
|
832
824
|
}
|
833
|
-
if (
|
825
|
+
if (ae = y, y.type === "begin")
|
834
826
|
return ee(y);
|
835
|
-
if (y.type === "illegal" && !
|
836
|
-
const
|
837
|
-
throw
|
827
|
+
if (y.type === "illegal" && !S) {
|
828
|
+
const x = new Error('Illegal lexeme "' + w + '" for mode "' + (T.scope || "<unnamed>") + '"');
|
829
|
+
throw x.mode = T, x;
|
838
830
|
} else if (y.type === "end") {
|
839
|
-
const
|
840
|
-
if (
|
841
|
-
return
|
831
|
+
const x = te(y);
|
832
|
+
if (x !== Mn)
|
833
|
+
return x;
|
842
834
|
}
|
843
835
|
if (y.type === "illegal" && w === "")
|
844
836
|
return 1;
|
845
|
-
if (
|
837
|
+
if (Ee > 1e5 && Ee > y.index * 3)
|
846
838
|
throw new Error("potential infinite loop, way more iterations than matches");
|
847
|
-
return
|
839
|
+
return U += w, w.length;
|
848
840
|
}
|
849
|
-
const ie = C(
|
841
|
+
const ie = C(g);
|
850
842
|
if (!ie)
|
851
|
-
throw ge(o.replace("{}",
|
852
|
-
const
|
853
|
-
let
|
854
|
-
const
|
855
|
-
|
856
|
-
let
|
843
|
+
throw ge(o.replace("{}", g)), new Error('Unknown language: "' + g + '"');
|
844
|
+
const Ae = Er(ie);
|
845
|
+
let me = "", T = k || Ae;
|
846
|
+
const Te = {}, G = new r.__emitter(r);
|
847
|
+
re();
|
848
|
+
let U = "", de = 0, j = 0, Ee = 0, fe = !1;
|
857
849
|
try {
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
break;
|
866
|
-
const y = f.substring(le, _.index), w = Oe(y, _);
|
867
|
-
le = _.index + w;
|
868
|
-
}
|
869
|
-
Oe(f.substring(le));
|
850
|
+
for (T.matcher.considerAll(); ; ) {
|
851
|
+
Ee++, fe ? fe = !1 : T.matcher.considerAll(), T.matcher.lastIndex = j;
|
852
|
+
const _ = T.matcher.exec(N);
|
853
|
+
if (!_)
|
854
|
+
break;
|
855
|
+
const y = N.substring(j, _.index), w = le(y, _);
|
856
|
+
j = _.index + w;
|
870
857
|
}
|
871
|
-
return
|
872
|
-
language:
|
873
|
-
value:
|
874
|
-
relevance:
|
858
|
+
return le(N.substring(j)), G.closeAllNodes(), G.finalize(), me = G.toHTML(), {
|
859
|
+
language: g,
|
860
|
+
value: me,
|
861
|
+
relevance: de,
|
875
862
|
illegal: !1,
|
876
|
-
_emitter:
|
863
|
+
_emitter: G,
|
877
864
|
_top: T
|
878
865
|
};
|
879
866
|
} catch (_) {
|
880
867
|
if (_.message && _.message.includes("Illegal"))
|
881
868
|
return {
|
882
|
-
language:
|
883
|
-
value:
|
869
|
+
language: g,
|
870
|
+
value: Ce(N),
|
884
871
|
illegal: !0,
|
885
872
|
relevance: 0,
|
886
873
|
_illegalBy: {
|
887
874
|
message: _.message,
|
888
|
-
index:
|
889
|
-
context:
|
875
|
+
index: j,
|
876
|
+
context: N.slice(j - 100, j + 100),
|
890
877
|
mode: _.mode,
|
891
|
-
resultSoFar:
|
878
|
+
resultSoFar: me
|
892
879
|
},
|
893
|
-
_emitter:
|
880
|
+
_emitter: G
|
894
881
|
};
|
895
882
|
if (c)
|
896
883
|
return {
|
897
|
-
language:
|
898
|
-
value:
|
884
|
+
language: g,
|
885
|
+
value: Ce(N),
|
899
886
|
illegal: !1,
|
900
887
|
relevance: 0,
|
901
888
|
errorRaised: _,
|
902
|
-
_emitter:
|
889
|
+
_emitter: G,
|
903
890
|
_top: T
|
904
891
|
};
|
905
892
|
throw _;
|
906
893
|
}
|
907
894
|
}
|
908
|
-
function b(
|
909
|
-
const
|
910
|
-
value:
|
895
|
+
function b(g) {
|
896
|
+
const N = {
|
897
|
+
value: Ce(g),
|
911
898
|
illegal: !1,
|
912
899
|
relevance: 0,
|
913
900
|
_top: a,
|
914
901
|
_emitter: new r.__emitter(r)
|
915
902
|
};
|
916
|
-
return
|
903
|
+
return N._emitter.addText(g), N;
|
917
904
|
}
|
918
|
-
function p(
|
919
|
-
|
920
|
-
const
|
921
|
-
(
|
905
|
+
function p(g, N) {
|
906
|
+
N = N || r.languages || Object.keys(e);
|
907
|
+
const S = b(g), k = N.filter(C).filter(B).map(
|
908
|
+
($) => u($, g, !1)
|
922
909
|
);
|
923
|
-
|
924
|
-
const
|
925
|
-
if (
|
926
|
-
return
|
927
|
-
if (
|
928
|
-
if (C(
|
910
|
+
k.unshift(S);
|
911
|
+
const F = k.sort(($, W) => {
|
912
|
+
if ($.relevance !== W.relevance)
|
913
|
+
return W.relevance - $.relevance;
|
914
|
+
if ($.language && W.language) {
|
915
|
+
if (C($.language).supersetOf === W.language)
|
929
916
|
return 1;
|
930
|
-
if (C(
|
917
|
+
if (C(W.language).supersetOf === $.language)
|
931
918
|
return -1;
|
932
919
|
}
|
933
920
|
return 0;
|
934
|
-
}), [
|
935
|
-
return
|
921
|
+
}), [H, J] = F, oe = H;
|
922
|
+
return oe.secondBest = J, oe;
|
936
923
|
}
|
937
|
-
function m(
|
938
|
-
const
|
939
|
-
|
924
|
+
function m(g, N, S) {
|
925
|
+
const k = N && t[N] || S;
|
926
|
+
g.classList.add("hljs"), g.classList.add(`language-${k}`);
|
940
927
|
}
|
941
|
-
function E(
|
942
|
-
let
|
943
|
-
const
|
944
|
-
if (i(
|
928
|
+
function E(g) {
|
929
|
+
let N = null;
|
930
|
+
const S = d(g);
|
931
|
+
if (i(S))
|
945
932
|
return;
|
946
|
-
if (
|
933
|
+
if (z(
|
947
934
|
"before:highlightElement",
|
948
|
-
{ el:
|
949
|
-
),
|
950
|
-
throw new
|
935
|
+
{ el: g, language: S }
|
936
|
+
), g.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(g)), r.throwUnescapedHTML))
|
937
|
+
throw new Nr(
|
951
938
|
"One of your code blocks includes unescaped HTML.",
|
952
|
-
|
939
|
+
g.innerHTML
|
953
940
|
);
|
954
|
-
|
955
|
-
const
|
956
|
-
|
957
|
-
language:
|
941
|
+
N = g;
|
942
|
+
const k = N.textContent, F = S ? l(k, { language: S, ignoreIllegals: !0 }) : p(k);
|
943
|
+
g.innerHTML = F.value, m(g, S, F.language), g.result = {
|
944
|
+
language: F.language,
|
958
945
|
// TODO: remove with version 11.0
|
959
|
-
re:
|
960
|
-
relevance:
|
961
|
-
},
|
962
|
-
language:
|
963
|
-
relevance:
|
964
|
-
}),
|
946
|
+
re: F.relevance,
|
947
|
+
relevance: F.relevance
|
948
|
+
}, F.secondBest && (g.secondBest = {
|
949
|
+
language: F.secondBest.language,
|
950
|
+
relevance: F.secondBest.relevance
|
951
|
+
}), z("after:highlightElement", { el: g, result: F, text: k });
|
965
952
|
}
|
966
|
-
function
|
967
|
-
r =
|
953
|
+
function h(g) {
|
954
|
+
r = An(r, g);
|
968
955
|
}
|
969
|
-
const
|
970
|
-
|
956
|
+
const f = () => {
|
957
|
+
M(), _e("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
971
958
|
};
|
972
|
-
function S() {
|
973
|
-
A(), fe("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
974
|
-
}
|
975
|
-
let I = !1;
|
976
959
|
function A() {
|
960
|
+
M(), _e("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
961
|
+
}
|
962
|
+
let R = !1;
|
963
|
+
function M() {
|
977
964
|
if (document.readyState === "loading") {
|
978
|
-
|
965
|
+
R = !0;
|
979
966
|
return;
|
980
967
|
}
|
981
968
|
document.querySelectorAll(r.cssSelector).forEach(E);
|
982
969
|
}
|
983
|
-
function
|
984
|
-
|
970
|
+
function I() {
|
971
|
+
R && M();
|
985
972
|
}
|
986
|
-
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded",
|
987
|
-
function L(
|
988
|
-
let
|
973
|
+
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", I, !1);
|
974
|
+
function L(g, N) {
|
975
|
+
let S = null;
|
989
976
|
try {
|
990
|
-
|
991
|
-
} catch (
|
992
|
-
if (ge("Language definition for '{}' could not be registered.".replace("{}",
|
993
|
-
ge(
|
977
|
+
S = N(n);
|
978
|
+
} catch (k) {
|
979
|
+
if (ge("Language definition for '{}' could not be registered.".replace("{}", g)), c)
|
980
|
+
ge(k);
|
994
981
|
else
|
995
|
-
throw
|
996
|
-
|
982
|
+
throw k;
|
983
|
+
S = a;
|
997
984
|
}
|
998
|
-
|
985
|
+
S.name || (S.name = g), e[g] = S, S.rawDefinition = N.bind(null, n), S.aliases && q(S.aliases, { languageName: g });
|
999
986
|
}
|
1000
|
-
function
|
1001
|
-
delete e[
|
1002
|
-
for (const
|
1003
|
-
t[
|
987
|
+
function D(g) {
|
988
|
+
delete e[g];
|
989
|
+
for (const N of Object.keys(t))
|
990
|
+
t[N] === g && delete t[N];
|
1004
991
|
}
|
1005
992
|
function v() {
|
1006
993
|
return Object.keys(e);
|
1007
994
|
}
|
1008
|
-
function C(
|
1009
|
-
return
|
995
|
+
function C(g) {
|
996
|
+
return g = (g || "").toLowerCase(), e[g] || e[t[g]];
|
1010
997
|
}
|
1011
|
-
function
|
1012
|
-
typeof
|
1013
|
-
t[
|
998
|
+
function q(g, { languageName: N }) {
|
999
|
+
typeof g == "string" && (g = [g]), g.forEach((S) => {
|
1000
|
+
t[S.toLowerCase()] = N;
|
1014
1001
|
});
|
1015
1002
|
}
|
1016
|
-
function
|
1017
|
-
const
|
1018
|
-
return
|
1003
|
+
function B(g) {
|
1004
|
+
const N = C(g);
|
1005
|
+
return N && !N.disableAutodetect;
|
1019
1006
|
}
|
1020
|
-
function
|
1021
|
-
|
1022
|
-
|
1023
|
-
Object.assign({ block:
|
1007
|
+
function ne(g) {
|
1008
|
+
g["before:highlightBlock"] && !g["before:highlightElement"] && (g["before:highlightElement"] = (N) => {
|
1009
|
+
g["before:highlightBlock"](
|
1010
|
+
Object.assign({ block: N.el }, N)
|
1024
1011
|
);
|
1025
|
-
}),
|
1026
|
-
|
1027
|
-
Object.assign({ block:
|
1012
|
+
}), g["after:highlightBlock"] && !g["after:highlightElement"] && (g["after:highlightElement"] = (N) => {
|
1013
|
+
g["after:highlightBlock"](
|
1014
|
+
Object.assign({ block: N.el }, N)
|
1028
1015
|
);
|
1029
1016
|
});
|
1030
1017
|
}
|
1031
|
-
function
|
1032
|
-
|
1018
|
+
function Q(g) {
|
1019
|
+
ne(g), s.push(g);
|
1033
1020
|
}
|
1034
|
-
function
|
1035
|
-
const
|
1036
|
-
|
1037
|
-
|
1038
|
-
function U(u, f) {
|
1039
|
-
const O = u;
|
1040
|
-
s.forEach(function(x) {
|
1041
|
-
x[O] && x[O](f);
|
1021
|
+
function z(g, N) {
|
1022
|
+
const S = g;
|
1023
|
+
s.forEach(function(k) {
|
1024
|
+
k[S] && k[S](N);
|
1042
1025
|
});
|
1043
1026
|
}
|
1044
|
-
function
|
1045
|
-
return
|
1027
|
+
function V(g) {
|
1028
|
+
return _e("10.7.0", "highlightBlock will be removed entirely in v12.0"), _e("10.7.0", "Please use highlightElement now."), E(g);
|
1046
1029
|
}
|
1047
1030
|
Object.assign(n, {
|
1048
1031
|
highlight: l,
|
1049
1032
|
highlightAuto: p,
|
1050
|
-
highlightAll:
|
1033
|
+
highlightAll: M,
|
1051
1034
|
highlightElement: E,
|
1052
1035
|
// TODO: Remove with v12 API
|
1053
|
-
highlightBlock:
|
1054
|
-
configure:
|
1055
|
-
initHighlighting:
|
1056
|
-
initHighlightingOnLoad:
|
1036
|
+
highlightBlock: V,
|
1037
|
+
configure: h,
|
1038
|
+
initHighlighting: f,
|
1039
|
+
initHighlightingOnLoad: A,
|
1057
1040
|
registerLanguage: L,
|
1058
|
-
unregisterLanguage:
|
1041
|
+
unregisterLanguage: D,
|
1059
1042
|
listLanguages: v,
|
1060
1043
|
getLanguage: C,
|
1061
|
-
registerAliases:
|
1062
|
-
autoDetection:
|
1063
|
-
inherit:
|
1064
|
-
addPlugin:
|
1065
|
-
removePlugin: W
|
1044
|
+
registerAliases: q,
|
1045
|
+
autoDetection: B,
|
1046
|
+
inherit: An,
|
1047
|
+
addPlugin: Q
|
1066
1048
|
}), n.debugMode = function() {
|
1067
1049
|
c = !1;
|
1068
1050
|
}, n.safeMode = function() {
|
1069
1051
|
c = !0;
|
1070
|
-
}, n.versionString =
|
1052
|
+
}, n.versionString = hr, n.regex = {
|
1071
1053
|
concat: be,
|
1072
|
-
lookahead:
|
1073
|
-
either:
|
1074
|
-
optional:
|
1075
|
-
anyNumberOfTimes:
|
1054
|
+
lookahead: bt,
|
1055
|
+
either: fn,
|
1056
|
+
optional: Lt,
|
1057
|
+
anyNumberOfTimes: Dt
|
1076
1058
|
};
|
1077
|
-
for (const
|
1078
|
-
typeof
|
1079
|
-
return Object.assign(n,
|
1080
|
-
}
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
var xe, An;
|
1059
|
+
for (const g in we)
|
1060
|
+
typeof we[g] == "object" && _n.exports(we[g]);
|
1061
|
+
return Object.assign(n, we), n;
|
1062
|
+
};
|
1063
|
+
var ye = vr({}), Tr = ye;
|
1064
|
+
ye.HighlightJS = ye;
|
1065
|
+
ye.default = ye;
|
1066
|
+
var ke, In;
|
1086
1067
|
function Sr() {
|
1087
|
-
if (
|
1088
|
-
return
|
1089
|
-
|
1068
|
+
if (In)
|
1069
|
+
return ke;
|
1070
|
+
In = 1;
|
1090
1071
|
function n(e) {
|
1091
1072
|
const t = e.regex, s = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), c = /[\p{L}0-9._:-]+/u, o = {
|
1092
1073
|
className: "symbol",
|
@@ -1303,13 +1284,13 @@ function Sr() {
|
|
1303
1284
|
]
|
1304
1285
|
};
|
1305
1286
|
}
|
1306
|
-
return
|
1287
|
+
return ke = n, ke;
|
1307
1288
|
}
|
1308
|
-
var
|
1309
|
-
function
|
1310
|
-
if (
|
1311
|
-
return
|
1312
|
-
|
1289
|
+
var xe, Cn;
|
1290
|
+
function wr() {
|
1291
|
+
if (Cn)
|
1292
|
+
return xe;
|
1293
|
+
Cn = 1;
|
1313
1294
|
function n(e) {
|
1314
1295
|
const t = e.regex, s = {}, c = {
|
1315
1296
|
begin: /\$\{/,
|
@@ -1378,7 +1359,7 @@ function Or() {
|
|
1378
1359
|
e.NUMBER_MODE,
|
1379
1360
|
s
|
1380
1361
|
]
|
1381
|
-
},
|
1362
|
+
}, u = [
|
1382
1363
|
"fish",
|
1383
1364
|
"bash",
|
1384
1365
|
"zsh",
|
@@ -1389,7 +1370,7 @@ function Or() {
|
|
1389
1370
|
"dash",
|
1390
1371
|
"scsh"
|
1391
1372
|
], b = e.SHEBANG({
|
1392
|
-
binary: `(${
|
1373
|
+
binary: `(${u.join("|")})`,
|
1393
1374
|
relevance: 10
|
1394
1375
|
}), p = {
|
1395
1376
|
className: "function",
|
@@ -1405,18 +1386,16 @@ function Or() {
|
|
1405
1386
|
"fi",
|
1406
1387
|
"for",
|
1407
1388
|
"while",
|
1408
|
-
"until",
|
1409
1389
|
"in",
|
1410
1390
|
"do",
|
1411
1391
|
"done",
|
1412
1392
|
"case",
|
1413
1393
|
"esac",
|
1414
|
-
"function"
|
1415
|
-
"select"
|
1394
|
+
"function"
|
1416
1395
|
], E = [
|
1417
1396
|
"true",
|
1418
1397
|
"false"
|
1419
|
-
],
|
1398
|
+
], h = { match: /(\/[a-z._-]+)+/ }, f = [
|
1420
1399
|
"break",
|
1421
1400
|
"cd",
|
1422
1401
|
"continue",
|
@@ -1435,7 +1414,7 @@ function Or() {
|
|
1435
1414
|
"trap",
|
1436
1415
|
"umask",
|
1437
1416
|
"unset"
|
1438
|
-
],
|
1417
|
+
], A = [
|
1439
1418
|
"alias",
|
1440
1419
|
"bind",
|
1441
1420
|
"builtin",
|
@@ -1457,7 +1436,7 @@ function Or() {
|
|
1457
1436
|
"typeset",
|
1458
1437
|
"ulimit",
|
1459
1438
|
"unalias"
|
1460
|
-
],
|
1439
|
+
], R = [
|
1461
1440
|
"autoload",
|
1462
1441
|
"bg",
|
1463
1442
|
"bindkey",
|
@@ -1526,7 +1505,7 @@ function Or() {
|
|
1526
1505
|
"zsocket",
|
1527
1506
|
"zstyle",
|
1528
1507
|
"ztcp"
|
1529
|
-
],
|
1508
|
+
], M = [
|
1530
1509
|
"chcon",
|
1531
1510
|
"chgrp",
|
1532
1511
|
"chown",
|
@@ -1639,13 +1618,13 @@ function Or() {
|
|
1639
1618
|
keyword: m,
|
1640
1619
|
literal: E,
|
1641
1620
|
built_in: [
|
1642
|
-
...
|
1643
|
-
...
|
1621
|
+
...f,
|
1622
|
+
...A,
|
1644
1623
|
// Shell modifiers
|
1645
1624
|
"set",
|
1646
1625
|
"shopt",
|
1647
|
-
...
|
1648
|
-
...
|
1626
|
+
...R,
|
1627
|
+
...M
|
1649
1628
|
]
|
1650
1629
|
},
|
1651
1630
|
contains: [
|
@@ -1657,7 +1636,7 @@ function Or() {
|
|
1657
1636
|
l,
|
1658
1637
|
e.HASH_COMMENT_MODE,
|
1659
1638
|
a,
|
1660
|
-
|
1639
|
+
h,
|
1661
1640
|
r,
|
1662
1641
|
i,
|
1663
1642
|
d,
|
@@ -1665,13 +1644,13 @@ function Or() {
|
|
1665
1644
|
]
|
1666
1645
|
};
|
1667
1646
|
}
|
1668
|
-
return
|
1647
|
+
return xe = n, xe;
|
1669
1648
|
}
|
1670
|
-
var
|
1671
|
-
function
|
1672
|
-
if (
|
1673
|
-
return
|
1674
|
-
|
1649
|
+
var De, kn;
|
1650
|
+
function Or() {
|
1651
|
+
if (kn)
|
1652
|
+
return De;
|
1653
|
+
kn = 1;
|
1675
1654
|
function n(e) {
|
1676
1655
|
const t = e.regex, s = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), c = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", a = "<[^<>]+>", r = "(" + c + "|" + t.optional(o) + "[a-zA-Z_]\\w*" + t.optional(a) + ")", i = {
|
1677
1656
|
className: "type",
|
@@ -1698,7 +1677,7 @@ function wr() {
|
|
1698
1677
|
end: /\)([^()\\ ]{0,16})"/
|
1699
1678
|
})
|
1700
1679
|
]
|
1701
|
-
},
|
1680
|
+
}, u = {
|
1702
1681
|
className: "number",
|
1703
1682
|
variants: [
|
1704
1683
|
{ begin: "\\b(0b[01']+)" },
|
@@ -1728,7 +1707,7 @@ function wr() {
|
|
1728
1707
|
className: "title",
|
1729
1708
|
begin: t.optional(o) + e.IDENT_RE,
|
1730
1709
|
relevance: 0
|
1731
|
-
}, m = t.optional(o) + e.IDENT_RE + "\\s*\\(",
|
1710
|
+
}, m = t.optional(o) + e.IDENT_RE + "\\s*\\(", f = {
|
1732
1711
|
keyword: [
|
1733
1712
|
"asm",
|
1734
1713
|
"auto",
|
@@ -1798,14 +1777,14 @@ function wr() {
|
|
1798
1777
|
literal: "true false NULL",
|
1799
1778
|
// TODO: apply hinting work similar to what was done in cpp.js
|
1800
1779
|
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"
|
1801
|
-
},
|
1780
|
+
}, A = [
|
1802
1781
|
b,
|
1803
1782
|
i,
|
1804
1783
|
s,
|
1805
1784
|
e.C_BLOCK_COMMENT_MODE,
|
1806
|
-
|
1785
|
+
u,
|
1807
1786
|
l
|
1808
|
-
],
|
1787
|
+
], R = {
|
1809
1788
|
// This mode covers expression context where we can't expect a function
|
1810
1789
|
// definition and shouldn't highlight anything that looks like one:
|
1811
1790
|
// `return some()`, `else if()`, `(x*sum(1, 2))`
|
@@ -1823,29 +1802,29 @@ function wr() {
|
|
1823
1802
|
end: /;/
|
1824
1803
|
}
|
1825
1804
|
],
|
1826
|
-
keywords:
|
1827
|
-
contains:
|
1805
|
+
keywords: f,
|
1806
|
+
contains: A.concat([
|
1828
1807
|
{
|
1829
1808
|
begin: /\(/,
|
1830
1809
|
end: /\)/,
|
1831
|
-
keywords:
|
1832
|
-
contains:
|
1810
|
+
keywords: f,
|
1811
|
+
contains: A.concat(["self"]),
|
1833
1812
|
relevance: 0
|
1834
1813
|
}
|
1835
1814
|
]),
|
1836
1815
|
relevance: 0
|
1837
|
-
},
|
1816
|
+
}, M = {
|
1838
1817
|
begin: "(" + r + "[\\*&\\s]+)+" + m,
|
1839
1818
|
returnBegin: !0,
|
1840
1819
|
end: /[{;=]/,
|
1841
1820
|
excludeEnd: !0,
|
1842
|
-
keywords:
|
1821
|
+
keywords: f,
|
1843
1822
|
illegal: /[^\w\s\*&:<>.]/,
|
1844
1823
|
contains: [
|
1845
1824
|
{
|
1846
1825
|
// to prevent it from being confused as the function title
|
1847
1826
|
begin: c,
|
1848
|
-
keywords:
|
1827
|
+
keywords: f,
|
1849
1828
|
relevance: 0
|
1850
1829
|
},
|
1851
1830
|
{
|
@@ -1864,26 +1843,26 @@ function wr() {
|
|
1864
1843
|
className: "params",
|
1865
1844
|
begin: /\(/,
|
1866
1845
|
end: /\)/,
|
1867
|
-
keywords:
|
1846
|
+
keywords: f,
|
1868
1847
|
relevance: 0,
|
1869
1848
|
contains: [
|
1870
1849
|
s,
|
1871
1850
|
e.C_BLOCK_COMMENT_MODE,
|
1872
1851
|
l,
|
1873
|
-
|
1852
|
+
u,
|
1874
1853
|
i,
|
1875
1854
|
// Count matching parentheses.
|
1876
1855
|
{
|
1877
1856
|
begin: /\(/,
|
1878
1857
|
end: /\)/,
|
1879
|
-
keywords:
|
1858
|
+
keywords: f,
|
1880
1859
|
relevance: 0,
|
1881
1860
|
contains: [
|
1882
1861
|
"self",
|
1883
1862
|
s,
|
1884
1863
|
e.C_BLOCK_COMMENT_MODE,
|
1885
1864
|
l,
|
1886
|
-
|
1865
|
+
u,
|
1887
1866
|
i
|
1888
1867
|
]
|
1889
1868
|
}
|
@@ -1898,20 +1877,20 @@ function wr() {
|
|
1898
1877
|
return {
|
1899
1878
|
name: "C",
|
1900
1879
|
aliases: ["h"],
|
1901
|
-
keywords:
|
1880
|
+
keywords: f,
|
1902
1881
|
// Until differentiations are added between `c` and `cpp`, `c` will
|
1903
1882
|
// not be auto-detected to avoid auto-detect conflicts between C and C++
|
1904
1883
|
disableAutodetect: !0,
|
1905
1884
|
illegal: "</",
|
1906
1885
|
contains: [].concat(
|
1907
|
-
|
1886
|
+
R,
|
1887
|
+
M,
|
1908
1888
|
A,
|
1909
|
-
S,
|
1910
1889
|
[
|
1911
1890
|
b,
|
1912
1891
|
{
|
1913
1892
|
begin: e.IDENT_RE + "::",
|
1914
|
-
keywords:
|
1893
|
+
keywords: f
|
1915
1894
|
},
|
1916
1895
|
{
|
1917
1896
|
className: "class",
|
@@ -1927,17 +1906,17 @@ function wr() {
|
|
1927
1906
|
exports: {
|
1928
1907
|
preprocessor: b,
|
1929
1908
|
strings: l,
|
1930
|
-
keywords:
|
1909
|
+
keywords: f
|
1931
1910
|
}
|
1932
1911
|
};
|
1933
1912
|
}
|
1934
|
-
return
|
1913
|
+
return De = n, De;
|
1935
1914
|
}
|
1936
|
-
var
|
1915
|
+
var Le, xn;
|
1937
1916
|
function Rr() {
|
1938
|
-
if (
|
1939
|
-
return
|
1940
|
-
|
1917
|
+
if (xn)
|
1918
|
+
return Le;
|
1919
|
+
xn = 1;
|
1941
1920
|
function n(e) {
|
1942
1921
|
const t = e.regex, s = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), c = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", a = "<[^<>]+>", r = "(?!struct)(" + c + "|" + t.optional(o) + "[a-zA-Z_]\\w*" + t.optional(a) + ")", i = {
|
1943
1922
|
className: "type",
|
@@ -1961,7 +1940,7 @@ function Rr() {
|
|
1961
1940
|
end: /\)([^()\\ ]{0,16})"/
|
1962
1941
|
})
|
1963
1942
|
]
|
1964
|
-
},
|
1943
|
+
}, u = {
|
1965
1944
|
className: "number",
|
1966
1945
|
variants: [
|
1967
1946
|
{ begin: "\\b(0b[01']+)" },
|
@@ -2079,7 +2058,7 @@ function Rr() {
|
|
2079
2058
|
"while",
|
2080
2059
|
"xor",
|
2081
2060
|
"xor_eq"
|
2082
|
-
],
|
2061
|
+
], h = [
|
2083
2062
|
"bool",
|
2084
2063
|
"char",
|
2085
2064
|
"char16_t",
|
@@ -2096,7 +2075,7 @@ function Rr() {
|
|
2096
2075
|
"signed",
|
2097
2076
|
"const",
|
2098
2077
|
"static"
|
2099
|
-
],
|
2078
|
+
], f = [
|
2100
2079
|
"any",
|
2101
2080
|
"auto_ptr",
|
2102
2081
|
"barrier",
|
@@ -2152,7 +2131,7 @@ function Rr() {
|
|
2152
2131
|
"weak_ptr",
|
2153
2132
|
"wstring",
|
2154
2133
|
"wstring_view"
|
2155
|
-
],
|
2134
|
+
], A = [
|
2156
2135
|
"abort",
|
2157
2136
|
"abs",
|
2158
2137
|
"acos",
|
@@ -2253,8 +2232,8 @@ function Rr() {
|
|
2253
2232
|
"visit",
|
2254
2233
|
"vprintf",
|
2255
2234
|
"vsprintf"
|
2256
|
-
],
|
2257
|
-
type:
|
2235
|
+
], I = {
|
2236
|
+
type: h,
|
2258
2237
|
keyword: E,
|
2259
2238
|
literal: [
|
2260
2239
|
"NULL",
|
@@ -2264,13 +2243,13 @@ function Rr() {
|
|
2264
2243
|
"true"
|
2265
2244
|
],
|
2266
2245
|
built_in: ["_Pragma"],
|
2267
|
-
_type_hints:
|
2246
|
+
_type_hints: f
|
2268
2247
|
}, L = {
|
2269
2248
|
className: "function.dispatch",
|
2270
2249
|
relevance: 0,
|
2271
2250
|
keywords: {
|
2272
2251
|
// Only for relevance, not highlighting.
|
2273
|
-
_hint:
|
2252
|
+
_hint: A
|
2274
2253
|
},
|
2275
2254
|
begin: t.concat(
|
2276
2255
|
/\b/,
|
@@ -2282,13 +2261,13 @@ function Rr() {
|
|
2282
2261
|
e.IDENT_RE,
|
2283
2262
|
t.lookahead(/(<[^<>]+>|)\s*\(/)
|
2284
2263
|
)
|
2285
|
-
},
|
2264
|
+
}, D = [
|
2286
2265
|
L,
|
2287
2266
|
b,
|
2288
2267
|
i,
|
2289
2268
|
s,
|
2290
2269
|
e.C_BLOCK_COMMENT_MODE,
|
2291
|
-
|
2270
|
+
u,
|
2292
2271
|
l
|
2293
2272
|
], v = {
|
2294
2273
|
// This mode covers expression context where we can't expect a function
|
@@ -2308,13 +2287,13 @@ function Rr() {
|
|
2308
2287
|
end: /;/
|
2309
2288
|
}
|
2310
2289
|
],
|
2311
|
-
keywords:
|
2312
|
-
contains:
|
2290
|
+
keywords: I,
|
2291
|
+
contains: D.concat([
|
2313
2292
|
{
|
2314
2293
|
begin: /\(/,
|
2315
2294
|
end: /\)/,
|
2316
|
-
keywords:
|
2317
|
-
contains:
|
2295
|
+
keywords: I,
|
2296
|
+
contains: D.concat(["self"]),
|
2318
2297
|
relevance: 0
|
2319
2298
|
}
|
2320
2299
|
]),
|
@@ -2325,13 +2304,13 @@ function Rr() {
|
|
2325
2304
|
returnBegin: !0,
|
2326
2305
|
end: /[{;=]/,
|
2327
2306
|
excludeEnd: !0,
|
2328
|
-
keywords:
|
2307
|
+
keywords: I,
|
2329
2308
|
illegal: /[^\w\s\*&:<>.]/,
|
2330
2309
|
contains: [
|
2331
2310
|
{
|
2332
2311
|
// to prevent it from being confused as the function title
|
2333
2312
|
begin: c,
|
2334
|
-
keywords:
|
2313
|
+
keywords: I,
|
2335
2314
|
relevance: 0
|
2336
2315
|
},
|
2337
2316
|
{
|
@@ -2352,7 +2331,7 @@ function Rr() {
|
|
2352
2331
|
endsWithParent: !0,
|
2353
2332
|
contains: [
|
2354
2333
|
l,
|
2355
|
-
|
2334
|
+
u
|
2356
2335
|
]
|
2357
2336
|
},
|
2358
2337
|
// allow for multiple declarations, e.g.:
|
@@ -2365,26 +2344,26 @@ function Rr() {
|
|
2365
2344
|
className: "params",
|
2366
2345
|
begin: /\(/,
|
2367
2346
|
end: /\)/,
|
2368
|
-
keywords:
|
2347
|
+
keywords: I,
|
2369
2348
|
relevance: 0,
|
2370
2349
|
contains: [
|
2371
2350
|
s,
|
2372
2351
|
e.C_BLOCK_COMMENT_MODE,
|
2373
2352
|
l,
|
2374
|
-
|
2353
|
+
u,
|
2375
2354
|
i,
|
2376
2355
|
// Count matching parentheses.
|
2377
2356
|
{
|
2378
2357
|
begin: /\(/,
|
2379
2358
|
end: /\)/,
|
2380
|
-
keywords:
|
2359
|
+
keywords: I,
|
2381
2360
|
relevance: 0,
|
2382
2361
|
contains: [
|
2383
2362
|
"self",
|
2384
2363
|
s,
|
2385
2364
|
e.C_BLOCK_COMMENT_MODE,
|
2386
2365
|
l,
|
2387
|
-
|
2366
|
+
u,
|
2388
2367
|
i
|
2389
2368
|
]
|
2390
2369
|
}
|
@@ -2407,21 +2386,21 @@ function Rr() {
|
|
2407
2386
|
"hxx",
|
2408
2387
|
"cxx"
|
2409
2388
|
],
|
2410
|
-
keywords:
|
2389
|
+
keywords: I,
|
2411
2390
|
illegal: "</",
|
2412
2391
|
classNameAliases: { "function.dispatch": "built_in" },
|
2413
2392
|
contains: [].concat(
|
2414
2393
|
v,
|
2415
2394
|
C,
|
2416
2395
|
L,
|
2417
|
-
|
2396
|
+
D,
|
2418
2397
|
[
|
2419
2398
|
b,
|
2420
2399
|
{
|
2421
2400
|
// containers: ie, `vector <int> rooms (9);`
|
2422
2401
|
begin: "\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",
|
2423
2402
|
end: ">",
|
2424
|
-
keywords:
|
2403
|
+
keywords: I,
|
2425
2404
|
contains: [
|
2426
2405
|
"self",
|
2427
2406
|
i
|
@@ -2429,7 +2408,7 @@ function Rr() {
|
|
2429
2408
|
},
|
2430
2409
|
{
|
2431
2410
|
begin: e.IDENT_RE + "::",
|
2432
|
-
keywords:
|
2411
|
+
keywords: I
|
2433
2412
|
},
|
2434
2413
|
{
|
2435
2414
|
match: [
|
@@ -2447,13 +2426,13 @@ function Rr() {
|
|
2447
2426
|
)
|
2448
2427
|
};
|
2449
2428
|
}
|
2450
|
-
return
|
2429
|
+
return Le = n, Le;
|
2451
2430
|
}
|
2452
|
-
var
|
2431
|
+
var Be, Dn;
|
2453
2432
|
function Ar() {
|
2454
|
-
if (
|
2455
|
-
return
|
2456
|
-
|
2433
|
+
if (Dn)
|
2434
|
+
return Be;
|
2435
|
+
Dn = 1;
|
2457
2436
|
function n(e) {
|
2458
2437
|
const t = [
|
2459
2438
|
"bool",
|
@@ -2607,7 +2586,7 @@ function Ar() {
|
|
2607
2586
|
begin: '@"',
|
2608
2587
|
end: '"',
|
2609
2588
|
contains: [{ begin: '""' }]
|
2610
|
-
},
|
2589
|
+
}, u = e.inherit(l, { illegal: /\n/ }), b = {
|
2611
2590
|
className: "subst",
|
2612
2591
|
begin: /\{/,
|
2613
2592
|
end: /\}/,
|
@@ -2633,7 +2612,7 @@ function Ar() {
|
|
2633
2612
|
{ begin: '""' },
|
2634
2613
|
b
|
2635
2614
|
]
|
2636
|
-
},
|
2615
|
+
}, h = e.inherit(E, {
|
2637
2616
|
illegal: /\n/,
|
2638
2617
|
contains: [
|
2639
2618
|
{ begin: /\{\{/ },
|
@@ -2651,28 +2630,28 @@ function Ar() {
|
|
2651
2630
|
d,
|
2652
2631
|
e.C_BLOCK_COMMENT_MODE
|
2653
2632
|
], p.contains = [
|
2654
|
-
|
2633
|
+
h,
|
2655
2634
|
m,
|
2656
|
-
|
2635
|
+
u,
|
2657
2636
|
e.APOS_STRING_MODE,
|
2658
2637
|
e.QUOTE_STRING_MODE,
|
2659
2638
|
d,
|
2660
2639
|
e.inherit(e.C_BLOCK_COMMENT_MODE, { illegal: /\n/ })
|
2661
2640
|
];
|
2662
|
-
const
|
2641
|
+
const f = { variants: [
|
2663
2642
|
E,
|
2664
2643
|
m,
|
2665
2644
|
l,
|
2666
2645
|
e.APOS_STRING_MODE,
|
2667
2646
|
e.QUOTE_STRING_MODE
|
2668
|
-
] },
|
2647
|
+
] }, A = {
|
2669
2648
|
begin: "<",
|
2670
2649
|
end: ">",
|
2671
2650
|
contains: [
|
2672
2651
|
{ beginKeywords: "in out" },
|
2673
2652
|
i
|
2674
2653
|
]
|
2675
|
-
},
|
2654
|
+
}, R = e.IDENT_RE + "(<" + e.IDENT_RE + "(\\s*,\\s*" + e.IDENT_RE + ")*>)?(\\[\\])?", M = {
|
2676
2655
|
// prevents expressions like `@class` from incorrect flagging
|
2677
2656
|
// `class` as a keyword
|
2678
2657
|
begin: "@" + e.IDENT_RE,
|
@@ -2718,7 +2697,7 @@ function Ar() {
|
|
2718
2697
|
end: "$",
|
2719
2698
|
keywords: { keyword: "if else elif endif define undef warning error line region endregion pragma checksum" }
|
2720
2699
|
},
|
2721
|
-
|
2700
|
+
f,
|
2722
2701
|
d,
|
2723
2702
|
{
|
2724
2703
|
beginKeywords: "class interface",
|
@@ -2728,7 +2707,7 @@ function Ar() {
|
|
2728
2707
|
contains: [
|
2729
2708
|
{ beginKeywords: "where class" },
|
2730
2709
|
i,
|
2731
|
-
|
2710
|
+
A,
|
2732
2711
|
e.C_LINE_COMMENT_MODE,
|
2733
2712
|
e.C_BLOCK_COMMENT_MODE
|
2734
2713
|
]
|
@@ -2751,7 +2730,7 @@ function Ar() {
|
|
2751
2730
|
illegal: /[^\s:]/,
|
2752
2731
|
contains: [
|
2753
2732
|
i,
|
2754
|
-
|
2733
|
+
A,
|
2755
2734
|
e.C_LINE_COMMENT_MODE,
|
2756
2735
|
e.C_BLOCK_COMMENT_MODE
|
2757
2736
|
]
|
@@ -2779,7 +2758,7 @@ function Ar() {
|
|
2779
2758
|
},
|
2780
2759
|
{
|
2781
2760
|
className: "function",
|
2782
|
-
begin: "(" +
|
2761
|
+
begin: "(" + R + "\\s+)+" + e.IDENT_RE + "\\s*(<[^=]+>\\s*)?\\(",
|
2783
2762
|
returnBegin: !0,
|
2784
2763
|
end: /\s*[{;=]/,
|
2785
2764
|
excludeEnd: !0,
|
@@ -2795,7 +2774,7 @@ function Ar() {
|
|
2795
2774
|
returnBegin: !0,
|
2796
2775
|
contains: [
|
2797
2776
|
e.TITLE_MODE,
|
2798
|
-
|
2777
|
+
A
|
2799
2778
|
],
|
2800
2779
|
relevance: 0
|
2801
2780
|
},
|
@@ -2809,7 +2788,7 @@ function Ar() {
|
|
2809
2788
|
keywords: r,
|
2810
2789
|
relevance: 0,
|
2811
2790
|
contains: [
|
2812
|
-
|
2791
|
+
f,
|
2813
2792
|
d,
|
2814
2793
|
e.C_BLOCK_COMMENT_MODE
|
2815
2794
|
]
|
@@ -2818,17 +2797,17 @@ function Ar() {
|
|
2818
2797
|
e.C_BLOCK_COMMENT_MODE
|
2819
2798
|
]
|
2820
2799
|
},
|
2821
|
-
|
2800
|
+
M
|
2822
2801
|
]
|
2823
2802
|
};
|
2824
2803
|
}
|
2825
|
-
return
|
2804
|
+
return Be = n, Be;
|
2826
2805
|
}
|
2827
|
-
var
|
2806
|
+
var Ue, Ln;
|
2828
2807
|
function Mr() {
|
2829
|
-
if (
|
2830
|
-
return
|
2831
|
-
|
2808
|
+
if (Ln)
|
2809
|
+
return Ue;
|
2810
|
+
Ln = 1;
|
2832
2811
|
const n = (r) => ({
|
2833
2812
|
IMPORTANT: {
|
2834
2813
|
scope: "meta",
|
@@ -3423,7 +3402,7 @@ function Mr() {
|
|
3423
3402
|
// instead of getting false positives on say `font`
|
3424
3403
|
].reverse();
|
3425
3404
|
function a(r) {
|
3426
|
-
const i = r.regex, d = n(r), l = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ },
|
3405
|
+
const i = r.regex, d = n(r), l = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }, u = "and or not only", b = /@-?\w[\w]*(-\w+)*/, p = "[a-zA-Z-][a-zA-Z0-9_-]*", m = [
|
3427
3406
|
r.APOS_STRING_MODE,
|
3428
3407
|
r.QUOTE_STRING_MODE
|
3429
3408
|
];
|
@@ -3524,7 +3503,7 @@ function Mr() {
|
|
3524
3503
|
relevance: 0,
|
3525
3504
|
keywords: {
|
3526
3505
|
$pattern: /[a-z-]+/,
|
3527
|
-
keyword:
|
3506
|
+
keyword: u,
|
3528
3507
|
attribute: t.join(" ")
|
3529
3508
|
},
|
3530
3509
|
contains: [
|
@@ -3545,13 +3524,13 @@ function Mr() {
|
|
3545
3524
|
]
|
3546
3525
|
};
|
3547
3526
|
}
|
3548
|
-
return
|
3527
|
+
return Ue = a, Ue;
|
3549
3528
|
}
|
3550
|
-
var
|
3529
|
+
var Pe, Bn;
|
3551
3530
|
function Ir() {
|
3552
|
-
if (
|
3553
|
-
return
|
3554
|
-
|
3531
|
+
if (Bn)
|
3532
|
+
return Pe;
|
3533
|
+
Bn = 1;
|
3555
3534
|
function n(e) {
|
3556
3535
|
const t = e.regex, s = {
|
3557
3536
|
begin: /<\/?[A-Za-z_]/,
|
@@ -3686,7 +3665,7 @@ function Ir() {
|
|
3686
3665
|
end: /\*{2}/
|
3687
3666
|
}
|
3688
3667
|
]
|
3689
|
-
},
|
3668
|
+
}, u = {
|
3690
3669
|
className: "emphasis",
|
3691
3670
|
contains: [],
|
3692
3671
|
// defined later
|
@@ -3701,20 +3680,20 @@ function Ir() {
|
|
3701
3680
|
relevance: 0
|
3702
3681
|
}
|
3703
3682
|
]
|
3704
|
-
}, b = e.inherit(l, { contains: [] }), p = e.inherit(
|
3705
|
-
l.contains.push(p),
|
3683
|
+
}, b = e.inherit(l, { contains: [] }), p = e.inherit(u, { contains: [] });
|
3684
|
+
l.contains.push(p), u.contains.push(b);
|
3706
3685
|
let m = [
|
3707
3686
|
s,
|
3708
3687
|
d
|
3709
3688
|
];
|
3710
3689
|
return [
|
3711
3690
|
l,
|
3712
|
-
|
3691
|
+
u,
|
3713
3692
|
b,
|
3714
3693
|
p
|
3715
|
-
].forEach((
|
3716
|
-
|
3717
|
-
}), m = m.concat(l,
|
3694
|
+
].forEach((f) => {
|
3695
|
+
f.contains = f.contains.concat(m);
|
3696
|
+
}), m = m.concat(l, u), {
|
3718
3697
|
name: "Markdown",
|
3719
3698
|
aliases: [
|
3720
3699
|
"md",
|
@@ -3746,7 +3725,7 @@ function Ir() {
|
|
3746
3725
|
s,
|
3747
3726
|
a,
|
3748
3727
|
l,
|
3749
|
-
|
3728
|
+
u,
|
3750
3729
|
{
|
3751
3730
|
className: "quote",
|
3752
3731
|
begin: "^>\\s+",
|
@@ -3760,13 +3739,13 @@ function Ir() {
|
|
3760
3739
|
]
|
3761
3740
|
};
|
3762
3741
|
}
|
3763
|
-
return
|
3742
|
+
return Pe = n, Pe;
|
3764
3743
|
}
|
3765
|
-
var
|
3744
|
+
var Fe, Un;
|
3766
3745
|
function Cr() {
|
3767
|
-
if (
|
3768
|
-
return
|
3769
|
-
|
3746
|
+
if (Un)
|
3747
|
+
return Fe;
|
3748
|
+
Un = 1;
|
3770
3749
|
function n(e) {
|
3771
3750
|
const t = e.regex;
|
3772
3751
|
return {
|
@@ -3818,13 +3797,13 @@ function Cr() {
|
|
3818
3797
|
]
|
3819
3798
|
};
|
3820
3799
|
}
|
3821
|
-
return
|
3800
|
+
return Fe = n, Fe;
|
3822
3801
|
}
|
3823
|
-
var
|
3802
|
+
var $e, Pn;
|
3824
3803
|
function kr() {
|
3825
|
-
if (
|
3826
|
-
return
|
3827
|
-
|
3804
|
+
if (Pn)
|
3805
|
+
return $e;
|
3806
|
+
Pn = 1;
|
3828
3807
|
function n(e) {
|
3829
3808
|
const t = e.regex, s = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", c = t.either(
|
3830
3809
|
/\b([A-Z]+[a-z0-9]+)+/,
|
@@ -3921,7 +3900,7 @@ function kr() {
|
|
3921
3900
|
}
|
3922
3901
|
),
|
3923
3902
|
e.COMMENT("^__END__", e.MATCH_NOTHING_RE)
|
3924
|
-
],
|
3903
|
+
], u = {
|
3925
3904
|
className: "subst",
|
3926
3905
|
begin: /#\{/,
|
3927
3906
|
end: /\}/,
|
@@ -3930,7 +3909,7 @@ function kr() {
|
|
3930
3909
|
className: "string",
|
3931
3910
|
contains: [
|
3932
3911
|
e.BACKSLASH_ESCAPE,
|
3933
|
-
|
3912
|
+
u
|
3934
3913
|
],
|
3935
3914
|
variants: [
|
3936
3915
|
{
|
@@ -3999,7 +3978,7 @@ function kr() {
|
|
3999
3978
|
end: /(\w+)/,
|
4000
3979
|
contains: [
|
4001
3980
|
e.BACKSLASH_ESCAPE,
|
4002
|
-
|
3981
|
+
u
|
4003
3982
|
]
|
4004
3983
|
})
|
4005
3984
|
]
|
@@ -4020,7 +3999,7 @@ function kr() {
|
|
4020
3999
|
// 0-prefixed implicit octal integer, optionally rational and/or imaginary
|
4021
4000
|
{ begin: "\\b0(_?[0-7])+r?i?\\b" }
|
4022
4001
|
]
|
4023
|
-
},
|
4002
|
+
}, h = {
|
4024
4003
|
variants: [
|
4025
4004
|
{
|
4026
4005
|
match: /\(\)/
|
@@ -4034,7 +4013,7 @@ function kr() {
|
|
4034
4013
|
keywords: r
|
4035
4014
|
}
|
4036
4015
|
]
|
4037
|
-
},
|
4016
|
+
}, D = [
|
4038
4017
|
b,
|
4039
4018
|
{
|
4040
4019
|
variants: [
|
@@ -4100,7 +4079,7 @@ function kr() {
|
|
4100
4079
|
3: "title.function"
|
4101
4080
|
},
|
4102
4081
|
contains: [
|
4103
|
-
|
4082
|
+
h
|
4104
4083
|
]
|
4105
4084
|
},
|
4106
4085
|
{
|
@@ -4147,7 +4126,7 @@ function kr() {
|
|
4147
4126
|
className: "regexp",
|
4148
4127
|
contains: [
|
4149
4128
|
e.BACKSLASH_ESCAPE,
|
4150
|
-
|
4129
|
+
u
|
4151
4130
|
],
|
4152
4131
|
illegal: /\n/,
|
4153
4132
|
variants: [
|
@@ -4177,22 +4156,22 @@ function kr() {
|
|
4177
4156
|
relevance: 0
|
4178
4157
|
}
|
4179
4158
|
].concat(d, l);
|
4180
|
-
|
4181
|
-
const v = "[>?]>", C = "[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",
|
4159
|
+
u.contains = D, h.contains = D;
|
4160
|
+
const v = "[>?]>", C = "[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]", q = "(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>", B = [
|
4182
4161
|
{
|
4183
4162
|
begin: /^\s*=>/,
|
4184
4163
|
starts: {
|
4185
4164
|
end: "$",
|
4186
|
-
contains:
|
4165
|
+
contains: D
|
4187
4166
|
}
|
4188
4167
|
},
|
4189
4168
|
{
|
4190
4169
|
className: "meta.prompt",
|
4191
|
-
begin: "^(" + v + "|" + C + "|" +
|
4170
|
+
begin: "^(" + v + "|" + C + "|" + q + ")(?=[ ])",
|
4192
4171
|
starts: {
|
4193
4172
|
end: "$",
|
4194
4173
|
keywords: r,
|
4195
|
-
contains:
|
4174
|
+
contains: D
|
4196
4175
|
}
|
4197
4176
|
}
|
4198
4177
|
];
|
@@ -4207,16 +4186,16 @@ function kr() {
|
|
4207
4186
|
],
|
4208
4187
|
keywords: r,
|
4209
4188
|
illegal: /\/\*/,
|
4210
|
-
contains: [e.SHEBANG({ binary: "ruby" })].concat(
|
4189
|
+
contains: [e.SHEBANG({ binary: "ruby" })].concat(B).concat(l).concat(D)
|
4211
4190
|
};
|
4212
4191
|
}
|
4213
|
-
return
|
4192
|
+
return $e = n, $e;
|
4214
4193
|
}
|
4215
|
-
var
|
4194
|
+
var ze, Fn;
|
4216
4195
|
function xr() {
|
4217
|
-
if (
|
4218
|
-
return
|
4219
|
-
|
4196
|
+
if (Fn)
|
4197
|
+
return ze;
|
4198
|
+
Fn = 1;
|
4220
4199
|
function n(e) {
|
4221
4200
|
const a = {
|
4222
4201
|
keyword: [
|
@@ -4345,13 +4324,13 @@ function xr() {
|
|
4345
4324
|
]
|
4346
4325
|
};
|
4347
4326
|
}
|
4348
|
-
return
|
4327
|
+
return ze = n, ze;
|
4349
4328
|
}
|
4350
|
-
var
|
4329
|
+
var Ke, $n;
|
4351
4330
|
function Dr() {
|
4352
|
-
if (
|
4353
|
-
return
|
4354
|
-
|
4331
|
+
if ($n)
|
4332
|
+
return Ke;
|
4333
|
+
$n = 1;
|
4355
4334
|
function n(e) {
|
4356
4335
|
const t = e.regex, s = /[_A-Za-z][_0-9A-Za-z]*/;
|
4357
4336
|
return {
|
@@ -4419,13 +4398,13 @@ function Dr() {
|
|
4419
4398
|
]
|
4420
4399
|
};
|
4421
4400
|
}
|
4422
|
-
return
|
4401
|
+
return Ke = n, Ke;
|
4423
4402
|
}
|
4424
|
-
var
|
4403
|
+
var qe, zn;
|
4425
4404
|
function Lr() {
|
4426
|
-
if (
|
4427
|
-
return
|
4428
|
-
|
4405
|
+
if (zn)
|
4406
|
+
return qe;
|
4407
|
+
zn = 1;
|
4429
4408
|
function n(e) {
|
4430
4409
|
const t = e.regex, s = {
|
4431
4410
|
className: "number",
|
@@ -4489,10 +4468,10 @@ function Lr() {
|
|
4489
4468
|
"self"
|
4490
4469
|
],
|
4491
4470
|
relevance: 0
|
4492
|
-
}, d = /[A-Za-z0-9_-]+/, l = /"(\\"|[^"])*"/,
|
4471
|
+
}, d = /[A-Za-z0-9_-]+/, l = /"(\\"|[^"])*"/, u = /'[^']*'/, b = t.either(
|
4493
4472
|
d,
|
4494
4473
|
l,
|
4495
|
-
|
4474
|
+
u
|
4496
4475
|
), p = t.concat(
|
4497
4476
|
b,
|
4498
4477
|
"(\\s*\\.\\s*",
|
@@ -4530,13 +4509,13 @@ function Lr() {
|
|
4530
4509
|
]
|
4531
4510
|
};
|
4532
4511
|
}
|
4533
|
-
return
|
4512
|
+
return qe = n, qe;
|
4534
4513
|
}
|
4535
|
-
var Ge,
|
4514
|
+
var Ge, Kn;
|
4536
4515
|
function Br() {
|
4537
|
-
if (
|
4516
|
+
if (Kn)
|
4538
4517
|
return Ge;
|
4539
|
-
|
4518
|
+
Kn = 1;
|
4540
4519
|
var n = "[0-9](_*[0-9])*", e = `\\.(${n})`, t = "[0-9a-fA-F](_*[0-9a-fA-F])*", s = {
|
4541
4520
|
className: "number",
|
4542
4521
|
variants: [
|
@@ -4639,7 +4618,7 @@ function Br() {
|
|
4639
4618
|
// allow nested () inside our annotation
|
4640
4619
|
}
|
4641
4620
|
]
|
4642
|
-
},
|
4621
|
+
}, h = {
|
4643
4622
|
className: "params",
|
4644
4623
|
begin: /\(/,
|
4645
4624
|
end: /\)/,
|
@@ -4729,7 +4708,7 @@ function Br() {
|
|
4729
4708
|
3: "title.class"
|
4730
4709
|
},
|
4731
4710
|
contains: [
|
4732
|
-
|
4711
|
+
h,
|
4733
4712
|
a.C_LINE_COMMENT_MODE,
|
4734
4713
|
a.C_BLOCK_COMMENT_MODE
|
4735
4714
|
]
|
@@ -4774,11 +4753,11 @@ function Br() {
|
|
4774
4753
|
}
|
4775
4754
|
return Ge = o, Ge;
|
4776
4755
|
}
|
4777
|
-
var
|
4756
|
+
var He, qn;
|
4778
4757
|
function Ur() {
|
4779
|
-
if (
|
4780
|
-
return
|
4781
|
-
|
4758
|
+
if (qn)
|
4759
|
+
return He;
|
4760
|
+
qn = 1;
|
4782
4761
|
const n = "[A-Za-z$_][0-9A-Za-z$_]*", e = [
|
4783
4762
|
"as",
|
4784
4763
|
// for exports
|
@@ -4914,7 +4893,6 @@ function Ur() {
|
|
4914
4893
|
"window",
|
4915
4894
|
"document",
|
4916
4895
|
"localStorage",
|
4917
|
-
"sessionStorage",
|
4918
4896
|
"module",
|
4919
4897
|
"global"
|
4920
4898
|
// Node.js
|
@@ -4924,9 +4902,9 @@ function Ur() {
|
|
4924
4902
|
c
|
4925
4903
|
);
|
4926
4904
|
function i(d) {
|
4927
|
-
const l = d.regex,
|
4928
|
-
const
|
4929
|
-
return
|
4905
|
+
const l = d.regex, u = (Y, { after: P }) => {
|
4906
|
+
const X = "</" + Y[0].slice(1);
|
4907
|
+
return Y.input.indexOf(X, P) !== -1;
|
4930
4908
|
}, b = n, p = {
|
4931
4909
|
begin: "<>",
|
4932
4910
|
end: "</>"
|
@@ -4937,43 +4915,43 @@ function Ur() {
|
|
4937
4915
|
* @param {RegExpMatchArray} match
|
4938
4916
|
* @param {CallbackResponse} response
|
4939
4917
|
*/
|
4940
|
-
isTrulyOpeningTag: (
|
4941
|
-
const
|
4918
|
+
isTrulyOpeningTag: (Y, P) => {
|
4919
|
+
const X = Y[0].length + Y.index, ee = Y.input[X];
|
4942
4920
|
if (
|
4943
4921
|
// HTML should not include another raw `<` inside a tag
|
4944
4922
|
// nested type?
|
4945
4923
|
// `<Array<Array<number>>`, etc.
|
4946
|
-
|
4924
|
+
ee === "<" || // the , gives away that this is not HTML
|
4947
4925
|
// `<T, A extends keyof T, V>`
|
4948
|
-
|
4926
|
+
ee === ","
|
4949
4927
|
) {
|
4950
|
-
|
4928
|
+
P.ignoreMatch();
|
4951
4929
|
return;
|
4952
4930
|
}
|
4953
|
-
|
4954
|
-
let
|
4955
|
-
const
|
4956
|
-
if (
|
4957
|
-
|
4931
|
+
ee === ">" && (u(Y, { after: X }) || P.ignoreMatch());
|
4932
|
+
let te;
|
4933
|
+
const re = Y.input.substring(X);
|
4934
|
+
if (te = re.match(/^\s*=/)) {
|
4935
|
+
P.ignoreMatch();
|
4958
4936
|
return;
|
4959
4937
|
}
|
4960
|
-
if ((
|
4961
|
-
|
4938
|
+
if ((te = re.match(/^\s+extends\s+/)) && te.index === 0) {
|
4939
|
+
P.ignoreMatch();
|
4962
4940
|
return;
|
4963
4941
|
}
|
4964
4942
|
}
|
4965
|
-
},
|
4943
|
+
}, h = {
|
4966
4944
|
$pattern: n,
|
4967
4945
|
keyword: e,
|
4968
4946
|
literal: t,
|
4969
4947
|
built_in: r,
|
4970
4948
|
"variable.language": a
|
4971
|
-
},
|
4949
|
+
}, f = "[0-9](_?[0-9])*", A = `\\.(${f})`, R = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", M = {
|
4972
4950
|
className: "number",
|
4973
4951
|
variants: [
|
4974
4952
|
// DecimalLiteral
|
4975
|
-
{ begin: `(\\b(${
|
4976
|
-
{ begin: `\\b(${
|
4953
|
+
{ begin: `(\\b(${R})((${A})|\\.)?|(${A}))[eE][+-]?(${f})\\b` },
|
4954
|
+
{ begin: `\\b(${R})\\b((${A})\\b|\\.)?|(${A})\\b` },
|
4977
4955
|
// DecimalBigIntegerLiteral
|
4978
4956
|
{ begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
|
4979
4957
|
// NonDecimalIntegerLiteral
|
@@ -4985,11 +4963,11 @@ function Ur() {
|
|
4985
4963
|
{ begin: "\\b0[0-7]+n?\\b" }
|
4986
4964
|
],
|
4987
4965
|
relevance: 0
|
4988
|
-
},
|
4966
|
+
}, I = {
|
4989
4967
|
className: "subst",
|
4990
4968
|
begin: "\\$\\{",
|
4991
4969
|
end: "\\}",
|
4992
|
-
keywords:
|
4970
|
+
keywords: h,
|
4993
4971
|
contains: []
|
4994
4972
|
// defined later
|
4995
4973
|
}, L = {
|
@@ -5000,11 +4978,11 @@ function Ur() {
|
|
5000
4978
|
returnEnd: !1,
|
5001
4979
|
contains: [
|
5002
4980
|
d.BACKSLASH_ESCAPE,
|
5003
|
-
|
4981
|
+
I
|
5004
4982
|
],
|
5005
4983
|
subLanguage: "xml"
|
5006
4984
|
}
|
5007
|
-
},
|
4985
|
+
}, D = {
|
5008
4986
|
begin: "css`",
|
5009
4987
|
end: "",
|
5010
4988
|
starts: {
|
@@ -5012,31 +4990,19 @@ function Ur() {
|
|
5012
4990
|
returnEnd: !1,
|
5013
4991
|
contains: [
|
5014
4992
|
d.BACKSLASH_ESCAPE,
|
5015
|
-
|
4993
|
+
I
|
5016
4994
|
],
|
5017
4995
|
subLanguage: "css"
|
5018
4996
|
}
|
5019
4997
|
}, v = {
|
5020
|
-
begin: "gql`",
|
5021
|
-
end: "",
|
5022
|
-
starts: {
|
5023
|
-
end: "`",
|
5024
|
-
returnEnd: !1,
|
5025
|
-
contains: [
|
5026
|
-
d.BACKSLASH_ESCAPE,
|
5027
|
-
M
|
5028
|
-
],
|
5029
|
-
subLanguage: "graphql"
|
5030
|
-
}
|
5031
|
-
}, C = {
|
5032
4998
|
className: "string",
|
5033
4999
|
begin: "`",
|
5034
5000
|
end: "`",
|
5035
5001
|
contains: [
|
5036
5002
|
d.BACKSLASH_ESCAPE,
|
5037
|
-
|
5003
|
+
I
|
5038
5004
|
]
|
5039
|
-
},
|
5005
|
+
}, q = {
|
5040
5006
|
className: "comment",
|
5041
5007
|
variants: [
|
5042
5008
|
d.COMMENT(
|
@@ -5081,47 +5047,46 @@ function Ur() {
|
|
5081
5047
|
d.C_BLOCK_COMMENT_MODE,
|
5082
5048
|
d.C_LINE_COMMENT_MODE
|
5083
5049
|
]
|
5084
|
-
},
|
5050
|
+
}, B = [
|
5085
5051
|
d.APOS_STRING_MODE,
|
5086
5052
|
d.QUOTE_STRING_MODE,
|
5087
5053
|
L,
|
5088
|
-
|
5054
|
+
D,
|
5089
5055
|
v,
|
5090
|
-
C,
|
5091
5056
|
// Skip numbers when they are part of a variable name
|
5092
5057
|
{ match: /\$\d+/ },
|
5093
|
-
|
5058
|
+
M
|
5094
5059
|
// This is intentional:
|
5095
5060
|
// See https://github.com/highlightjs/highlight.js/issues/3288
|
5096
5061
|
// hljs.REGEXP_MODE
|
5097
5062
|
];
|
5098
|
-
|
5063
|
+
I.contains = B.concat({
|
5099
5064
|
// we need to pair up {} inside our subst to prevent
|
5100
5065
|
// it from ending too early by matching another }
|
5101
5066
|
begin: /\{/,
|
5102
5067
|
end: /\}/,
|
5103
|
-
keywords:
|
5068
|
+
keywords: h,
|
5104
5069
|
contains: [
|
5105
5070
|
"self"
|
5106
|
-
].concat(
|
5071
|
+
].concat(B)
|
5107
5072
|
});
|
5108
|
-
const
|
5073
|
+
const ne = [].concat(q, I.contains), Q = ne.concat([
|
5109
5074
|
// eat recursive parens in sub expressions
|
5110
5075
|
{
|
5111
5076
|
begin: /\(/,
|
5112
5077
|
end: /\)/,
|
5113
|
-
keywords:
|
5114
|
-
contains: ["self"].concat(
|
5078
|
+
keywords: h,
|
5079
|
+
contains: ["self"].concat(ne)
|
5115
5080
|
}
|
5116
|
-
]),
|
5081
|
+
]), z = {
|
5117
5082
|
className: "params",
|
5118
5083
|
begin: /\(/,
|
5119
5084
|
end: /\)/,
|
5120
5085
|
excludeBegin: !0,
|
5121
5086
|
excludeEnd: !0,
|
5122
|
-
keywords:
|
5123
|
-
contains:
|
5124
|
-
},
|
5087
|
+
keywords: h,
|
5088
|
+
contains: Q
|
5089
|
+
}, V = {
|
5125
5090
|
variants: [
|
5126
5091
|
// class Car extends vehicle
|
5127
5092
|
{
|
@@ -5154,7 +5119,7 @@ function Ur() {
|
|
5154
5119
|
}
|
5155
5120
|
}
|
5156
5121
|
]
|
5157
|
-
},
|
5122
|
+
}, g = {
|
5158
5123
|
relevance: 0,
|
5159
5124
|
match: l.either(
|
5160
5125
|
// Hard coded exceptions
|
@@ -5178,12 +5143,12 @@ function Ur() {
|
|
5178
5143
|
...c
|
5179
5144
|
]
|
5180
5145
|
}
|
5181
|
-
},
|
5146
|
+
}, N = {
|
5182
5147
|
label: "use_strict",
|
5183
5148
|
className: "meta",
|
5184
5149
|
relevance: 10,
|
5185
5150
|
begin: /^\s*['"]use (strict|asm)['"]/
|
5186
|
-
},
|
5151
|
+
}, S = {
|
5187
5152
|
variants: [
|
5188
5153
|
{
|
5189
5154
|
match: [
|
@@ -5206,20 +5171,20 @@ function Ur() {
|
|
5206
5171
|
3: "title.function"
|
5207
5172
|
},
|
5208
5173
|
label: "func.def",
|
5209
|
-
contains: [
|
5174
|
+
contains: [z],
|
5210
5175
|
illegal: /%/
|
5211
|
-
},
|
5176
|
+
}, k = {
|
5212
5177
|
relevance: 0,
|
5213
5178
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
5214
5179
|
className: "variable.constant"
|
5215
5180
|
};
|
5216
|
-
function
|
5217
|
-
return l.concat("(?!",
|
5181
|
+
function F(Y) {
|
5182
|
+
return l.concat("(?!", Y.join("|"), ")");
|
5218
5183
|
}
|
5219
|
-
const
|
5184
|
+
const H = {
|
5220
5185
|
match: l.concat(
|
5221
5186
|
/\b/,
|
5222
|
-
|
5187
|
+
F([
|
5223
5188
|
...o,
|
5224
5189
|
"super",
|
5225
5190
|
"import"
|
@@ -5229,7 +5194,7 @@ function Ur() {
|
|
5229
5194
|
),
|
5230
5195
|
className: "title.function",
|
5231
5196
|
relevance: 0
|
5232
|
-
},
|
5197
|
+
}, J = {
|
5233
5198
|
begin: l.concat(/\./, l.lookahead(
|
5234
5199
|
l.concat(b, /(?![0-9A-Za-z$_(])/)
|
5235
5200
|
)),
|
@@ -5238,7 +5203,7 @@ function Ur() {
|
|
5238
5203
|
keywords: "prototype",
|
5239
5204
|
className: "property",
|
5240
5205
|
relevance: 0
|
5241
|
-
},
|
5206
|
+
}, oe = {
|
5242
5207
|
match: [
|
5243
5208
|
/get|set/,
|
5244
5209
|
/\s+/,
|
@@ -5254,9 +5219,9 @@ function Ur() {
|
|
5254
5219
|
// eat to avoid empty params
|
5255
5220
|
begin: /\(\)/
|
5256
5221
|
},
|
5257
|
-
|
5222
|
+
z
|
5258
5223
|
]
|
5259
|
-
},
|
5224
|
+
}, $ = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + d.UNDERSCORE_IDENT_RE + ")\\s*=>", W = {
|
5260
5225
|
match: [
|
5261
5226
|
/const|var|let/,
|
5262
5227
|
/\s+/,
|
@@ -5265,7 +5230,7 @@ function Ur() {
|
|
5265
5230
|
/=\s*/,
|
5266
5231
|
/(async\s*)?/,
|
5267
5232
|
// async is optional
|
5268
|
-
l.lookahead(
|
5233
|
+
l.lookahead($)
|
5269
5234
|
],
|
5270
5235
|
keywords: "async",
|
5271
5236
|
className: {
|
@@ -5273,15 +5238,15 @@ function Ur() {
|
|
5273
5238
|
3: "title.function"
|
5274
5239
|
},
|
5275
5240
|
contains: [
|
5276
|
-
|
5241
|
+
z
|
5277
5242
|
]
|
5278
5243
|
};
|
5279
5244
|
return {
|
5280
|
-
name: "
|
5245
|
+
name: "Javascript",
|
5281
5246
|
aliases: ["js", "jsx", "mjs", "cjs"],
|
5282
|
-
keywords:
|
5247
|
+
keywords: h,
|
5283
5248
|
// this will be extended by TypeScript
|
5284
|
-
exports: { PARAMS_CONTAINS:
|
5249
|
+
exports: { PARAMS_CONTAINS: Q, CLASS_REFERENCE: g },
|
5285
5250
|
illegal: /#(?![$_A-z])/,
|
5286
5251
|
contains: [
|
5287
5252
|
d.SHEBANG({
|
@@ -5289,38 +5254,37 @@ function Ur() {
|
|
5289
5254
|
binary: "node",
|
5290
5255
|
relevance: 5
|
5291
5256
|
}),
|
5292
|
-
|
5257
|
+
N,
|
5293
5258
|
d.APOS_STRING_MODE,
|
5294
5259
|
d.QUOTE_STRING_MODE,
|
5295
5260
|
L,
|
5296
|
-
|
5261
|
+
D,
|
5297
5262
|
v,
|
5298
|
-
|
5299
|
-
F,
|
5263
|
+
q,
|
5300
5264
|
// Skip numbers when they are part of a variable name
|
5301
5265
|
{ match: /\$\d+/ },
|
5302
|
-
|
5303
|
-
|
5266
|
+
M,
|
5267
|
+
g,
|
5304
5268
|
{
|
5305
5269
|
className: "attr",
|
5306
5270
|
begin: b + l.lookahead(":"),
|
5307
5271
|
relevance: 0
|
5308
5272
|
},
|
5309
|
-
|
5273
|
+
W,
|
5310
5274
|
{
|
5311
5275
|
// "value" container
|
5312
5276
|
begin: "(" + d.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
|
5313
5277
|
keywords: "return throw case",
|
5314
5278
|
relevance: 0,
|
5315
5279
|
contains: [
|
5316
|
-
|
5280
|
+
q,
|
5317
5281
|
d.REGEXP_MODE,
|
5318
5282
|
{
|
5319
5283
|
className: "function",
|
5320
5284
|
// we have to count the parens to make sure we actually have the
|
5321
5285
|
// correct bounding ( ) before the =>. There could be any number of
|
5322
5286
|
// sub-expressions inside also surrounded by parens.
|
5323
|
-
begin:
|
5287
|
+
begin: $,
|
5324
5288
|
returnBegin: !0,
|
5325
5289
|
end: "\\s*=>",
|
5326
5290
|
contains: [
|
@@ -5341,8 +5305,8 @@ function Ur() {
|
|
5341
5305
|
end: /\)/,
|
5342
5306
|
excludeBegin: !0,
|
5343
5307
|
excludeEnd: !0,
|
5344
|
-
keywords:
|
5345
|
-
contains:
|
5308
|
+
keywords: h,
|
5309
|
+
contains: Q
|
5346
5310
|
}
|
5347
5311
|
]
|
5348
5312
|
}
|
@@ -5382,7 +5346,7 @@ function Ur() {
|
|
5382
5346
|
}
|
5383
5347
|
]
|
5384
5348
|
},
|
5385
|
-
|
5349
|
+
S,
|
5386
5350
|
{
|
5387
5351
|
// prevent this from getting swallowed up by function
|
5388
5352
|
// since they appear "function like"
|
@@ -5397,7 +5361,7 @@ function Ur() {
|
|
5397
5361
|
returnBegin: !0,
|
5398
5362
|
label: "func.def",
|
5399
5363
|
contains: [
|
5400
|
-
|
5364
|
+
z,
|
5401
5365
|
d.inherit(d.TITLE_MODE, { begin: b, className: "title.function" })
|
5402
5366
|
]
|
5403
5367
|
},
|
@@ -5406,7 +5370,7 @@ function Ur() {
|
|
5406
5370
|
match: /\.\.\./,
|
5407
5371
|
relevance: 0
|
5408
5372
|
},
|
5409
|
-
|
5373
|
+
J,
|
5410
5374
|
// hack: prevents detection of keywords in some circumstances
|
5411
5375
|
// .keyword()
|
5412
5376
|
// $keyword = x
|
@@ -5417,12 +5381,12 @@ function Ur() {
|
|
5417
5381
|
{
|
5418
5382
|
match: [/\bconstructor(?=\s*\()/],
|
5419
5383
|
className: { 1: "title.function" },
|
5420
|
-
contains: [
|
5384
|
+
contains: [z]
|
5421
5385
|
},
|
5422
|
-
|
5423
|
-
|
5424
|
-
|
5425
|
-
|
5386
|
+
H,
|
5387
|
+
k,
|
5388
|
+
V,
|
5389
|
+
oe,
|
5426
5390
|
{
|
5427
5391
|
match: /\$[(.]/
|
5428
5392
|
// relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
|
@@ -5430,13 +5394,13 @@ function Ur() {
|
|
5430
5394
|
]
|
5431
5395
|
};
|
5432
5396
|
}
|
5433
|
-
return
|
5397
|
+
return He = i, He;
|
5434
5398
|
}
|
5435
|
-
var
|
5399
|
+
var We, Gn;
|
5436
5400
|
function Pr() {
|
5437
|
-
if (
|
5438
|
-
return
|
5439
|
-
|
5401
|
+
if (Gn)
|
5402
|
+
return We;
|
5403
|
+
Gn = 1;
|
5440
5404
|
function n(e) {
|
5441
5405
|
const t = {
|
5442
5406
|
className: "attr",
|
@@ -5471,13 +5435,13 @@ function Pr() {
|
|
5471
5435
|
illegal: "\\S"
|
5472
5436
|
};
|
5473
5437
|
}
|
5474
|
-
return
|
5438
|
+
return We = n, We;
|
5475
5439
|
}
|
5476
|
-
var
|
5440
|
+
var Ye, Hn;
|
5477
5441
|
function Fr() {
|
5478
|
-
if (
|
5479
|
-
return
|
5480
|
-
|
5442
|
+
if (Hn)
|
5443
|
+
return Ye;
|
5444
|
+
Hn = 1;
|
5481
5445
|
var n = "[0-9](_*[0-9])*", e = `\\.(${n})`, t = "[0-9a-fA-F](_*[0-9a-fA-F])*", s = {
|
5482
5446
|
className: "number",
|
5483
5447
|
variants: [
|
@@ -5526,7 +5490,7 @@ function Fr() {
|
|
5526
5490
|
}, l = {
|
5527
5491
|
className: "variable",
|
5528
5492
|
begin: "\\$" + o.UNDERSCORE_IDENT_RE
|
5529
|
-
},
|
5493
|
+
}, u = {
|
5530
5494
|
className: "string",
|
5531
5495
|
variants: [
|
5532
5496
|
{
|
@@ -5558,7 +5522,7 @@ function Fr() {
|
|
5558
5522
|
}
|
5559
5523
|
]
|
5560
5524
|
};
|
5561
|
-
d.contains.push(
|
5525
|
+
d.contains.push(u);
|
5562
5526
|
const b = {
|
5563
5527
|
className: "meta",
|
5564
5528
|
begin: "@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*" + o.UNDERSCORE_IDENT_RE + ")?"
|
@@ -5570,7 +5534,7 @@ function Fr() {
|
|
5570
5534
|
begin: /\(/,
|
5571
5535
|
end: /\)/,
|
5572
5536
|
contains: [
|
5573
|
-
o.inherit(
|
5537
|
+
o.inherit(u, { className: "string" }),
|
5574
5538
|
"self"
|
5575
5539
|
]
|
5576
5540
|
}
|
@@ -5579,7 +5543,7 @@ function Fr() {
|
|
5579
5543
|
"/\\*",
|
5580
5544
|
"\\*/",
|
5581
5545
|
{ contains: [o.C_BLOCK_COMMENT_MODE] }
|
5582
|
-
),
|
5546
|
+
), h = { variants: [
|
5583
5547
|
{
|
5584
5548
|
className: "type",
|
5585
5549
|
begin: o.UNDERSCORE_IDENT_RE
|
@@ -5590,8 +5554,8 @@ function Fr() {
|
|
5590
5554
|
contains: []
|
5591
5555
|
// defined later
|
5592
5556
|
}
|
5593
|
-
] },
|
5594
|
-
return
|
5557
|
+
] }, f = h;
|
5558
|
+
return f.variants[1].contains = [h], h.variants[1].contains = [f], {
|
5595
5559
|
name: "Kotlin",
|
5596
5560
|
aliases: [
|
5597
5561
|
"kt",
|
@@ -5653,7 +5617,7 @@ function Fr() {
|
|
5653
5617
|
end: /[=,\/]/,
|
5654
5618
|
endsWithParent: !0,
|
5655
5619
|
contains: [
|
5656
|
-
|
5620
|
+
h,
|
5657
5621
|
o.C_LINE_COMMENT_MODE,
|
5658
5622
|
E
|
5659
5623
|
],
|
@@ -5663,7 +5627,7 @@ function Fr() {
|
|
5663
5627
|
E,
|
5664
5628
|
b,
|
5665
5629
|
p,
|
5666
|
-
|
5630
|
+
u,
|
5667
5631
|
o.C_NUMBER_MODE
|
5668
5632
|
]
|
5669
5633
|
},
|
@@ -5705,7 +5669,7 @@ function Fr() {
|
|
5705
5669
|
p
|
5706
5670
|
]
|
5707
5671
|
},
|
5708
|
-
|
5672
|
+
u,
|
5709
5673
|
{
|
5710
5674
|
className: "meta",
|
5711
5675
|
begin: "^#!/usr/bin/env",
|
@@ -5717,13 +5681,13 @@ function Fr() {
|
|
5717
5681
|
]
|
5718
5682
|
};
|
5719
5683
|
}
|
5720
|
-
return
|
5684
|
+
return Ye = c, Ye;
|
5721
5685
|
}
|
5722
|
-
var
|
5686
|
+
var Ze, Wn;
|
5723
5687
|
function $r() {
|
5724
|
-
if (
|
5725
|
-
return
|
5726
|
-
|
5688
|
+
if (Wn)
|
5689
|
+
return Ze;
|
5690
|
+
Wn = 1;
|
5727
5691
|
const n = (i) => ({
|
5728
5692
|
IMPORTANT: {
|
5729
5693
|
scope: "meta",
|
@@ -6318,35 +6282,35 @@ function $r() {
|
|
6318
6282
|
// instead of getting false positives on say `font`
|
6319
6283
|
].reverse(), a = s.concat(c);
|
6320
6284
|
function r(i) {
|
6321
|
-
const d = n(i), l = a,
|
6285
|
+
const d = n(i), l = a, u = "and or not only", b = "[\\w-]+", p = "(" + b + "|@\\{" + b + "\\})", m = [], E = [], h = function(B) {
|
6322
6286
|
return {
|
6323
6287
|
// Less strings are not multiline (also include '~' for more consistent coloring of "escaped" strings)
|
6324
6288
|
className: "string",
|
6325
|
-
begin: "~?" +
|
6289
|
+
begin: "~?" + B + ".*?" + B
|
6326
6290
|
};
|
6327
|
-
},
|
6291
|
+
}, f = function(B, ne, Q) {
|
6328
6292
|
return {
|
6329
|
-
className:
|
6330
|
-
begin:
|
6331
|
-
relevance:
|
6293
|
+
className: B,
|
6294
|
+
begin: ne,
|
6295
|
+
relevance: Q
|
6332
6296
|
};
|
6333
|
-
},
|
6297
|
+
}, A = {
|
6334
6298
|
$pattern: /[a-z-]+/,
|
6335
|
-
keyword:
|
6299
|
+
keyword: u,
|
6336
6300
|
attribute: t.join(" ")
|
6337
|
-
},
|
6301
|
+
}, R = {
|
6338
6302
|
// used only to properly balance nested parens inside mixin call, def. arg list
|
6339
6303
|
begin: "\\(",
|
6340
6304
|
end: "\\)",
|
6341
6305
|
contains: E,
|
6342
|
-
keywords:
|
6306
|
+
keywords: A,
|
6343
6307
|
relevance: 0
|
6344
6308
|
};
|
6345
6309
|
E.push(
|
6346
6310
|
i.C_LINE_COMMENT_MODE,
|
6347
6311
|
i.C_BLOCK_COMMENT_MODE,
|
6348
|
-
|
6349
|
-
|
6312
|
+
h("'"),
|
6313
|
+
h('"'),
|
6350
6314
|
d.CSS_NUMBER_MODE,
|
6351
6315
|
// fixme: it does not include dot for numbers like .5em :(
|
6352
6316
|
{
|
@@ -6358,10 +6322,10 @@ function $r() {
|
|
6358
6322
|
}
|
6359
6323
|
},
|
6360
6324
|
d.HEXCOLOR,
|
6361
|
-
|
6362
|
-
|
6363
|
-
|
6364
|
-
|
6325
|
+
R,
|
6326
|
+
f("variable", "@@?" + b, 10),
|
6327
|
+
f("variable", "@\\{" + b + "\\}"),
|
6328
|
+
f("built_in", "~?`[^`]*?`"),
|
6365
6329
|
// inline javascript (or whatever host language) *multiline* string
|
6366
6330
|
{
|
6367
6331
|
// @media features (it’s here to not duplicate things in AT_RULE_MODE with extra PARENS_MODE overriding):
|
@@ -6375,11 +6339,11 @@ function $r() {
|
|
6375
6339
|
{ beginKeywords: "and not" },
|
6376
6340
|
d.FUNCTION_DISPATCH
|
6377
6341
|
);
|
6378
|
-
const
|
6342
|
+
const M = E.concat({
|
6379
6343
|
begin: /\{/,
|
6380
6344
|
end: /\}/,
|
6381
6345
|
contains: m
|
6382
|
-
}),
|
6346
|
+
}), I = {
|
6383
6347
|
beginKeywords: "when",
|
6384
6348
|
endsWithParent: !0,
|
6385
6349
|
contains: [{ beginKeywords: "and not" }].concat(E)
|
@@ -6404,12 +6368,12 @@ function $r() {
|
|
6404
6368
|
}
|
6405
6369
|
}
|
6406
6370
|
]
|
6407
|
-
},
|
6371
|
+
}, D = {
|
6408
6372
|
className: "keyword",
|
6409
6373
|
begin: "@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",
|
6410
6374
|
starts: {
|
6411
6375
|
end: "[;{}]",
|
6412
|
-
keywords:
|
6376
|
+
keywords: A,
|
6413
6377
|
returnEnd: !0,
|
6414
6378
|
contains: E,
|
6415
6379
|
relevance: 0
|
@@ -6430,7 +6394,7 @@ function $r() {
|
|
6430
6394
|
starts: {
|
6431
6395
|
end: "[;}]",
|
6432
6396
|
returnEnd: !0,
|
6433
|
-
contains:
|
6397
|
+
contains: M
|
6434
6398
|
}
|
6435
6399
|
}, C = {
|
6436
6400
|
// first parse unambiguous selectors (i.e. those not starting with tag)
|
@@ -6454,19 +6418,19 @@ function $r() {
|
|
6454
6418
|
contains: [
|
6455
6419
|
i.C_LINE_COMMENT_MODE,
|
6456
6420
|
i.C_BLOCK_COMMENT_MODE,
|
6457
|
-
|
6458
|
-
|
6459
|
-
|
6421
|
+
I,
|
6422
|
+
f("keyword", "all\\b"),
|
6423
|
+
f("variable", "@\\{" + b + "\\}"),
|
6460
6424
|
// otherwise it’s identified as tag
|
6461
6425
|
{
|
6462
6426
|
begin: "\\b(" + e.join("|") + ")\\b",
|
6463
6427
|
className: "selector-tag"
|
6464
6428
|
},
|
6465
6429
|
d.CSS_NUMBER_MODE,
|
6466
|
-
|
6467
|
-
|
6468
|
-
|
6469
|
-
|
6430
|
+
f("selector-tag", p, 0),
|
6431
|
+
f("selector-id", "#" + p),
|
6432
|
+
f("selector-class", "\\." + p, 0),
|
6433
|
+
f("selector-tag", "&", 0),
|
6470
6434
|
d.ATTRIBUTE_SELECTOR_MODE,
|
6471
6435
|
{
|
6472
6436
|
className: "selector-pseudo",
|
@@ -6480,14 +6444,14 @@ function $r() {
|
|
6480
6444
|
begin: /\(/,
|
6481
6445
|
end: /\)/,
|
6482
6446
|
relevance: 0,
|
6483
|
-
contains:
|
6447
|
+
contains: M
|
6484
6448
|
},
|
6485
6449
|
// argument list of parametric mixins
|
6486
6450
|
{ begin: "!important" },
|
6487
6451
|
// eat !important after mixin call or it will be colored as tag
|
6488
6452
|
d.FUNCTION_DISPATCH
|
6489
6453
|
]
|
6490
|
-
},
|
6454
|
+
}, q = {
|
6491
6455
|
begin: b + `:(:)?(${l.join("|")})`,
|
6492
6456
|
returnBegin: !0,
|
6493
6457
|
contains: [C]
|
@@ -6495,12 +6459,12 @@ function $r() {
|
|
6495
6459
|
return m.push(
|
6496
6460
|
i.C_LINE_COMMENT_MODE,
|
6497
6461
|
i.C_BLOCK_COMMENT_MODE,
|
6498
|
-
|
6462
|
+
D,
|
6499
6463
|
v,
|
6500
|
-
|
6464
|
+
q,
|
6501
6465
|
L,
|
6502
6466
|
C,
|
6503
|
-
|
6467
|
+
I,
|
6504
6468
|
d.FUNCTION_DISPATCH
|
6505
6469
|
), {
|
6506
6470
|
name: "Less",
|
@@ -6509,13 +6473,13 @@ function $r() {
|
|
6509
6473
|
contains: m
|
6510
6474
|
};
|
6511
6475
|
}
|
6512
|
-
return
|
6476
|
+
return Ze = r, Ze;
|
6513
6477
|
}
|
6514
|
-
var
|
6478
|
+
var Ve, Yn;
|
6515
6479
|
function zr() {
|
6516
|
-
if (
|
6517
|
-
return
|
6518
|
-
|
6480
|
+
if (Yn)
|
6481
|
+
return Ve;
|
6482
|
+
Yn = 1;
|
6519
6483
|
function n(e) {
|
6520
6484
|
const t = "\\[=*\\[", s = "\\]=*\\]", c = {
|
6521
6485
|
begin: t,
|
@@ -6571,13 +6535,13 @@ function zr() {
|
|
6571
6535
|
])
|
6572
6536
|
};
|
6573
6537
|
}
|
6574
|
-
return
|
6538
|
+
return Ve = n, Ve;
|
6575
6539
|
}
|
6576
|
-
var
|
6540
|
+
var Xe, Zn;
|
6577
6541
|
function Kr() {
|
6578
|
-
if (
|
6579
|
-
return
|
6580
|
-
|
6542
|
+
if (Zn)
|
6543
|
+
return Xe;
|
6544
|
+
Zn = 1;
|
6581
6545
|
function n(e) {
|
6582
6546
|
const t = {
|
6583
6547
|
className: "variable",
|
@@ -6638,13 +6602,13 @@ function Kr() {
|
|
6638
6602
|
]
|
6639
6603
|
};
|
6640
6604
|
}
|
6641
|
-
return
|
6605
|
+
return Xe = n, Xe;
|
6642
6606
|
}
|
6643
|
-
var
|
6607
|
+
var Qe, Vn;
|
6644
6608
|
function qr() {
|
6645
|
-
if (
|
6646
|
-
return
|
6647
|
-
|
6609
|
+
if (Vn)
|
6610
|
+
return Qe;
|
6611
|
+
Vn = 1;
|
6648
6612
|
function n(e) {
|
6649
6613
|
const t = e.regex, s = [
|
6650
6614
|
"abs",
|
@@ -6915,22 +6879,22 @@ function qr() {
|
|
6915
6879
|
// valid but infrequent and weird
|
6916
6880
|
/#/
|
6917
6881
|
// valid but infrequent and weird
|
6918
|
-
],
|
6919
|
-
const
|
6882
|
+
], u = (m, E, h = "\\1") => {
|
6883
|
+
const f = h === "\\1" ? h : t.concat(h, E);
|
6920
6884
|
return t.concat(
|
6921
6885
|
t.concat("(?:", m, ")"),
|
6922
6886
|
E,
|
6923
6887
|
/(?:\\.|[^\\\/])*?/,
|
6924
|
-
|
6888
|
+
f,
|
6925
6889
|
/(?:\\.|[^\\\/])*?/,
|
6926
|
-
|
6890
|
+
h,
|
6927
6891
|
c
|
6928
6892
|
);
|
6929
|
-
}, b = (m, E,
|
6893
|
+
}, b = (m, E, h) => t.concat(
|
6930
6894
|
t.concat("(?:", m, ")"),
|
6931
6895
|
E,
|
6932
6896
|
/(?:\\.|[^\\\/])*?/,
|
6933
|
-
|
6897
|
+
h,
|
6934
6898
|
c
|
6935
6899
|
), p = [
|
6936
6900
|
i,
|
@@ -7015,11 +6979,11 @@ function qr() {
|
|
7015
6979
|
className: "regexp",
|
7016
6980
|
variants: [
|
7017
6981
|
// allow matching common delimiters
|
7018
|
-
{ begin:
|
6982
|
+
{ begin: u("s|tr|y", t.either(...l, { capture: !0 })) },
|
7019
6983
|
// and then paired delmis
|
7020
|
-
{ begin:
|
7021
|
-
{ begin:
|
7022
|
-
{ begin:
|
6984
|
+
{ begin: u("s|tr|y", "\\(", "\\)") },
|
6985
|
+
{ begin: u("s|tr|y", "\\[", "\\]") },
|
6986
|
+
{ begin: u("s|tr|y", "\\{", "\\}") }
|
7023
6987
|
],
|
7024
6988
|
relevance: 2
|
7025
6989
|
},
|
@@ -7079,13 +7043,13 @@ function qr() {
|
|
7079
7043
|
contains: p
|
7080
7044
|
};
|
7081
7045
|
}
|
7082
|
-
return
|
7046
|
+
return Qe = n, Qe;
|
7083
7047
|
}
|
7084
|
-
var
|
7085
|
-
function
|
7086
|
-
if (
|
7087
|
-
return
|
7088
|
-
|
7048
|
+
var Je, Xn;
|
7049
|
+
function Gr() {
|
7050
|
+
if (Xn)
|
7051
|
+
return Je;
|
7052
|
+
Xn = 1;
|
7089
7053
|
function n(e) {
|
7090
7054
|
const t = {
|
7091
7055
|
className: "built_in",
|
@@ -7320,13 +7284,13 @@ function Hr() {
|
|
7320
7284
|
]
|
7321
7285
|
};
|
7322
7286
|
}
|
7323
|
-
return
|
7287
|
+
return Je = n, Je;
|
7324
7288
|
}
|
7325
|
-
var
|
7326
|
-
function
|
7327
|
-
if (
|
7328
|
-
return
|
7329
|
-
|
7289
|
+
var je, Qn;
|
7290
|
+
function Hr() {
|
7291
|
+
if (Qn)
|
7292
|
+
return je;
|
7293
|
+
Qn = 1;
|
7330
7294
|
function n(e) {
|
7331
7295
|
const t = e.regex, s = /(?![A-Za-z0-9])(?![$])/, c = t.concat(
|
7332
7296
|
/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,
|
@@ -7360,29 +7324,19 @@ function Gr() {
|
|
7360
7324
|
}, d = e.inherit(e.APOS_STRING_MODE, { illegal: null }), l = e.inherit(e.QUOTE_STRING_MODE, {
|
7361
7325
|
illegal: null,
|
7362
7326
|
contains: e.QUOTE_STRING_MODE.contains.concat(i)
|
7363
|
-
}),
|
7364
|
-
begin: /<<<[ \t]*(
|
7327
|
+
}), u = e.END_SAME_AS_BEGIN({
|
7328
|
+
begin: /<<<[ \t]*(\w+)\n/,
|
7365
7329
|
end: /[ \t]*(\w+)\b/,
|
7366
|
-
contains: e.QUOTE_STRING_MODE.contains.concat(i)
|
7367
|
-
|
7368
|
-
|
7369
|
-
},
|
7370
|
-
"on:end": (W, U) => {
|
7371
|
-
U.data._beginMatch !== W[1] && U.ignoreMatch();
|
7372
|
-
}
|
7373
|
-
}, b = e.END_SAME_AS_BEGIN({
|
7374
|
-
begin: /<<<[ \t]*'(\w+)'\n/,
|
7375
|
-
end: /[ \t]*(\w+)\b/
|
7376
|
-
}), p = `[
|
7377
|
-
]`, m = {
|
7330
|
+
contains: e.QUOTE_STRING_MODE.contains.concat(i)
|
7331
|
+
}), b = `[
|
7332
|
+
]`, p = {
|
7378
7333
|
scope: "string",
|
7379
7334
|
variants: [
|
7380
7335
|
l,
|
7381
7336
|
d,
|
7382
|
-
|
7383
|
-
b
|
7337
|
+
u
|
7384
7338
|
]
|
7385
|
-
},
|
7339
|
+
}, m = {
|
7386
7340
|
scope: "number",
|
7387
7341
|
variants: [
|
7388
7342
|
{ begin: "\\b0[bB][01]+(?:_[01]+)*\\b" },
|
@@ -7395,7 +7349,7 @@ function Gr() {
|
|
7395
7349
|
{ begin: "(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?" }
|
7396
7350
|
],
|
7397
7351
|
relevance: 0
|
7398
|
-
},
|
7352
|
+
}, E = [
|
7399
7353
|
"false",
|
7400
7354
|
"null",
|
7401
7355
|
"true"
|
@@ -7499,7 +7453,7 @@ function Gr() {
|
|
7499
7453
|
"while",
|
7500
7454
|
"xor",
|
7501
7455
|
"yield"
|
7502
|
-
],
|
7456
|
+
], f = [
|
7503
7457
|
// Standard PHP library:
|
7504
7458
|
// <https://www.php.net/manual/en/book.spl.php>
|
7505
7459
|
"Error|0",
|
@@ -7594,22 +7548,22 @@ function Gr() {
|
|
7594
7548
|
"self",
|
7595
7549
|
"static",
|
7596
7550
|
"stdClass"
|
7597
|
-
],
|
7551
|
+
], R = {
|
7598
7552
|
keyword: h,
|
7599
|
-
literal: ((
|
7600
|
-
const
|
7601
|
-
return
|
7602
|
-
|
7603
|
-
}),
|
7604
|
-
})(
|
7605
|
-
built_in:
|
7606
|
-
}, M = (
|
7553
|
+
literal: ((Q) => {
|
7554
|
+
const z = [];
|
7555
|
+
return Q.forEach((V) => {
|
7556
|
+
z.push(V), V.toLowerCase() === V ? z.push(V.toUpperCase()) : z.push(V.toLowerCase());
|
7557
|
+
}), z;
|
7558
|
+
})(E),
|
7559
|
+
built_in: f
|
7560
|
+
}, M = (Q) => Q.map((z) => z.replace(/\|\d+$/, "")), I = { variants: [
|
7607
7561
|
{
|
7608
7562
|
match: [
|
7609
7563
|
/new/,
|
7610
|
-
t.concat(
|
7564
|
+
t.concat(b, "+"),
|
7611
7565
|
// to prevent built ins from being confused as the class constructor call
|
7612
|
-
t.concat("(?!", M(
|
7566
|
+
t.concat("(?!", M(f).join("\\b|"), "\\b)"),
|
7613
7567
|
o
|
7614
7568
|
],
|
7615
7569
|
scope: {
|
@@ -7617,14 +7571,14 @@ function Gr() {
|
|
7617
7571
|
4: "title.class"
|
7618
7572
|
}
|
7619
7573
|
}
|
7620
|
-
] },
|
7574
|
+
] }, L = t.concat(c, "\\b(?!\\()"), D = { variants: [
|
7621
7575
|
{
|
7622
7576
|
match: [
|
7623
7577
|
t.concat(
|
7624
7578
|
/::/,
|
7625
7579
|
t.lookahead(/(?!class\b)/)
|
7626
7580
|
),
|
7627
|
-
|
7581
|
+
L
|
7628
7582
|
],
|
7629
7583
|
scope: { 2: "variable.constant" }
|
7630
7584
|
},
|
@@ -7642,7 +7596,7 @@ function Gr() {
|
|
7642
7596
|
/::/,
|
7643
7597
|
t.lookahead(/(?!class\b)/)
|
7644
7598
|
),
|
7645
|
-
|
7599
|
+
L
|
7646
7600
|
],
|
7647
7601
|
scope: {
|
7648
7602
|
1: "title.class",
|
@@ -7670,51 +7624,51 @@ function Gr() {
|
|
7670
7624
|
3: "variable.language"
|
7671
7625
|
}
|
7672
7626
|
}
|
7673
|
-
] },
|
7627
|
+
] }, v = {
|
7674
7628
|
scope: "attr",
|
7675
7629
|
match: t.concat(c, t.lookahead(":"), t.lookahead(/(?!::)/))
|
7676
|
-
},
|
7630
|
+
}, C = {
|
7677
7631
|
relevance: 0,
|
7678
7632
|
begin: /\(/,
|
7679
7633
|
end: /\)/,
|
7680
|
-
keywords:
|
7634
|
+
keywords: R,
|
7681
7635
|
contains: [
|
7682
|
-
C,
|
7683
|
-
a,
|
7684
7636
|
v,
|
7637
|
+
a,
|
7638
|
+
D,
|
7685
7639
|
e.C_BLOCK_COMMENT_MODE,
|
7640
|
+
p,
|
7686
7641
|
m,
|
7687
|
-
|
7688
|
-
L
|
7642
|
+
I
|
7689
7643
|
]
|
7690
|
-
},
|
7644
|
+
}, q = {
|
7691
7645
|
relevance: 0,
|
7692
7646
|
match: [
|
7693
7647
|
/\b/,
|
7694
7648
|
// to prevent keywords from being confused as the function title
|
7695
|
-
t.concat("(?!fn\\b|function\\b|", M(h).join("\\b|"), "|", M(
|
7649
|
+
t.concat("(?!fn\\b|function\\b|", M(h).join("\\b|"), "|", M(f).join("\\b|"), "\\b)"),
|
7696
7650
|
c,
|
7697
|
-
t.concat(
|
7651
|
+
t.concat(b, "*"),
|
7698
7652
|
t.lookahead(/(?=\()/)
|
7699
7653
|
],
|
7700
7654
|
scope: { 3: "title.function.invoke" },
|
7701
|
-
contains: [
|
7655
|
+
contains: [C]
|
7702
7656
|
};
|
7703
|
-
|
7704
|
-
const
|
7705
|
-
C,
|
7657
|
+
C.contains.push(q);
|
7658
|
+
const B = [
|
7706
7659
|
v,
|
7660
|
+
D,
|
7707
7661
|
e.C_BLOCK_COMMENT_MODE,
|
7662
|
+
p,
|
7708
7663
|
m,
|
7709
|
-
|
7710
|
-
|
7711
|
-
], re = {
|
7664
|
+
I
|
7665
|
+
], ne = {
|
7712
7666
|
begin: t.concat(/#\[\s*/, o),
|
7713
7667
|
beginScope: "meta",
|
7714
7668
|
end: /]/,
|
7715
7669
|
endScope: "meta",
|
7716
7670
|
keywords: {
|
7717
|
-
literal:
|
7671
|
+
literal: E,
|
7718
7672
|
keyword: [
|
7719
7673
|
"new",
|
7720
7674
|
"array"
|
@@ -7725,7 +7679,7 @@ function Gr() {
|
|
7725
7679
|
begin: /\[/,
|
7726
7680
|
end: /]/,
|
7727
7681
|
keywords: {
|
7728
|
-
literal:
|
7682
|
+
literal: E,
|
7729
7683
|
keyword: [
|
7730
7684
|
"new",
|
7731
7685
|
"array"
|
@@ -7733,10 +7687,10 @@ function Gr() {
|
|
7733
7687
|
},
|
7734
7688
|
contains: [
|
7735
7689
|
"self",
|
7736
|
-
...
|
7690
|
+
...B
|
7737
7691
|
]
|
7738
7692
|
},
|
7739
|
-
...
|
7693
|
+
...B,
|
7740
7694
|
{
|
7741
7695
|
scope: "meta",
|
7742
7696
|
match: o
|
@@ -7745,9 +7699,9 @@ function Gr() {
|
|
7745
7699
|
};
|
7746
7700
|
return {
|
7747
7701
|
case_insensitive: !1,
|
7748
|
-
keywords:
|
7702
|
+
keywords: R,
|
7749
7703
|
contains: [
|
7750
|
-
|
7704
|
+
ne,
|
7751
7705
|
e.HASH_COMMENT_MODE,
|
7752
7706
|
e.COMMENT("//", "$"),
|
7753
7707
|
e.COMMENT(
|
@@ -7781,8 +7735,8 @@ function Gr() {
|
|
7781
7735
|
match: /\$this\b/
|
7782
7736
|
},
|
7783
7737
|
a,
|
7784
|
-
|
7785
|
-
|
7738
|
+
q,
|
7739
|
+
D,
|
7786
7740
|
{
|
7787
7741
|
match: [
|
7788
7742
|
/const/,
|
@@ -7794,7 +7748,7 @@ function Gr() {
|
|
7794
7748
|
3: "variable.constant"
|
7795
7749
|
}
|
7796
7750
|
},
|
7797
|
-
|
7751
|
+
I,
|
7798
7752
|
{
|
7799
7753
|
scope: "function",
|
7800
7754
|
relevance: 0,
|
@@ -7816,14 +7770,14 @@ function Gr() {
|
|
7816
7770
|
end: "\\)",
|
7817
7771
|
excludeBegin: !0,
|
7818
7772
|
excludeEnd: !0,
|
7819
|
-
keywords:
|
7773
|
+
keywords: R,
|
7820
7774
|
contains: [
|
7821
7775
|
"self",
|
7822
7776
|
a,
|
7823
|
-
|
7777
|
+
D,
|
7824
7778
|
e.C_BLOCK_COMMENT_MODE,
|
7825
|
-
|
7826
|
-
|
7779
|
+
p,
|
7780
|
+
m
|
7827
7781
|
]
|
7828
7782
|
}
|
7829
7783
|
]
|
@@ -7872,18 +7826,18 @@ function Gr() {
|
|
7872
7826
|
e.UNDERSCORE_TITLE_MODE
|
7873
7827
|
]
|
7874
7828
|
},
|
7875
|
-
|
7876
|
-
|
7829
|
+
p,
|
7830
|
+
m
|
7877
7831
|
]
|
7878
7832
|
};
|
7879
7833
|
}
|
7880
|
-
return
|
7834
|
+
return je = n, je;
|
7881
7835
|
}
|
7882
|
-
var
|
7836
|
+
var en, Jn;
|
7883
7837
|
function Wr() {
|
7884
|
-
if (
|
7885
|
-
return
|
7886
|
-
|
7838
|
+
if (Jn)
|
7839
|
+
return en;
|
7840
|
+
Jn = 1;
|
7887
7841
|
function n(e) {
|
7888
7842
|
return {
|
7889
7843
|
name: "PHP template",
|
@@ -7928,13 +7882,13 @@ function Wr() {
|
|
7928
7882
|
]
|
7929
7883
|
};
|
7930
7884
|
}
|
7931
|
-
return
|
7885
|
+
return en = n, en;
|
7932
7886
|
}
|
7933
|
-
var
|
7887
|
+
var nn, jn;
|
7934
7888
|
function Yr() {
|
7935
|
-
if (
|
7936
|
-
return
|
7937
|
-
|
7889
|
+
if (jn)
|
7890
|
+
return nn;
|
7891
|
+
jn = 1;
|
7938
7892
|
function n(e) {
|
7939
7893
|
return {
|
7940
7894
|
name: "Plain text",
|
@@ -7945,13 +7899,13 @@ function Yr() {
|
|
7945
7899
|
disableAutodetect: !0
|
7946
7900
|
};
|
7947
7901
|
}
|
7948
|
-
return
|
7902
|
+
return nn = n, nn;
|
7949
7903
|
}
|
7950
|
-
var
|
7904
|
+
var tn, et;
|
7951
7905
|
function Zr() {
|
7952
|
-
if (
|
7953
|
-
return
|
7954
|
-
|
7906
|
+
if (et)
|
7907
|
+
return tn;
|
7908
|
+
et = 1;
|
7955
7909
|
function n(e) {
|
7956
7910
|
const t = e.regex, s = /[\p{XID_Start}_]\p{XID_Continue}*/u, c = [
|
7957
7911
|
"and",
|
@@ -8094,7 +8048,7 @@ function Zr() {
|
|
8094
8048
|
end: /\}/,
|
8095
8049
|
keywords: i,
|
8096
8050
|
illegal: /#/
|
8097
|
-
},
|
8051
|
+
}, u = {
|
8098
8052
|
begin: /\{\{/,
|
8099
8053
|
relevance: 0
|
8100
8054
|
}, b = {
|
@@ -8125,7 +8079,7 @@ function Zr() {
|
|
8125
8079
|
contains: [
|
8126
8080
|
e.BACKSLASH_ESCAPE,
|
8127
8081
|
d,
|
8128
|
-
|
8082
|
+
u,
|
8129
8083
|
l
|
8130
8084
|
]
|
8131
8085
|
},
|
@@ -8135,7 +8089,7 @@ function Zr() {
|
|
8135
8089
|
contains: [
|
8136
8090
|
e.BACKSLASH_ESCAPE,
|
8137
8091
|
d,
|
8138
|
-
|
8092
|
+
u,
|
8139
8093
|
l
|
8140
8094
|
]
|
8141
8095
|
},
|
@@ -8162,7 +8116,7 @@ function Zr() {
|
|
8162
8116
|
end: /'/,
|
8163
8117
|
contains: [
|
8164
8118
|
e.BACKSLASH_ESCAPE,
|
8165
|
-
|
8119
|
+
u,
|
8166
8120
|
l
|
8167
8121
|
]
|
8168
8122
|
},
|
@@ -8171,14 +8125,14 @@ function Zr() {
|
|
8171
8125
|
end: /"/,
|
8172
8126
|
contains: [
|
8173
8127
|
e.BACKSLASH_ESCAPE,
|
8174
|
-
|
8128
|
+
u,
|
8175
8129
|
l
|
8176
8130
|
]
|
8177
8131
|
},
|
8178
8132
|
e.APOS_STRING_MODE,
|
8179
8133
|
e.QUOTE_STRING_MODE
|
8180
8134
|
]
|
8181
|
-
}, p = "[0-9](_?[0-9])*", m = `(\\b(${p}))?\\.(${p})|\\b(${p})\\.`, E = `\\b|${c.join("|")}`,
|
8135
|
+
}, p = "[0-9](_?[0-9])*", m = `(\\b(${p}))?\\.(${p})|\\b(${p})\\.`, E = `\\b|${c.join("|")}`, h = {
|
8182
8136
|
className: "number",
|
8183
8137
|
relevance: 0,
|
8184
8138
|
variants: [
|
@@ -8222,7 +8176,7 @@ function Zr() {
|
|
8222
8176
|
begin: `\\b(${p})[jJ](?=${E})`
|
8223
8177
|
}
|
8224
8178
|
]
|
8225
|
-
},
|
8179
|
+
}, f = {
|
8226
8180
|
className: "comment",
|
8227
8181
|
begin: t.lookahead(/# type:/),
|
8228
8182
|
end: /$/,
|
@@ -8239,7 +8193,7 @@ function Zr() {
|
|
8239
8193
|
endsWithParent: !0
|
8240
8194
|
}
|
8241
8195
|
]
|
8242
|
-
},
|
8196
|
+
}, A = {
|
8243
8197
|
className: "params",
|
8244
8198
|
variants: [
|
8245
8199
|
// Exclude params in functions without params
|
@@ -8257,7 +8211,7 @@ function Zr() {
|
|
8257
8211
|
contains: [
|
8258
8212
|
"self",
|
8259
8213
|
d,
|
8260
|
-
|
8214
|
+
h,
|
8261
8215
|
b,
|
8262
8216
|
e.HASH_COMMENT_MODE
|
8263
8217
|
]
|
@@ -8266,7 +8220,7 @@ function Zr() {
|
|
8266
8220
|
};
|
8267
8221
|
return l.contains = [
|
8268
8222
|
b,
|
8269
|
-
|
8223
|
+
h,
|
8270
8224
|
d
|
8271
8225
|
], {
|
8272
8226
|
name: "Python",
|
@@ -8277,10 +8231,10 @@ function Zr() {
|
|
8277
8231
|
],
|
8278
8232
|
unicodeRegex: !0,
|
8279
8233
|
keywords: i,
|
8280
|
-
illegal: /(
|
8234
|
+
illegal: /(<\/|->|\?)|=>/,
|
8281
8235
|
contains: [
|
8282
8236
|
d,
|
8283
|
-
|
8237
|
+
h,
|
8284
8238
|
{
|
8285
8239
|
// very common convention
|
8286
8240
|
begin: /\bself\b/
|
@@ -8292,7 +8246,7 @@ function Zr() {
|
|
8292
8246
|
relevance: 0
|
8293
8247
|
},
|
8294
8248
|
b,
|
8295
|
-
|
8249
|
+
f,
|
8296
8250
|
e.HASH_COMMENT_MODE,
|
8297
8251
|
{
|
8298
8252
|
match: [
|
@@ -8304,7 +8258,7 @@ function Zr() {
|
|
8304
8258
|
1: "keyword",
|
8305
8259
|
3: "title.function"
|
8306
8260
|
},
|
8307
|
-
contains: [
|
8261
|
+
contains: [A]
|
8308
8262
|
},
|
8309
8263
|
{
|
8310
8264
|
variants: [
|
@@ -8338,21 +8292,21 @@ function Zr() {
|
|
8338
8292
|
begin: /^[\t ]*@/,
|
8339
8293
|
end: /(?=#)|$/,
|
8340
8294
|
contains: [
|
8341
|
-
|
8342
|
-
|
8295
|
+
h,
|
8296
|
+
A,
|
8343
8297
|
b
|
8344
8298
|
]
|
8345
8299
|
}
|
8346
8300
|
]
|
8347
8301
|
};
|
8348
8302
|
}
|
8349
|
-
return
|
8303
|
+
return tn = n, tn;
|
8350
8304
|
}
|
8351
|
-
var
|
8305
|
+
var rn, nt;
|
8352
8306
|
function Vr() {
|
8353
|
-
if (
|
8354
|
-
return
|
8355
|
-
|
8307
|
+
if (nt)
|
8308
|
+
return rn;
|
8309
|
+
nt = 1;
|
8356
8310
|
function n(e) {
|
8357
8311
|
return {
|
8358
8312
|
aliases: ["pycon"],
|
@@ -8376,13 +8330,13 @@ function Vr() {
|
|
8376
8330
|
]
|
8377
8331
|
};
|
8378
8332
|
}
|
8379
|
-
return
|
8333
|
+
return rn = n, rn;
|
8380
8334
|
}
|
8381
|
-
var
|
8335
|
+
var an, tt;
|
8382
8336
|
function Xr() {
|
8383
|
-
if (
|
8384
|
-
return
|
8385
|
-
|
8337
|
+
if (tt)
|
8338
|
+
return an;
|
8339
|
+
tt = 1;
|
8386
8340
|
function n(e) {
|
8387
8341
|
const t = e.regex, s = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, c = t.either(
|
8388
8342
|
// Special case: only hexadecimal binary powers can contain fractions
|
@@ -8587,13 +8541,13 @@ function Xr() {
|
|
8587
8541
|
]
|
8588
8542
|
};
|
8589
8543
|
}
|
8590
|
-
return
|
8544
|
+
return an = n, an;
|
8591
8545
|
}
|
8592
|
-
var
|
8546
|
+
var sn, rt;
|
8593
8547
|
function Qr() {
|
8594
|
-
if (
|
8595
|
-
return
|
8596
|
-
|
8548
|
+
if (rt)
|
8549
|
+
return sn;
|
8550
|
+
rt = 1;
|
8597
8551
|
function n(e) {
|
8598
8552
|
const t = e.regex, s = {
|
8599
8553
|
className: "title.function.invoke",
|
@@ -8881,13 +8835,13 @@ function Qr() {
|
|
8881
8835
|
]
|
8882
8836
|
};
|
8883
8837
|
}
|
8884
|
-
return
|
8838
|
+
return sn = n, sn;
|
8885
8839
|
}
|
8886
|
-
var
|
8840
|
+
var on, at;
|
8887
8841
|
function Jr() {
|
8888
|
-
if (
|
8889
|
-
return
|
8890
|
-
|
8842
|
+
if (at)
|
8843
|
+
return on;
|
8844
|
+
at = 1;
|
8891
8845
|
const n = (r) => ({
|
8892
8846
|
IMPORTANT: {
|
8893
8847
|
scope: "meta",
|
@@ -9482,7 +9436,7 @@ function Jr() {
|
|
9482
9436
|
// instead of getting false positives on say `font`
|
9483
9437
|
].reverse();
|
9484
9438
|
function a(r) {
|
9485
|
-
const i = n(r), d = c, l = s,
|
9439
|
+
const i = n(r), d = c, l = s, u = "@[a-z-]+", b = "and or not only", m = {
|
9486
9440
|
className: "variable",
|
9487
9441
|
begin: "(\\$" + "[a-zA-Z-][a-zA-Z0-9_-]*" + ")\\b",
|
9488
9442
|
relevance: 0
|
@@ -9556,7 +9510,7 @@ function Jr() {
|
|
9556
9510
|
{
|
9557
9511
|
begin: "@(page|font-face)",
|
9558
9512
|
keywords: {
|
9559
|
-
$pattern:
|
9513
|
+
$pattern: u,
|
9560
9514
|
keyword: "@page @font-face"
|
9561
9515
|
}
|
9562
9516
|
},
|
@@ -9571,7 +9525,7 @@ function Jr() {
|
|
9571
9525
|
},
|
9572
9526
|
contains: [
|
9573
9527
|
{
|
9574
|
-
begin:
|
9528
|
+
begin: u,
|
9575
9529
|
className: "keyword"
|
9576
9530
|
},
|
9577
9531
|
{
|
@@ -9589,13 +9543,13 @@ function Jr() {
|
|
9589
9543
|
]
|
9590
9544
|
};
|
9591
9545
|
}
|
9592
|
-
return
|
9546
|
+
return on = a, on;
|
9593
9547
|
}
|
9594
|
-
var
|
9548
|
+
var cn, it;
|
9595
9549
|
function jr() {
|
9596
|
-
if (
|
9597
|
-
return
|
9598
|
-
|
9550
|
+
if (it)
|
9551
|
+
return cn;
|
9552
|
+
it = 1;
|
9599
9553
|
function n(e) {
|
9600
9554
|
return {
|
9601
9555
|
name: "Shell Session",
|
@@ -9618,13 +9572,13 @@ function jr() {
|
|
9618
9572
|
]
|
9619
9573
|
};
|
9620
9574
|
}
|
9621
|
-
return
|
9575
|
+
return cn = n, cn;
|
9622
9576
|
}
|
9623
|
-
var
|
9577
|
+
var ln, st;
|
9624
9578
|
function ea() {
|
9625
|
-
if (
|
9626
|
-
return
|
9627
|
-
|
9579
|
+
if (st)
|
9580
|
+
return ln;
|
9581
|
+
st = 1;
|
9628
9582
|
function n(e) {
|
9629
9583
|
const t = e.regex, s = e.COMMENT("--", "$"), c = {
|
9630
9584
|
className: "string",
|
@@ -10055,7 +10009,7 @@ function ea() {
|
|
10055
10009
|
"within",
|
10056
10010
|
"without",
|
10057
10011
|
"year"
|
10058
|
-
],
|
10012
|
+
], u = [
|
10059
10013
|
"abs",
|
10060
10014
|
"acos",
|
10061
10015
|
"array_agg",
|
@@ -10174,27 +10128,27 @@ function ea() {
|
|
10174
10128
|
"nulls last",
|
10175
10129
|
"depth first",
|
10176
10130
|
"breadth first"
|
10177
|
-
], m =
|
10131
|
+
], m = u, E = [
|
10178
10132
|
...l,
|
10179
10133
|
...d
|
10180
|
-
].filter((
|
10134
|
+
].filter((M) => !u.includes(M)), h = {
|
10181
10135
|
className: "variable",
|
10182
|
-
begin: /@[a-z0-9]
|
10183
|
-
},
|
10136
|
+
begin: /@[a-z0-9]+/
|
10137
|
+
}, f = {
|
10184
10138
|
className: "operator",
|
10185
10139
|
begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
|
10186
10140
|
relevance: 0
|
10187
|
-
},
|
10141
|
+
}, A = {
|
10188
10142
|
begin: t.concat(/\b/, t.either(...m), /\s*\(/),
|
10189
10143
|
relevance: 0,
|
10190
10144
|
keywords: { built_in: m }
|
10191
10145
|
};
|
10192
|
-
function
|
10193
|
-
exceptions:
|
10146
|
+
function R(M, {
|
10147
|
+
exceptions: I,
|
10194
10148
|
when: L
|
10195
10149
|
} = {}) {
|
10196
|
-
const
|
10197
|
-
return
|
10150
|
+
const D = L;
|
10151
|
+
return I = I || [], M.map((v) => v.match(/\|\d+$/) || I.includes(v) ? v : D(v) ? `${v}|0` : v);
|
10198
10152
|
}
|
10199
10153
|
return {
|
10200
10154
|
name: "SQL",
|
@@ -10203,7 +10157,7 @@ function ea() {
|
|
10203
10157
|
illegal: /[{}]|<\//,
|
10204
10158
|
keywords: {
|
10205
10159
|
$pattern: /\b[\w\.]+/,
|
10206
|
-
keyword:
|
10160
|
+
keyword: R(E, { when: (M) => M.length < 3 }),
|
10207
10161
|
literal: a,
|
10208
10162
|
type: i,
|
10209
10163
|
built_in: b
|
@@ -10223,24 +10177,24 @@ function ea() {
|
|
10223
10177
|
className: "type",
|
10224
10178
|
begin: t.either(...r)
|
10225
10179
|
},
|
10226
|
-
|
10227
|
-
|
10180
|
+
A,
|
10181
|
+
h,
|
10228
10182
|
c,
|
10229
10183
|
o,
|
10230
10184
|
e.C_NUMBER_MODE,
|
10231
10185
|
e.C_BLOCK_COMMENT_MODE,
|
10232
10186
|
s,
|
10233
|
-
|
10187
|
+
f
|
10234
10188
|
]
|
10235
10189
|
};
|
10236
10190
|
}
|
10237
|
-
return
|
10191
|
+
return ln = n, ln;
|
10238
10192
|
}
|
10239
|
-
var
|
10193
|
+
var dn, ot;
|
10240
10194
|
function na() {
|
10241
|
-
if (
|
10242
|
-
return
|
10243
|
-
|
10195
|
+
if (ot)
|
10196
|
+
return dn;
|
10197
|
+
ot = 1;
|
10244
10198
|
function n(v) {
|
10245
10199
|
return v ? typeof v == "string" ? v : v.source : null;
|
10246
10200
|
}
|
@@ -10248,14 +10202,14 @@ function na() {
|
|
10248
10202
|
return t("(?=", v, ")");
|
10249
10203
|
}
|
10250
10204
|
function t(...v) {
|
10251
|
-
return v.map((
|
10205
|
+
return v.map((q) => n(q)).join("");
|
10252
10206
|
}
|
10253
10207
|
function s(v) {
|
10254
10208
|
const C = v[v.length - 1];
|
10255
10209
|
return typeof C == "object" && C.constructor === Object ? (v.splice(v.length - 1, 1), C) : {};
|
10256
10210
|
}
|
10257
10211
|
function c(...v) {
|
10258
|
-
return "(" + (s(v).capture ? "" : "?:") + v.map((
|
10212
|
+
return "(" + (s(v).capture ? "" : "?:") + v.map((B) => n(B)).join("|") + ")";
|
10259
10213
|
}
|
10260
10214
|
const o = (v) => t(
|
10261
10215
|
/\b/,
|
@@ -10401,7 +10355,7 @@ function na() {
|
|
10401
10355
|
"false",
|
10402
10356
|
"nil",
|
10403
10357
|
"true"
|
10404
|
-
],
|
10358
|
+
], u = [
|
10405
10359
|
"assignment",
|
10406
10360
|
"associativity",
|
10407
10361
|
"higherThan",
|
@@ -10493,7 +10447,7 @@ function na() {
|
|
10493
10447
|
/[\uFE20-\uFE2F]/
|
10494
10448
|
// TODO: The following characters are also allowed, but the regex isn't supported yet.
|
10495
10449
|
// /[\u{E0100}-\u{E01EF}]/u
|
10496
|
-
),
|
10450
|
+
), h = t(m, E, "*"), f = c(
|
10497
10451
|
/[a-zA-Z_]/,
|
10498
10452
|
/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,
|
10499
10453
|
/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,
|
@@ -10511,11 +10465,11 @@ function na() {
|
|
10511
10465
|
// /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u,
|
10512
10466
|
// /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
|
10513
10467
|
// /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
|
10514
|
-
),
|
10515
|
-
|
10468
|
+
), A = c(
|
10469
|
+
f,
|
10516
10470
|
/\d/,
|
10517
10471
|
/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
|
10518
|
-
),
|
10472
|
+
), R = t(f, A, "*"), M = t(/[A-Z]/, A, "*"), I = [
|
10519
10473
|
"autoclosure",
|
10520
10474
|
t(/convention\(/, c("swift", "block", "c"), /\)/),
|
10521
10475
|
"discardableResult",
|
@@ -10535,7 +10489,7 @@ function na() {
|
|
10535
10489
|
"NSApplicationMain",
|
10536
10490
|
"NSCopying",
|
10537
10491
|
"NSManaged",
|
10538
|
-
t(/objc\(/,
|
10492
|
+
t(/objc\(/, R, /\)/),
|
10539
10493
|
"objc",
|
10540
10494
|
"objcMembers",
|
10541
10495
|
"propertyWrapper",
|
@@ -10558,64 +10512,64 @@ function na() {
|
|
10558
10512
|
"tvOSApplicationExtension",
|
10559
10513
|
"swift"
|
10560
10514
|
];
|
10561
|
-
function
|
10515
|
+
function D(v) {
|
10562
10516
|
const C = {
|
10563
10517
|
match: /\s+/,
|
10564
10518
|
relevance: 0
|
10565
|
-
},
|
10519
|
+
}, q = v.COMMENT(
|
10566
10520
|
"/\\*",
|
10567
10521
|
"\\*/",
|
10568
10522
|
{ contains: ["self"] }
|
10569
|
-
),
|
10523
|
+
), B = [
|
10570
10524
|
v.C_LINE_COMMENT_MODE,
|
10571
|
-
|
10572
|
-
],
|
10525
|
+
q
|
10526
|
+
], ne = {
|
10573
10527
|
match: [
|
10574
10528
|
/\./,
|
10575
10529
|
c(...a, ...r)
|
10576
10530
|
],
|
10577
10531
|
className: { 2: "keyword" }
|
10578
|
-
},
|
10532
|
+
}, Q = {
|
10579
10533
|
// Consume .keyword to prevent highlighting properties and methods as keywords.
|
10580
10534
|
match: t(/\./, c(...d)),
|
10581
10535
|
relevance: 0
|
10582
|
-
},
|
10536
|
+
}, z = d.filter((K) => typeof K == "string").concat(["_|0"]), V = d.filter((K) => typeof K != "string").concat(i).map(o), g = { variants: [
|
10583
10537
|
{
|
10584
10538
|
className: "keyword",
|
10585
|
-
match: c(...
|
10539
|
+
match: c(...V, ...r)
|
10586
10540
|
}
|
10587
|
-
] },
|
10541
|
+
] }, N = {
|
10588
10542
|
$pattern: c(
|
10589
10543
|
/\b\w+/,
|
10590
10544
|
// regular keywords
|
10591
10545
|
/#\w+/
|
10592
10546
|
// number keywords
|
10593
10547
|
),
|
10594
|
-
keyword:
|
10548
|
+
keyword: z.concat(b),
|
10595
10549
|
literal: l
|
10596
|
-
},
|
10597
|
-
|
10598
|
-
|
10599
|
-
|
10600
|
-
],
|
10550
|
+
}, S = [
|
10551
|
+
ne,
|
10552
|
+
Q,
|
10553
|
+
g
|
10554
|
+
], k = {
|
10601
10555
|
// Consume .built_in to prevent highlighting properties and methods.
|
10602
10556
|
match: t(/\./, c(...p)),
|
10603
10557
|
relevance: 0
|
10604
|
-
},
|
10558
|
+
}, F = {
|
10605
10559
|
className: "built_in",
|
10606
10560
|
match: t(/\b/, c(...p), /(?=\()/)
|
10607
|
-
},
|
10608
|
-
|
10609
|
-
|
10610
|
-
],
|
10561
|
+
}, H = [
|
10562
|
+
k,
|
10563
|
+
F
|
10564
|
+
], J = {
|
10611
10565
|
// Prevent -> from being highlighting as an operator.
|
10612
10566
|
match: /->/,
|
10613
10567
|
relevance: 0
|
10614
|
-
},
|
10568
|
+
}, oe = {
|
10615
10569
|
className: "operator",
|
10616
10570
|
relevance: 0,
|
10617
10571
|
variants: [
|
10618
|
-
{ match:
|
10572
|
+
{ match: h },
|
10619
10573
|
{
|
10620
10574
|
// dot-operator: only operators that start with a dot are allowed to use dots as
|
10621
10575
|
// characters (..., ...<, .*, etc). So there rule here is: a dot followed by one or more
|
@@ -10623,74 +10577,74 @@ function na() {
|
|
10623
10577
|
match: `\\.(\\.|${E})+`
|
10624
10578
|
}
|
10625
10579
|
]
|
10626
|
-
},
|
10627
|
-
|
10628
|
-
|
10629
|
-
],
|
10580
|
+
}, $ = [
|
10581
|
+
J,
|
10582
|
+
oe
|
10583
|
+
], W = "([0-9]_*)+", Y = "([0-9a-fA-F]_*)+", P = {
|
10630
10584
|
className: "number",
|
10631
10585
|
relevance: 0,
|
10632
10586
|
variants: [
|
10633
10587
|
// decimal floating-point-literal (subsumes decimal-literal)
|
10634
|
-
{ match: `\\b(${
|
10588
|
+
{ match: `\\b(${W})(\\.(${W}))?([eE][+-]?(${W}))?\\b` },
|
10635
10589
|
// hexadecimal floating-point-literal (subsumes hexadecimal-literal)
|
10636
|
-
{ match: `\\b0x(${
|
10590
|
+
{ match: `\\b0x(${Y})(\\.(${Y}))?([pP][+-]?(${W}))?\\b` },
|
10637
10591
|
// octal-literal
|
10638
10592
|
{ match: /\b0o([0-7]_*)+\b/ },
|
10639
10593
|
// binary-literal
|
10640
10594
|
{ match: /\b0b([01]_*)+\b/ }
|
10641
10595
|
]
|
10642
|
-
},
|
10596
|
+
}, X = (K = "") => ({
|
10643
10597
|
className: "subst",
|
10644
10598
|
variants: [
|
10645
|
-
{ match: t(/\\/,
|
10646
|
-
{ match: t(/\\/,
|
10599
|
+
{ match: t(/\\/, K, /[0\\tnr"']/) },
|
10600
|
+
{ match: t(/\\/, K, /u\{[0-9a-fA-F]{1,8}\}/) }
|
10647
10601
|
]
|
10648
|
-
}),
|
10602
|
+
}), ee = (K = "") => ({
|
10649
10603
|
className: "subst",
|
10650
|
-
match: t(/\\/,
|
10651
|
-
}),
|
10604
|
+
match: t(/\\/, K, /[\t ]*(?:[\r\n]|\r\n)/)
|
10605
|
+
}), te = (K = "") => ({
|
10652
10606
|
className: "subst",
|
10653
10607
|
label: "interpol",
|
10654
|
-
begin: t(/\\/,
|
10608
|
+
begin: t(/\\/, K, /\(/),
|
10655
10609
|
end: /\)/
|
10656
|
-
}),
|
10657
|
-
begin: t(
|
10658
|
-
end: t(/"""/,
|
10610
|
+
}), re = (K = "") => ({
|
10611
|
+
begin: t(K, /"""/),
|
10612
|
+
end: t(/"""/, K),
|
10659
10613
|
contains: [
|
10660
|
-
K
|
10661
|
-
|
10662
|
-
|
10614
|
+
X(K),
|
10615
|
+
ee(K),
|
10616
|
+
te(K)
|
10663
10617
|
]
|
10664
|
-
}), ae = (
|
10665
|
-
begin: t(
|
10666
|
-
end: t(/"/,
|
10618
|
+
}), ae = (K = "") => ({
|
10619
|
+
begin: t(K, /"/),
|
10620
|
+
end: t(/"/, K),
|
10667
10621
|
contains: [
|
10668
|
-
K
|
10669
|
-
|
10622
|
+
X(K),
|
10623
|
+
te(K)
|
10670
10624
|
]
|
10671
|
-
}),
|
10625
|
+
}), le = {
|
10672
10626
|
className: "string",
|
10673
10627
|
variants: [
|
10674
|
-
|
10675
|
-
|
10676
|
-
|
10677
|
-
|
10628
|
+
re(),
|
10629
|
+
re("#"),
|
10630
|
+
re("##"),
|
10631
|
+
re("###"),
|
10678
10632
|
ae(),
|
10679
10633
|
ae("#"),
|
10680
10634
|
ae("##"),
|
10681
10635
|
ae("###")
|
10682
10636
|
]
|
10683
|
-
},
|
10637
|
+
}, ie = { match: t(/`/, R, /`/) }, Ae = {
|
10684
10638
|
className: "variable",
|
10685
10639
|
match: /\$\d+/
|
10686
|
-
},
|
10640
|
+
}, me = {
|
10687
10641
|
className: "variable",
|
10688
|
-
match: `\\$${
|
10689
|
-
},
|
10690
|
-
|
10691
|
-
|
10692
|
-
|
10693
|
-
],
|
10642
|
+
match: `\\$${A}+`
|
10643
|
+
}, T = [
|
10644
|
+
ie,
|
10645
|
+
Ae,
|
10646
|
+
me
|
10647
|
+
], Te = {
|
10694
10648
|
match: /(@|#(un)?)available/,
|
10695
10649
|
className: "keyword",
|
10696
10650
|
starts: { contains: [
|
@@ -10699,35 +10653,35 @@ function na() {
|
|
10699
10653
|
end: /\)/,
|
10700
10654
|
keywords: L,
|
10701
10655
|
contains: [
|
10702
|
-
|
10703
|
-
|
10704
|
-
|
10656
|
+
...$,
|
10657
|
+
P,
|
10658
|
+
le
|
10705
10659
|
]
|
10706
10660
|
}
|
10707
10661
|
] }
|
10708
|
-
},
|
10662
|
+
}, G = {
|
10709
10663
|
className: "keyword",
|
10710
|
-
match: t(/@/, c(...
|
10711
|
-
},
|
10664
|
+
match: t(/@/, c(...I))
|
10665
|
+
}, U = {
|
10712
10666
|
className: "meta",
|
10713
|
-
match: t(/@/,
|
10714
|
-
},
|
10715
|
-
|
10716
|
-
|
10717
|
-
|
10718
|
-
],
|
10667
|
+
match: t(/@/, R)
|
10668
|
+
}, de = [
|
10669
|
+
Te,
|
10670
|
+
G,
|
10671
|
+
U
|
10672
|
+
], j = {
|
10719
10673
|
match: e(/\b[A-Z]/),
|
10720
10674
|
relevance: 0,
|
10721
10675
|
contains: [
|
10722
10676
|
{
|
10723
10677
|
// Common Apple frameworks, for relevance boost
|
10724
10678
|
className: "type",
|
10725
|
-
match: t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,
|
10679
|
+
match: t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, A, "+")
|
10726
10680
|
},
|
10727
10681
|
{
|
10728
10682
|
// Type identifier
|
10729
10683
|
className: "type",
|
10730
|
-
match:
|
10684
|
+
match: M,
|
10731
10685
|
relevance: 0
|
10732
10686
|
},
|
10733
10687
|
{
|
@@ -10742,56 +10696,56 @@ function na() {
|
|
10742
10696
|
},
|
10743
10697
|
{
|
10744
10698
|
// Protocol composition
|
10745
|
-
match: t(/\s+&\s+/, e(
|
10699
|
+
match: t(/\s+&\s+/, e(M)),
|
10746
10700
|
relevance: 0
|
10747
10701
|
}
|
10748
10702
|
]
|
10749
|
-
},
|
10703
|
+
}, Ee = {
|
10750
10704
|
begin: /</,
|
10751
10705
|
end: />/,
|
10752
|
-
keywords:
|
10706
|
+
keywords: N,
|
10753
10707
|
contains: [
|
10754
|
-
...
|
10755
|
-
...
|
10756
|
-
...
|
10757
|
-
|
10758
|
-
|
10708
|
+
...B,
|
10709
|
+
...S,
|
10710
|
+
...de,
|
10711
|
+
J,
|
10712
|
+
j
|
10759
10713
|
]
|
10760
10714
|
};
|
10761
|
-
|
10762
|
-
const
|
10763
|
-
match: t(
|
10715
|
+
j.contains.push(Ee);
|
10716
|
+
const fe = {
|
10717
|
+
match: t(R, /\s*:/),
|
10764
10718
|
keywords: "_|0",
|
10765
10719
|
relevance: 0
|
10766
|
-
},
|
10720
|
+
}, _ = {
|
10767
10721
|
begin: /\(/,
|
10768
10722
|
end: /\)/,
|
10769
10723
|
relevance: 0,
|
10770
|
-
keywords:
|
10724
|
+
keywords: N,
|
10771
10725
|
contains: [
|
10772
10726
|
"self",
|
10727
|
+
fe,
|
10728
|
+
...B,
|
10729
|
+
...S,
|
10730
|
+
...H,
|
10731
|
+
...$,
|
10732
|
+
P,
|
10773
10733
|
le,
|
10774
|
-
...
|
10775
|
-
...
|
10776
|
-
|
10777
|
-
...te,
|
10778
|
-
H,
|
10779
|
-
se,
|
10780
|
-
...Ne,
|
10781
|
-
...q,
|
10782
|
-
k
|
10734
|
+
...T,
|
10735
|
+
...de,
|
10736
|
+
j
|
10783
10737
|
]
|
10784
|
-
},
|
10738
|
+
}, y = {
|
10785
10739
|
begin: /</,
|
10786
10740
|
end: />/,
|
10787
10741
|
contains: [
|
10788
|
-
...
|
10789
|
-
|
10742
|
+
...B,
|
10743
|
+
j
|
10790
10744
|
]
|
10791
|
-
},
|
10745
|
+
}, w = {
|
10792
10746
|
begin: c(
|
10793
|
-
e(t(
|
10794
|
-
e(t(
|
10747
|
+
e(t(R, /\s*:/)),
|
10748
|
+
e(t(R, /\s+/, R, /\s*:/))
|
10795
10749
|
),
|
10796
10750
|
end: /:/,
|
10797
10751
|
relevance: 0,
|
@@ -10802,154 +10756,154 @@ function na() {
|
|
10802
10756
|
},
|
10803
10757
|
{
|
10804
10758
|
className: "params",
|
10805
|
-
match:
|
10759
|
+
match: R
|
10806
10760
|
}
|
10807
10761
|
]
|
10808
|
-
},
|
10762
|
+
}, x = {
|
10809
10763
|
begin: /\(/,
|
10810
10764
|
end: /\)/,
|
10811
|
-
keywords:
|
10765
|
+
keywords: N,
|
10812
10766
|
contains: [
|
10813
|
-
|
10814
|
-
...
|
10815
|
-
...
|
10816
|
-
|
10817
|
-
|
10818
|
-
|
10819
|
-
...
|
10820
|
-
|
10821
|
-
|
10767
|
+
w,
|
10768
|
+
...B,
|
10769
|
+
...S,
|
10770
|
+
...$,
|
10771
|
+
P,
|
10772
|
+
le,
|
10773
|
+
...de,
|
10774
|
+
j,
|
10775
|
+
_
|
10822
10776
|
],
|
10823
10777
|
endsParent: !0,
|
10824
10778
|
illegal: /["']/
|
10825
|
-
},
|
10779
|
+
}, Z = {
|
10826
10780
|
match: [
|
10827
10781
|
/func/,
|
10828
10782
|
/\s+/,
|
10829
|
-
c(
|
10783
|
+
c(ie.match, R, h)
|
10830
10784
|
],
|
10831
10785
|
className: {
|
10832
10786
|
1: "keyword",
|
10833
10787
|
3: "title.function"
|
10834
10788
|
},
|
10835
10789
|
contains: [
|
10836
|
-
Ee,
|
10837
10790
|
y,
|
10791
|
+
x,
|
10838
10792
|
C
|
10839
10793
|
],
|
10840
10794
|
illegal: [
|
10841
10795
|
/\[/,
|
10842
10796
|
/%/
|
10843
10797
|
]
|
10844
|
-
},
|
10798
|
+
}, se = {
|
10845
10799
|
match: [
|
10846
10800
|
/\b(?:subscript|init[?!]?)/,
|
10847
10801
|
/\s*(?=[<(])/
|
10848
10802
|
],
|
10849
10803
|
className: { 1: "keyword" },
|
10850
10804
|
contains: [
|
10851
|
-
Ee,
|
10852
10805
|
y,
|
10806
|
+
x,
|
10853
10807
|
C
|
10854
10808
|
],
|
10855
10809
|
illegal: /\[|%/
|
10856
|
-
},
|
10810
|
+
}, Me = {
|
10857
10811
|
match: [
|
10858
10812
|
/operator/,
|
10859
10813
|
/\s+/,
|
10860
|
-
|
10814
|
+
h
|
10861
10815
|
],
|
10862
10816
|
className: {
|
10863
10817
|
1: "keyword",
|
10864
10818
|
3: "title"
|
10865
10819
|
}
|
10866
|
-
},
|
10820
|
+
}, Ie = {
|
10867
10821
|
begin: [
|
10868
10822
|
/precedencegroup/,
|
10869
10823
|
/\s+/,
|
10870
|
-
|
10824
|
+
M
|
10871
10825
|
],
|
10872
10826
|
className: {
|
10873
10827
|
1: "keyword",
|
10874
10828
|
3: "title"
|
10875
10829
|
},
|
10876
|
-
contains: [
|
10830
|
+
contains: [j],
|
10877
10831
|
keywords: [
|
10878
|
-
...
|
10832
|
+
...u,
|
10879
10833
|
...l
|
10880
10834
|
],
|
10881
10835
|
end: /}/
|
10882
10836
|
};
|
10883
|
-
for (const
|
10884
|
-
const
|
10885
|
-
|
10886
|
-
const
|
10887
|
-
...
|
10888
|
-
...
|
10889
|
-
|
10890
|
-
|
10891
|
-
|
10892
|
-
...
|
10837
|
+
for (const K of le.variants) {
|
10838
|
+
const yn = K.contains.find((vt) => vt.label === "interpol");
|
10839
|
+
yn.keywords = N;
|
10840
|
+
const vn = [
|
10841
|
+
...S,
|
10842
|
+
...H,
|
10843
|
+
...$,
|
10844
|
+
P,
|
10845
|
+
le,
|
10846
|
+
...T
|
10893
10847
|
];
|
10894
|
-
|
10895
|
-
...
|
10848
|
+
yn.contains = [
|
10849
|
+
...vn,
|
10896
10850
|
{
|
10897
10851
|
begin: /\(/,
|
10898
10852
|
end: /\)/,
|
10899
10853
|
contains: [
|
10900
10854
|
"self",
|
10901
|
-
...
|
10855
|
+
...vn
|
10902
10856
|
]
|
10903
10857
|
}
|
10904
10858
|
];
|
10905
10859
|
}
|
10906
10860
|
return {
|
10907
10861
|
name: "Swift",
|
10908
|
-
keywords:
|
10862
|
+
keywords: N,
|
10909
10863
|
contains: [
|
10910
|
-
...
|
10911
|
-
|
10912
|
-
|
10864
|
+
...B,
|
10865
|
+
Z,
|
10866
|
+
se,
|
10913
10867
|
{
|
10914
10868
|
beginKeywords: "struct protocol class extension enum actor",
|
10915
10869
|
end: "\\{",
|
10916
10870
|
excludeEnd: !0,
|
10917
|
-
keywords:
|
10871
|
+
keywords: N,
|
10918
10872
|
contains: [
|
10919
10873
|
v.inherit(v.TITLE_MODE, {
|
10920
10874
|
className: "title.class",
|
10921
10875
|
begin: /[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/
|
10922
10876
|
}),
|
10923
|
-
...
|
10877
|
+
...S
|
10924
10878
|
]
|
10925
10879
|
},
|
10926
|
-
|
10927
|
-
|
10880
|
+
Me,
|
10881
|
+
Ie,
|
10928
10882
|
{
|
10929
10883
|
beginKeywords: "import",
|
10930
10884
|
end: /$/,
|
10931
|
-
contains: [...
|
10885
|
+
contains: [...B],
|
10932
10886
|
relevance: 0
|
10933
10887
|
},
|
10934
|
-
...
|
10935
|
-
...
|
10936
|
-
|
10937
|
-
|
10938
|
-
|
10939
|
-
...
|
10940
|
-
...
|
10941
|
-
|
10942
|
-
|
10888
|
+
...S,
|
10889
|
+
...H,
|
10890
|
+
...$,
|
10891
|
+
P,
|
10892
|
+
le,
|
10893
|
+
...T,
|
10894
|
+
...de,
|
10895
|
+
j,
|
10896
|
+
_
|
10943
10897
|
]
|
10944
10898
|
};
|
10945
10899
|
}
|
10946
|
-
return
|
10900
|
+
return dn = D, dn;
|
10947
10901
|
}
|
10948
|
-
var
|
10902
|
+
var un, ct;
|
10949
10903
|
function ta() {
|
10950
|
-
if (
|
10951
|
-
return
|
10952
|
-
|
10904
|
+
if (ct)
|
10905
|
+
return un;
|
10906
|
+
ct = 1;
|
10953
10907
|
function n(e) {
|
10954
10908
|
const t = "true false yes no null", s = "[\\w#;/?:@&=+$,.~*'()[\\]]+", c = {
|
10955
10909
|
className: "attr",
|
@@ -11006,9 +10960,9 @@ function ta() {
|
|
11006
10960
|
end: /"/
|
11007
10961
|
},
|
11008
10962
|
{ begin: /[^\s,{}[\]]+/ }
|
11009
|
-
] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}", d = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", l = "(\\.[0-9]*)?",
|
10963
|
+
] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}", d = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", l = "(\\.[0-9]*)?", u = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", b = {
|
11010
10964
|
className: "number",
|
11011
|
-
begin: "\\b" + i + d + l +
|
10965
|
+
begin: "\\b" + i + d + l + u + "\\b"
|
11012
10966
|
}, p = {
|
11013
10967
|
end: ",",
|
11014
10968
|
endsWithParent: !0,
|
@@ -11027,7 +10981,7 @@ function ta() {
|
|
11027
10981
|
contains: [p],
|
11028
10982
|
illegal: "\\n",
|
11029
10983
|
relevance: 0
|
11030
|
-
},
|
10984
|
+
}, h = [
|
11031
10985
|
c,
|
11032
10986
|
{
|
11033
10987
|
className: "meta",
|
@@ -11106,21 +11060,21 @@ function ta() {
|
|
11106
11060
|
m,
|
11107
11061
|
E,
|
11108
11062
|
a
|
11109
|
-
],
|
11110
|
-
return
|
11063
|
+
], f = [...h];
|
11064
|
+
return f.pop(), f.push(r), p.contains = f, {
|
11111
11065
|
name: "YAML",
|
11112
11066
|
case_insensitive: !0,
|
11113
11067
|
aliases: ["yml"],
|
11114
|
-
contains:
|
11068
|
+
contains: h
|
11115
11069
|
};
|
11116
11070
|
}
|
11117
|
-
return
|
11071
|
+
return un = n, un;
|
11118
11072
|
}
|
11119
|
-
var
|
11073
|
+
var gn, lt;
|
11120
11074
|
function ra() {
|
11121
|
-
if (
|
11122
|
-
return
|
11123
|
-
|
11075
|
+
if (lt)
|
11076
|
+
return gn;
|
11077
|
+
lt = 1;
|
11124
11078
|
const n = "[A-Za-z$_][0-9A-Za-z$_]*", e = [
|
11125
11079
|
"as",
|
11126
11080
|
// for exports
|
@@ -11256,7 +11210,6 @@ function ra() {
|
|
11256
11210
|
"window",
|
11257
11211
|
"document",
|
11258
11212
|
"localStorage",
|
11259
|
-
"sessionStorage",
|
11260
11213
|
"module",
|
11261
11214
|
"global"
|
11262
11215
|
// Node.js
|
@@ -11266,56 +11219,56 @@ function ra() {
|
|
11266
11219
|
c
|
11267
11220
|
);
|
11268
11221
|
function i(l) {
|
11269
|
-
const
|
11270
|
-
const
|
11271
|
-
return
|
11222
|
+
const u = l.regex, b = (P, { after: X }) => {
|
11223
|
+
const ee = "</" + P[0].slice(1);
|
11224
|
+
return P.input.indexOf(ee, X) !== -1;
|
11272
11225
|
}, p = n, m = {
|
11273
11226
|
begin: "<>",
|
11274
11227
|
end: "</>"
|
11275
|
-
}, E = /<[A-Za-z0-9\\._:-]+\s*\/>/,
|
11228
|
+
}, E = /<[A-Za-z0-9\\._:-]+\s*\/>/, h = {
|
11276
11229
|
begin: /<[A-Za-z0-9\\._:-]+/,
|
11277
11230
|
end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
|
11278
11231
|
/**
|
11279
11232
|
* @param {RegExpMatchArray} match
|
11280
11233
|
* @param {CallbackResponse} response
|
11281
11234
|
*/
|
11282
|
-
isTrulyOpeningTag: (
|
11283
|
-
const
|
11235
|
+
isTrulyOpeningTag: (P, X) => {
|
11236
|
+
const ee = P[0].length + P.index, te = P.input[ee];
|
11284
11237
|
if (
|
11285
11238
|
// HTML should not include another raw `<` inside a tag
|
11286
11239
|
// nested type?
|
11287
11240
|
// `<Array<Array<number>>`, etc.
|
11288
|
-
|
11241
|
+
te === "<" || // the , gives away that this is not HTML
|
11289
11242
|
// `<T, A extends keyof T, V>`
|
11290
|
-
|
11243
|
+
te === ","
|
11291
11244
|
) {
|
11292
|
-
|
11245
|
+
X.ignoreMatch();
|
11293
11246
|
return;
|
11294
11247
|
}
|
11295
|
-
|
11296
|
-
let
|
11297
|
-
const
|
11298
|
-
if (
|
11299
|
-
|
11248
|
+
te === ">" && (b(P, { after: ee }) || X.ignoreMatch());
|
11249
|
+
let re;
|
11250
|
+
const ae = P.input.substring(ee);
|
11251
|
+
if (re = ae.match(/^\s*=/)) {
|
11252
|
+
X.ignoreMatch();
|
11300
11253
|
return;
|
11301
11254
|
}
|
11302
|
-
if ((
|
11303
|
-
|
11255
|
+
if ((re = ae.match(/^\s+extends\s+/)) && re.index === 0) {
|
11256
|
+
X.ignoreMatch();
|
11304
11257
|
return;
|
11305
11258
|
}
|
11306
11259
|
}
|
11307
|
-
},
|
11260
|
+
}, f = {
|
11308
11261
|
$pattern: n,
|
11309
11262
|
keyword: e,
|
11310
11263
|
literal: t,
|
11311
11264
|
built_in: r,
|
11312
11265
|
"variable.language": a
|
11313
|
-
},
|
11266
|
+
}, A = "[0-9](_?[0-9])*", R = `\\.(${A})`, M = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", I = {
|
11314
11267
|
className: "number",
|
11315
11268
|
variants: [
|
11316
11269
|
// DecimalLiteral
|
11317
|
-
{ begin: `(\\b(${
|
11318
|
-
{ begin: `\\b(${
|
11270
|
+
{ begin: `(\\b(${M})((${R})|\\.)?|(${R}))[eE][+-]?(${A})\\b` },
|
11271
|
+
{ begin: `\\b(${M})\\b((${R})\\b|\\.)?|(${R})\\b` },
|
11319
11272
|
// DecimalBigIntegerLiteral
|
11320
11273
|
{ begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
|
11321
11274
|
// NonDecimalIntegerLiteral
|
@@ -11331,10 +11284,10 @@ function ra() {
|
|
11331
11284
|
className: "subst",
|
11332
11285
|
begin: "\\$\\{",
|
11333
11286
|
end: "\\}",
|
11334
|
-
keywords:
|
11287
|
+
keywords: f,
|
11335
11288
|
contains: []
|
11336
11289
|
// defined later
|
11337
|
-
},
|
11290
|
+
}, D = {
|
11338
11291
|
begin: "html`",
|
11339
11292
|
end: "",
|
11340
11293
|
starts: {
|
@@ -11359,18 +11312,6 @@ function ra() {
|
|
11359
11312
|
subLanguage: "css"
|
11360
11313
|
}
|
11361
11314
|
}, C = {
|
11362
|
-
begin: "gql`",
|
11363
|
-
end: "",
|
11364
|
-
starts: {
|
11365
|
-
end: "`",
|
11366
|
-
returnEnd: !1,
|
11367
|
-
contains: [
|
11368
|
-
l.BACKSLASH_ESCAPE,
|
11369
|
-
L
|
11370
|
-
],
|
11371
|
-
subLanguage: "graphql"
|
11372
|
-
}
|
11373
|
-
}, G = {
|
11374
11315
|
className: "string",
|
11375
11316
|
begin: "`",
|
11376
11317
|
end: "`",
|
@@ -11378,7 +11319,7 @@ function ra() {
|
|
11378
11319
|
l.BACKSLASH_ESCAPE,
|
11379
11320
|
L
|
11380
11321
|
]
|
11381
|
-
},
|
11322
|
+
}, B = {
|
11382
11323
|
className: "comment",
|
11383
11324
|
variants: [
|
11384
11325
|
l.COMMENT(
|
@@ -11423,47 +11364,46 @@ function ra() {
|
|
11423
11364
|
l.C_BLOCK_COMMENT_MODE,
|
11424
11365
|
l.C_LINE_COMMENT_MODE
|
11425
11366
|
]
|
11426
|
-
},
|
11367
|
+
}, ne = [
|
11427
11368
|
l.APOS_STRING_MODE,
|
11428
11369
|
l.QUOTE_STRING_MODE,
|
11429
|
-
|
11370
|
+
D,
|
11430
11371
|
v,
|
11431
11372
|
C,
|
11432
|
-
G,
|
11433
11373
|
// Skip numbers when they are part of a variable name
|
11434
11374
|
{ match: /\$\d+/ },
|
11435
|
-
|
11375
|
+
I
|
11436
11376
|
// This is intentional:
|
11437
11377
|
// See https://github.com/highlightjs/highlight.js/issues/3288
|
11438
11378
|
// hljs.REGEXP_MODE
|
11439
11379
|
];
|
11440
|
-
L.contains =
|
11380
|
+
L.contains = ne.concat({
|
11441
11381
|
// we need to pair up {} inside our subst to prevent
|
11442
11382
|
// it from ending too early by matching another }
|
11443
11383
|
begin: /\{/,
|
11444
11384
|
end: /\}/,
|
11445
|
-
keywords:
|
11385
|
+
keywords: f,
|
11446
11386
|
contains: [
|
11447
11387
|
"self"
|
11448
|
-
].concat(
|
11388
|
+
].concat(ne)
|
11449
11389
|
});
|
11450
|
-
const
|
11390
|
+
const Q = [].concat(B, L.contains), z = Q.concat([
|
11451
11391
|
// eat recursive parens in sub expressions
|
11452
11392
|
{
|
11453
11393
|
begin: /\(/,
|
11454
11394
|
end: /\)/,
|
11455
|
-
keywords:
|
11456
|
-
contains: ["self"].concat(
|
11395
|
+
keywords: f,
|
11396
|
+
contains: ["self"].concat(Q)
|
11457
11397
|
}
|
11458
|
-
]),
|
11398
|
+
]), V = {
|
11459
11399
|
className: "params",
|
11460
11400
|
begin: /\(/,
|
11461
11401
|
end: /\)/,
|
11462
11402
|
excludeBegin: !0,
|
11463
11403
|
excludeEnd: !0,
|
11464
|
-
keywords:
|
11465
|
-
contains:
|
11466
|
-
},
|
11404
|
+
keywords: f,
|
11405
|
+
contains: z
|
11406
|
+
}, g = {
|
11467
11407
|
variants: [
|
11468
11408
|
// class Car extends vehicle
|
11469
11409
|
{
|
@@ -11474,7 +11414,7 @@ function ra() {
|
|
11474
11414
|
/\s+/,
|
11475
11415
|
/extends/,
|
11476
11416
|
/\s+/,
|
11477
|
-
|
11417
|
+
u.concat(p, "(", u.concat(/\./, p), ")*")
|
11478
11418
|
],
|
11479
11419
|
scope: {
|
11480
11420
|
1: "keyword",
|
@@ -11496,9 +11436,9 @@ function ra() {
|
|
11496
11436
|
}
|
11497
11437
|
}
|
11498
11438
|
]
|
11499
|
-
},
|
11439
|
+
}, N = {
|
11500
11440
|
relevance: 0,
|
11501
|
-
match:
|
11441
|
+
match: u.either(
|
11502
11442
|
// Hard coded exceptions
|
11503
11443
|
/\bJSON/,
|
11504
11444
|
// Float32Array, OutT
|
@@ -11520,12 +11460,12 @@ function ra() {
|
|
11520
11460
|
...c
|
11521
11461
|
]
|
11522
11462
|
}
|
11523
|
-
},
|
11463
|
+
}, S = {
|
11524
11464
|
label: "use_strict",
|
11525
11465
|
className: "meta",
|
11526
11466
|
relevance: 10,
|
11527
11467
|
begin: /^\s*['"]use (strict|asm)['"]/
|
11528
|
-
},
|
11468
|
+
}, k = {
|
11529
11469
|
variants: [
|
11530
11470
|
{
|
11531
11471
|
match: [
|
@@ -11548,39 +11488,39 @@ function ra() {
|
|
11548
11488
|
3: "title.function"
|
11549
11489
|
},
|
11550
11490
|
label: "func.def",
|
11551
|
-
contains: [
|
11491
|
+
contains: [V],
|
11552
11492
|
illegal: /%/
|
11553
|
-
},
|
11493
|
+
}, F = {
|
11554
11494
|
relevance: 0,
|
11555
11495
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
11556
11496
|
className: "variable.constant"
|
11557
11497
|
};
|
11558
|
-
function
|
11559
|
-
return
|
11498
|
+
function H(P) {
|
11499
|
+
return u.concat("(?!", P.join("|"), ")");
|
11560
11500
|
}
|
11561
|
-
const
|
11562
|
-
match:
|
11501
|
+
const J = {
|
11502
|
+
match: u.concat(
|
11563
11503
|
/\b/,
|
11564
|
-
|
11504
|
+
H([
|
11565
11505
|
...o,
|
11566
11506
|
"super",
|
11567
11507
|
"import"
|
11568
11508
|
]),
|
11569
11509
|
p,
|
11570
|
-
|
11510
|
+
u.lookahead(/\(/)
|
11571
11511
|
),
|
11572
11512
|
className: "title.function",
|
11573
11513
|
relevance: 0
|
11574
|
-
},
|
11575
|
-
begin:
|
11576
|
-
|
11514
|
+
}, oe = {
|
11515
|
+
begin: u.concat(/\./, u.lookahead(
|
11516
|
+
u.concat(p, /(?![0-9A-Za-z$_(])/)
|
11577
11517
|
)),
|
11578
11518
|
end: p,
|
11579
11519
|
excludeBegin: !0,
|
11580
11520
|
keywords: "prototype",
|
11581
11521
|
className: "property",
|
11582
11522
|
relevance: 0
|
11583
|
-
},
|
11523
|
+
}, $ = {
|
11584
11524
|
match: [
|
11585
11525
|
/get|set/,
|
11586
11526
|
/\s+/,
|
@@ -11596,9 +11536,9 @@ function ra() {
|
|
11596
11536
|
// eat to avoid empty params
|
11597
11537
|
begin: /\(\)/
|
11598
11538
|
},
|
11599
|
-
|
11539
|
+
V
|
11600
11540
|
]
|
11601
|
-
},
|
11541
|
+
}, W = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + l.UNDERSCORE_IDENT_RE + ")\\s*=>", Y = {
|
11602
11542
|
match: [
|
11603
11543
|
/const|var|let/,
|
11604
11544
|
/\s+/,
|
@@ -11607,7 +11547,7 @@ function ra() {
|
|
11607
11547
|
/=\s*/,
|
11608
11548
|
/(async\s*)?/,
|
11609
11549
|
// async is optional
|
11610
|
-
|
11550
|
+
u.lookahead(W)
|
11611
11551
|
],
|
11612
11552
|
keywords: "async",
|
11613
11553
|
className: {
|
@@ -11615,15 +11555,15 @@ function ra() {
|
|
11615
11555
|
3: "title.function"
|
11616
11556
|
},
|
11617
11557
|
contains: [
|
11618
|
-
|
11558
|
+
V
|
11619
11559
|
]
|
11620
11560
|
};
|
11621
11561
|
return {
|
11622
|
-
name: "
|
11562
|
+
name: "Javascript",
|
11623
11563
|
aliases: ["js", "jsx", "mjs", "cjs"],
|
11624
|
-
keywords:
|
11564
|
+
keywords: f,
|
11625
11565
|
// this will be extended by TypeScript
|
11626
|
-
exports: { PARAMS_CONTAINS:
|
11566
|
+
exports: { PARAMS_CONTAINS: z, CLASS_REFERENCE: N },
|
11627
11567
|
illegal: /#(?![$_A-z])/,
|
11628
11568
|
contains: [
|
11629
11569
|
l.SHEBANG({
|
@@ -11631,38 +11571,37 @@ function ra() {
|
|
11631
11571
|
binary: "node",
|
11632
11572
|
relevance: 5
|
11633
11573
|
}),
|
11634
|
-
|
11574
|
+
S,
|
11635
11575
|
l.APOS_STRING_MODE,
|
11636
11576
|
l.QUOTE_STRING_MODE,
|
11637
|
-
|
11577
|
+
D,
|
11638
11578
|
v,
|
11639
11579
|
C,
|
11640
|
-
|
11641
|
-
J,
|
11580
|
+
B,
|
11642
11581
|
// Skip numbers when they are part of a variable name
|
11643
11582
|
{ match: /\$\d+/ },
|
11644
|
-
|
11645
|
-
|
11583
|
+
I,
|
11584
|
+
N,
|
11646
11585
|
{
|
11647
11586
|
className: "attr",
|
11648
|
-
begin: p +
|
11587
|
+
begin: p + u.lookahead(":"),
|
11649
11588
|
relevance: 0
|
11650
11589
|
},
|
11651
|
-
|
11590
|
+
Y,
|
11652
11591
|
{
|
11653
11592
|
// "value" container
|
11654
11593
|
begin: "(" + l.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
|
11655
11594
|
keywords: "return throw case",
|
11656
11595
|
relevance: 0,
|
11657
11596
|
contains: [
|
11658
|
-
|
11597
|
+
B,
|
11659
11598
|
l.REGEXP_MODE,
|
11660
11599
|
{
|
11661
11600
|
className: "function",
|
11662
11601
|
// we have to count the parens to make sure we actually have the
|
11663
11602
|
// correct bounding ( ) before the =>. There could be any number of
|
11664
11603
|
// sub-expressions inside also surrounded by parens.
|
11665
|
-
begin:
|
11604
|
+
begin: W,
|
11666
11605
|
returnBegin: !0,
|
11667
11606
|
end: "\\s*=>",
|
11668
11607
|
contains: [
|
@@ -11683,8 +11622,8 @@ function ra() {
|
|
11683
11622
|
end: /\)/,
|
11684
11623
|
excludeBegin: !0,
|
11685
11624
|
excludeEnd: !0,
|
11686
|
-
keywords:
|
11687
|
-
contains:
|
11625
|
+
keywords: f,
|
11626
|
+
contains: z
|
11688
11627
|
}
|
11689
11628
|
]
|
11690
11629
|
}
|
@@ -11705,18 +11644,18 @@ function ra() {
|
|
11705
11644
|
{ begin: m.begin, end: m.end },
|
11706
11645
|
{ match: E },
|
11707
11646
|
{
|
11708
|
-
begin:
|
11647
|
+
begin: h.begin,
|
11709
11648
|
// we carefully check the opening tag to see if it truly
|
11710
11649
|
// is a tag and not a false positive
|
11711
|
-
"on:begin":
|
11712
|
-
end:
|
11650
|
+
"on:begin": h.isTrulyOpeningTag,
|
11651
|
+
end: h.end
|
11713
11652
|
}
|
11714
11653
|
],
|
11715
11654
|
subLanguage: "xml",
|
11716
11655
|
contains: [
|
11717
11656
|
{
|
11718
|
-
begin:
|
11719
|
-
end:
|
11657
|
+
begin: h.begin,
|
11658
|
+
end: h.end,
|
11720
11659
|
skip: !0,
|
11721
11660
|
contains: ["self"]
|
11722
11661
|
}
|
@@ -11724,7 +11663,7 @@ function ra() {
|
|
11724
11663
|
}
|
11725
11664
|
]
|
11726
11665
|
},
|
11727
|
-
|
11666
|
+
k,
|
11728
11667
|
{
|
11729
11668
|
// prevent this from getting swallowed up by function
|
11730
11669
|
// since they appear "function like"
|
@@ -11739,7 +11678,7 @@ function ra() {
|
|
11739
11678
|
returnBegin: !0,
|
11740
11679
|
label: "func.def",
|
11741
11680
|
contains: [
|
11742
|
-
|
11681
|
+
V,
|
11743
11682
|
l.inherit(l.TITLE_MODE, { begin: p, className: "title.function" })
|
11744
11683
|
]
|
11745
11684
|
},
|
@@ -11748,7 +11687,7 @@ function ra() {
|
|
11748
11687
|
match: /\.\.\./,
|
11749
11688
|
relevance: 0
|
11750
11689
|
},
|
11751
|
-
|
11690
|
+
oe,
|
11752
11691
|
// hack: prevents detection of keywords in some circumstances
|
11753
11692
|
// .keyword()
|
11754
11693
|
// $keyword = x
|
@@ -11759,12 +11698,12 @@ function ra() {
|
|
11759
11698
|
{
|
11760
11699
|
match: [/\bconstructor(?=\s*\()/],
|
11761
11700
|
className: { 1: "title.function" },
|
11762
|
-
contains: [
|
11701
|
+
contains: [V]
|
11763
11702
|
},
|
11764
|
-
|
11765
|
-
|
11766
|
-
|
11767
|
-
|
11703
|
+
J,
|
11704
|
+
F,
|
11705
|
+
g,
|
11706
|
+
$,
|
11768
11707
|
{
|
11769
11708
|
match: /\$[(.]/
|
11770
11709
|
// relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
|
@@ -11773,7 +11712,7 @@ function ra() {
|
|
11773
11712
|
};
|
11774
11713
|
}
|
11775
11714
|
function d(l) {
|
11776
|
-
const
|
11715
|
+
const u = i(l), b = n, p = [
|
11777
11716
|
"any",
|
11778
11717
|
"void",
|
11779
11718
|
"number",
|
@@ -11788,7 +11727,7 @@ function ra() {
|
|
11788
11727
|
beginKeywords: "namespace",
|
11789
11728
|
end: /\{/,
|
11790
11729
|
excludeEnd: !0,
|
11791
|
-
contains: [
|
11730
|
+
contains: [u.exports.CLASS_REFERENCE]
|
11792
11731
|
}, E = {
|
11793
11732
|
beginKeywords: "interface",
|
11794
11733
|
end: /\{/,
|
@@ -11797,12 +11736,12 @@ function ra() {
|
|
11797
11736
|
keyword: "interface extends",
|
11798
11737
|
built_in: p
|
11799
11738
|
},
|
11800
|
-
contains: [
|
11801
|
-
},
|
11739
|
+
contains: [u.exports.CLASS_REFERENCE]
|
11740
|
+
}, h = {
|
11802
11741
|
className: "meta",
|
11803
11742
|
relevance: 10,
|
11804
11743
|
begin: /^\s*['"]use strict['"]/
|
11805
|
-
},
|
11744
|
+
}, f = [
|
11806
11745
|
"type",
|
11807
11746
|
"namespace",
|
11808
11747
|
"interface",
|
@@ -11815,44 +11754,42 @@ function ra() {
|
|
11815
11754
|
"readonly",
|
11816
11755
|
"enum",
|
11817
11756
|
"override"
|
11818
|
-
],
|
11757
|
+
], A = {
|
11819
11758
|
$pattern: n,
|
11820
|
-
keyword: e.concat(
|
11759
|
+
keyword: e.concat(f),
|
11821
11760
|
literal: t,
|
11822
11761
|
built_in: r.concat(p),
|
11823
11762
|
"variable.language": a
|
11824
|
-
},
|
11763
|
+
}, R = {
|
11825
11764
|
className: "meta",
|
11826
11765
|
begin: "@" + b
|
11827
|
-
},
|
11828
|
-
const C = L.contains.findIndex((
|
11766
|
+
}, M = (L, D, v) => {
|
11767
|
+
const C = L.contains.findIndex((q) => q.label === D);
|
11829
11768
|
if (C === -1)
|
11830
11769
|
throw new Error("can not find mode to replace");
|
11831
11770
|
L.contains.splice(C, 1, v);
|
11832
11771
|
};
|
11833
|
-
Object.assign(
|
11834
|
-
|
11772
|
+
Object.assign(u.keywords, A), u.exports.PARAMS_CONTAINS.push(R), u.contains = u.contains.concat([
|
11773
|
+
R,
|
11835
11774
|
m,
|
11836
11775
|
E
|
11837
|
-
]),
|
11838
|
-
const
|
11839
|
-
return
|
11776
|
+
]), M(u, "shebang", l.SHEBANG()), M(u, "use_strict", h);
|
11777
|
+
const I = u.contains.find((L) => L.label === "func.def");
|
11778
|
+
return I.relevance = 0, Object.assign(u, {
|
11840
11779
|
name: "TypeScript",
|
11841
11780
|
aliases: [
|
11842
11781
|
"ts",
|
11843
|
-
"tsx"
|
11844
|
-
"mts",
|
11845
|
-
"cts"
|
11782
|
+
"tsx"
|
11846
11783
|
]
|
11847
|
-
}),
|
11784
|
+
}), u;
|
11848
11785
|
}
|
11849
|
-
return
|
11786
|
+
return gn = d, gn;
|
11850
11787
|
}
|
11851
|
-
var
|
11788
|
+
var bn, dt;
|
11852
11789
|
function aa() {
|
11853
|
-
if (
|
11854
|
-
return
|
11855
|
-
|
11790
|
+
if (dt)
|
11791
|
+
return bn;
|
11792
|
+
dt = 1;
|
11856
11793
|
function n(e) {
|
11857
11794
|
const t = e.regex, s = {
|
11858
11795
|
className: "string",
|
@@ -11919,7 +11856,7 @@ function aa() {
|
|
11919
11856
|
begin: /&B[01_]+((U?[SIL])|[%&])?/
|
11920
11857
|
}
|
11921
11858
|
]
|
11922
|
-
},
|
11859
|
+
}, u = {
|
11923
11860
|
className: "label",
|
11924
11861
|
begin: /^\w+:/
|
11925
11862
|
}, b = e.COMMENT(/'''/, /$/, { contains: [
|
@@ -11958,7 +11895,7 @@ function aa() {
|
|
11958
11895
|
c,
|
11959
11896
|
d,
|
11960
11897
|
l,
|
11961
|
-
|
11898
|
+
u,
|
11962
11899
|
b,
|
11963
11900
|
p,
|
11964
11901
|
{
|
@@ -11972,13 +11909,13 @@ function aa() {
|
|
11972
11909
|
]
|
11973
11910
|
};
|
11974
11911
|
}
|
11975
|
-
return
|
11912
|
+
return bn = n, bn;
|
11976
11913
|
}
|
11977
|
-
var
|
11914
|
+
var pn, ut;
|
11978
11915
|
function ia() {
|
11979
|
-
if (
|
11980
|
-
return
|
11981
|
-
|
11916
|
+
if (ut)
|
11917
|
+
return pn;
|
11918
|
+
ut = 1;
|
11982
11919
|
function n(e) {
|
11983
11920
|
e.regex;
|
11984
11921
|
const t = e.COMMENT(/\(;/, /;\)/);
|
@@ -12090,55 +12027,55 @@ function ia() {
|
|
12090
12027
|
]
|
12091
12028
|
};
|
12092
12029
|
}
|
12093
|
-
return
|
12030
|
+
return pn = n, pn;
|
12094
12031
|
}
|
12095
|
-
var
|
12096
|
-
|
12097
|
-
|
12098
|
-
|
12099
|
-
|
12100
|
-
|
12101
|
-
|
12102
|
-
|
12103
|
-
|
12104
|
-
|
12105
|
-
|
12106
|
-
|
12107
|
-
|
12108
|
-
|
12109
|
-
|
12110
|
-
|
12111
|
-
|
12112
|
-
|
12113
|
-
|
12114
|
-
|
12115
|
-
|
12116
|
-
|
12117
|
-
|
12118
|
-
|
12119
|
-
|
12120
|
-
|
12121
|
-
|
12122
|
-
|
12123
|
-
|
12124
|
-
|
12125
|
-
|
12126
|
-
|
12127
|
-
|
12128
|
-
|
12129
|
-
|
12130
|
-
|
12131
|
-
|
12132
|
-
|
12133
|
-
|
12134
|
-
var sa =
|
12135
|
-
const oa =
|
12032
|
+
var O = Tr;
|
12033
|
+
O.registerLanguage("xml", Sr());
|
12034
|
+
O.registerLanguage("bash", wr());
|
12035
|
+
O.registerLanguage("c", Or());
|
12036
|
+
O.registerLanguage("cpp", Rr());
|
12037
|
+
O.registerLanguage("csharp", Ar());
|
12038
|
+
O.registerLanguage("css", Mr());
|
12039
|
+
O.registerLanguage("markdown", Ir());
|
12040
|
+
O.registerLanguage("diff", Cr());
|
12041
|
+
O.registerLanguage("ruby", kr());
|
12042
|
+
O.registerLanguage("go", xr());
|
12043
|
+
O.registerLanguage("graphql", Dr());
|
12044
|
+
O.registerLanguage("ini", Lr());
|
12045
|
+
O.registerLanguage("java", Br());
|
12046
|
+
O.registerLanguage("javascript", Ur());
|
12047
|
+
O.registerLanguage("json", Pr());
|
12048
|
+
O.registerLanguage("kotlin", Fr());
|
12049
|
+
O.registerLanguage("less", $r());
|
12050
|
+
O.registerLanguage("lua", zr());
|
12051
|
+
O.registerLanguage("makefile", Kr());
|
12052
|
+
O.registerLanguage("perl", qr());
|
12053
|
+
O.registerLanguage("objectivec", Gr());
|
12054
|
+
O.registerLanguage("php", Hr());
|
12055
|
+
O.registerLanguage("php-template", Wr());
|
12056
|
+
O.registerLanguage("plaintext", Yr());
|
12057
|
+
O.registerLanguage("python", Zr());
|
12058
|
+
O.registerLanguage("python-repl", Vr());
|
12059
|
+
O.registerLanguage("r", Xr());
|
12060
|
+
O.registerLanguage("rust", Qr());
|
12061
|
+
O.registerLanguage("scss", Jr());
|
12062
|
+
O.registerLanguage("shell", jr());
|
12063
|
+
O.registerLanguage("sql", ea());
|
12064
|
+
O.registerLanguage("swift", na());
|
12065
|
+
O.registerLanguage("yaml", ta());
|
12066
|
+
O.registerLanguage("typescript", ra());
|
12067
|
+
O.registerLanguage("vbnet", aa());
|
12068
|
+
O.registerLanguage("wasm", ia());
|
12069
|
+
O.HighlightJS = O;
|
12070
|
+
O.default = O;
|
12071
|
+
var sa = O;
|
12072
|
+
const oa = sa;
|
12136
12073
|
var ca = Object.defineProperty, la = Object.getOwnPropertyDescriptor, pe = (n, e, t, s) => {
|
12137
12074
|
for (var c = s > 1 ? void 0 : s ? la(e, t) : e, o = n.length - 1, a; o >= 0; o--)
|
12138
12075
|
(a = n[o]) && (c = (s ? a(e, t, c) : a(c)) || c);
|
12139
12076
|
return s && c && ca(e, t, c), c;
|
12140
12077
|
};
|
12141
|
-
let ce = class extends
|
12078
|
+
let ce = class extends wt {
|
12142
12079
|
constructor() {
|
12143
12080
|
super(...arguments), this.inline = !1, this.hideHeader = !1, this._code = "";
|
12144
12081
|
}
|
@@ -12150,8 +12087,8 @@ let ce = class extends Ot {
|
|
12150
12087
|
});
|
12151
12088
|
}
|
12152
12089
|
render() {
|
12153
|
-
let n =
|
12154
|
-
return this.hideHeader || (n =
|
12090
|
+
let n = Se`${this.renderContainer()}`;
|
12091
|
+
return this.hideHeader || (n = Se`${this.renderHeader()}${this.renderContainer()}`), n;
|
12155
12092
|
}
|
12156
12093
|
renderContainer() {
|
12157
12094
|
const n = {
|
@@ -12163,13 +12100,13 @@ let ce = class extends Ot {
|
|
12163
12100
|
const e = document.createElement("div");
|
12164
12101
|
e.innerHTML = this._code ? this._code.trim() : "<slot></slot>";
|
12165
12102
|
let t;
|
12166
|
-
return this.maxHeight && this.maxHeight > 0 && (t = `max-height: ${this.maxHeight}px`),
|
12103
|
+
return this.maxHeight && this.maxHeight > 0 && (t = `max-height: ${this.maxHeight}px`), Se`<pre
|
12167
12104
|
style="${t}"
|
12168
12105
|
part="container"
|
12169
12106
|
><code class="${At(n)}">${e}</code></pre>`;
|
12170
12107
|
}
|
12171
12108
|
renderHeader() {
|
12172
|
-
return
|
12109
|
+
return Se`<div class="header" part="header">
|
12173
12110
|
<div class="title">${this.label}</div>
|
12174
12111
|
<span><slot name="actionItems"></slot></span>
|
12175
12112
|
</div>`;
|
@@ -12177,29 +12114,29 @@ let ce = class extends Ot {
|
|
12177
12114
|
};
|
12178
12115
|
ce.styles = [
|
12179
12116
|
Tt`
|
12180
|
-
${St(
|
12117
|
+
${St(Mt)}
|
12181
12118
|
`
|
12182
12119
|
];
|
12183
12120
|
pe([
|
12184
|
-
|
12121
|
+
ve()
|
12185
12122
|
], ce.prototype, "language", 2);
|
12186
12123
|
pe([
|
12187
|
-
|
12124
|
+
ve()
|
12188
12125
|
], ce.prototype, "label", 2);
|
12189
12126
|
pe([
|
12190
|
-
|
12127
|
+
ve({ type: Boolean, reflect: !0 })
|
12191
12128
|
], ce.prototype, "inline", 2);
|
12192
12129
|
pe([
|
12193
|
-
|
12130
|
+
ve({ type: Boolean, reflect: !0 })
|
12194
12131
|
], ce.prototype, "hideHeader", 2);
|
12195
12132
|
pe([
|
12196
12133
|
Rt({})
|
12197
12134
|
], ce.prototype, "_codeItems", 2);
|
12198
12135
|
pe([
|
12199
|
-
|
12136
|
+
ve()
|
12200
12137
|
], ce.prototype, "maxHeight", 2);
|
12201
12138
|
ce = pe([
|
12202
|
-
|
12139
|
+
Ot("cv-code-snippet")
|
12203
12140
|
], ce);
|
12204
12141
|
const pa = ce;
|
12205
12142
|
export {
|