@kong-ui-public/documentation 0.7.15 → 0.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{arc-CinmSIDH-Dcn7KGvc.js → arc-TomPQHIy---TPh_09.js} +1 -1
- package/dist/{blockDiagram-6b2b5046-lWu5MHZ2-BoOEWYD6.js → blockDiagram-6b2b5046-ZGxr7RGf-EFYzImkx.js} +5 -5
- package/dist/{c4Diagram-b947cdbb-_2ZSBCRj-BUDh5aYq.js → c4Diagram-b947cdbb-Bo6xALld-By3Ipo31.js} +2 -2
- package/dist/{channel-DxVjAaZy-IJf5_8CK.js → channel-BX3TjCqa-BSbXCWf0.js} +1 -1
- package/dist/{classDiagram-35230388-C7cMop8F-DuBGfvGp.js → classDiagram-35230388-C60SAKfJ-BIzFDuBu.js} +5 -5
- package/dist/{classDiagram-v2-412acd34-Sr_pGTUt-AuJo5LIE.js → classDiagram-v2-412acd34-CHK1KDqU-6VImEfmh.js} +5 -5
- package/dist/{clone-BaxuDe_X-CSbtQIgr.js → clone-BSWoNj0I-tckXyhCL.js} +1 -1
- package/dist/{cpp-DizfY48B-CA38N4Mn.js → cpp-Cxnlk9aI-CRrZJBoZ.js} +45 -14
- package/dist/{createText-423428c9-DSXJlj3p-CmtLQWob.js → createText-423428c9-DeHbckoy-BD9j3egy.js} +1 -1
- package/dist/{csharp-uGDiXTZn-uGDiXTZn.js → csharp-lrxu4vbW-lrxu4vbW.js} +1 -1
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +120 -95
- package/dist/{edges-d417c7a0-D20zX-94-B8CphGxt.js → edges-d417c7a0-D7e9Y4V--CivEDAj5.js} +3 -3
- package/dist/{erDiagram-0ea73325-p8FwyJvU-C0OgYqUN.js → erDiagram-0ea73325-E3jchkiK-BxNGtI50.js} +4 -4
- package/dist/{flowDb-d35e309a-Ca4FSAVM-WQMmXDja.js → flowDb-d35e309a-Dch1VW7i-WcIHFymz.js} +1 -1
- package/dist/{flowDiagram-d949d7c1-OwxKQJQE-D3HzuONU.js → flowDiagram-d949d7c1-CxjmKfBF-fN72q9OZ.js} +6 -6
- package/dist/{flowDiagram-v2-49332944-CmJFqFX3-BpyxAjBd.js → flowDiagram-v2-49332944-Duf6j7PN-F_OgPOA9.js} +5 -5
- package/dist/{flowchart-elk-definition-27cc417a-BK-QJI5S-CNQPwu_u.js → flowchart-elk-definition-27cc417a-M-lK4i48-BrhcUjqH.js} +4 -4
- package/dist/{ganttDiagram-5c869e3b-DsJMAz4f-CtgkK1FL.js → ganttDiagram-5c869e3b-CgjZsm2H-Cz1ShEgl.js} +2 -2
- package/dist/{gitGraphDiagram-b9d81de9-CgW7vwTs-Dww-gIrc.js → gitGraphDiagram-b9d81de9-DhOfBQfl-XNLvuj9e.js} +1 -1
- package/dist/go-vGwKyyRt-vGwKyyRt.js +7 -0
- package/dist/{graph-_GyIwSxm-B_vR7apB.js → graph-Ch18bQn5-DLZlxaOx.js} +1 -1
- package/dist/{haml-BW9Ug1pj-rFDS-Rd4.js → haml-DADkvXbc--0AW274F.js} +1 -1
- package/dist/{handlebars-Cr5ro0bH-CLcCNLtV.js → handlebars-Cs7BocNX-Bbsv9Jpf.js} +1 -1
- package/dist/{index-8fae9850-CyqCz_ca-cnk5n7Fe.js → index-8fae9850-kUIz8xNo-DThnA9iZ.js} +6 -6
- package/dist/{index-BIPKSlhn.js → index-DwEVUtAn.js} +1216 -1158
- package/dist/{infoDiagram-db7b18fc-0P3OTShw-Bp1eVumE.js → infoDiagram-db7b18fc-BpBtHVy2-CzlbkPep.js} +1 -1
- package/dist/{journeyDiagram-d5636530-DaBgA-aj-Z9L2Q9UD.js → journeyDiagram-d5636530-CZUFMDTA-B6x8SC3m.js} +3 -3
- package/dist/{latex-BOFs-Cxs-XUibdaju.js → latex-BQR4t-v7-DUtGkmwG.js} +3 -3
- package/dist/{layout-Bk7AdqJz-DRyrmTYm.js → layout-BzV691RN-Dwqgf_2b.js} +2 -2
- package/dist/{line-B7Dd0TiT-HVx0CjRf.js → line-JCh8JM-V-BbfA3RBV.js} +1 -1
- package/dist/{linear-bMW21eJn-BiTwGlLg.js → linear-cwTFOJBq-CaAAYk8b.js} +1 -1
- package/dist/{markdown-BXjY0Nyq-BXjY0Nyq.js → markdown-QuoPq0lm-QuoPq0lm.js} +1 -1
- package/dist/{material-theme-lighter-BRE1Bis3-BRE1Bis3.js → material-theme-lighter-CtwOYHJ5-CtwOYHJ5.js} +4 -4
- package/dist/{material-theme-palenight-Dhz61Tee-Dhz61Tee.js → material-theme-palenight-LzvMi3a5-LzvMi3a5.js} +4 -4
- package/dist/{mdc-B5nxCaLl-DMu34E1J.js → mdc-BZ-izL1S-5yLspiGp.js} +2 -2
- package/dist/mermaid-BDRJ-IyY-BDRJ-IyY.js +7 -0
- package/dist/{mindmap-definition-377f8f1f-ufN3tUA6-DrATq7p8.js → mindmap-definition-377f8f1f-BzIPdpBG-DGui0RqE.js} +2 -2
- package/dist/{pieDiagram-b0208e96-DrO8Y6_Q-qz1Vqf8G.js → pieDiagram-b0208e96-BQfpnZHG-CVSpIMRU.js} +2 -2
- package/dist/{quadrantDiagram-0332be45-DIp67xs6-CWxwUwJf.js → quadrantDiagram-0332be45-CNL4JCrn-B-f5sqU9.js} +2 -2
- package/dist/{requirementDiagram-bf7890df-BSzVPfZD-CzxSaoYW.js → requirementDiagram-bf7890df-NBqqCuPF-DAcckKVN.js} +4 -4
- package/dist/{rst-BrJuKOw1-B4ad15qt.js → rst-C6H9eA63-CVvBdizz.js} +2 -2
- package/dist/{sankeyDiagram-0acdec17-prPA1qqX-DBebH8FH.js → sankeyDiagram-0acdec17-YE0ROy8d-BWnyTcog.js} +1 -1
- package/dist/{sequenceDiagram-c18d009d-BAWs2OYL-Cl7Uk4w9.js → sequenceDiagram-c18d009d-Yucxrjw7-DpvimznV.js} +2 -2
- package/dist/{stateDiagram-43596fc0-DXEJ0R4o-cB0WlEf9.js → stateDiagram-43596fc0-D9IY4Ssi-CWdS8tlp.js} +5 -5
- package/dist/{stateDiagram-v2-2ead4f9c-DnzyCUgr-DQ4IkVrl.js → stateDiagram-v2-2ead4f9c-5IZQWbnV-6NEZ7lDP.js} +5 -5
- package/dist/{styles-6860f46c-DzVPBoYT-g58cIxdl.js → styles-6860f46c-DHqkrPDU-CvROn0Ze.js} +1 -1
- package/dist/{styles-7383a064-BL-LjhLx-DdruT6_O.js → styles-7383a064-DLbSva3T-D6oc5Ax7.js} +4 -4
- package/dist/{styles-b2c874b6-BCYk3bdu-CLfur12t.js → styles-b2c874b6-pUAi9-OK-C2ht5iWP.js} +1 -1
- package/dist/{svelte-BmPQnTph-DumSF5rK.js → svelte-DQ3ivDeH-pP8_2byG.js} +1 -1
- package/dist/{svgDrawCommon-0ee1b4e9-CUz2naLo-Bok-bE1n.js → svgDrawCommon-0ee1b4e9-rbw7BPwi-Do627-9u.js} +1 -1
- package/dist/{swift-x2DVyVjN-Bz5PC9YM.js → swift-DZjxY9Jt-5mfhvx3X.js} +2 -2
- package/dist/{timeline-definition-d977decf-BSETSy08-C-kk4S0n.js → timeline-definition-d977decf-CtlVf6FF-DxPrMfc5.js} +2 -2
- package/dist/{vue-DoU_Nr9K-Cj2gXb1y.js → vue-CdtKg2_f-Bw_hVDv3.js} +7 -7
- package/dist/{vue-html-iC7i5f9n-Cfh5ktA3.js → vue-html-CSuHLn0Q-CWbLQcnI.js} +1 -1
- package/dist/{xychartDiagram-e50adddc-C82b8cby-B-sVwnzU.js → xychartDiagram-e50adddc-B9qgoJob-BowGMlAq.js} +4 -4
- package/dist/{yaml-PGla5xPP-HJurM_FJ.js → yaml-BEu5ErCD-82IBfEy4.js} +1 -1
- package/package.json +6 -6
- package/dist/go-BEtjQGEI-BEtjQGEI.js +0 -7
- package/dist/mermaid-D-iYNLeg-D-iYNLeg.js +0 -7
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as U, v as I, A as F, E as M, t as H, I as Q, _ as X, C as Z } from "./styles-b2c874b6-
|
|
2
|
-
import { Y as tt } from "./graph-
|
|
3
|
-
import { l as p, c as S, h as A, y as et, i as st, j as B } from "./index-
|
|
4
|
-
import { b as ot } from "./index-8fae9850-
|
|
5
|
-
import "./layout-
|
|
1
|
+
import { D as U, v as I, A as F, E as M, t as H, I as Q, _ as X, C as Z } from "./styles-b2c874b6-pUAi9-OK-C2ht5iWP.js";
|
|
2
|
+
import { Y as tt } from "./graph-Ch18bQn5-DLZlxaOx.js";
|
|
3
|
+
import { l as p, c as S, h as A, y as et, i as st, j as B } from "./index-DwEVUtAn.js";
|
|
4
|
+
import { b as ot } from "./index-8fae9850-kUIz8xNo-DThnA9iZ.js";
|
|
5
|
+
import "./layout-BzV691RN-Dwqgf_2b.js";
|
|
6
6
|
const w = "rect", k = "rectWithTitle", at = "start", it = "end", rt = "divider", nt = "roundedWithTitle", dt = "note", lt = "noteGroup", u = "statediagram", ct = "state", pt = `${u}-${ct}`, j = "transition", gt = "note", bt = "note-edge", ht = `${j} ${bt}`, ut = `${u}-${gt}`, yt = "cluster", ft = `${u}-${yt}`, $t = "cluster-alt", mt = `${u}-${$t}`, O = "parent", P = "note", xt = "state", E = "----", wt = `${E}${P}`, L = `${E}${O}`, W = "fill:none", G = "fill: #333", Y = "c", q = "text", J = "normal";
|
|
7
7
|
let T = {}, c = 0;
|
|
8
8
|
const Tt = function(t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as ut, g as nt, a as rt, b as at, c as F, v as ot, x as ct, j as L, z as lt, l as ht, y as qe, h as M, d as At, aq as xe } from "./index-
|
|
1
|
+
import { s as ut, g as nt, a as rt, b as at, c as F, v as ot, x as ct, j as L, z as lt, l as ht, y as qe, h as M, d as At, aq as xe } from "./index-DwEVUtAn.js";
|
|
2
2
|
var Ie = function() {
|
|
3
3
|
var e = function(S, n, c, i) {
|
|
4
4
|
for (c = c || {}, i = S.length; i--; c[S[i]] = n)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Y as P } from "./graph-
|
|
2
|
-
import { o as A, l as g, p as F, c as _, j as D, q as $, r as C, h as T, y as G, t as V, af as j, ag as M, ah as R, ai as Y, aj as U, J } from "./index-
|
|
3
|
-
import { b as Q } from "./index-8fae9850-
|
|
4
|
-
import { t as W } from "./channel-
|
|
1
|
+
import { Y as P } from "./graph-Ch18bQn5-DLZlxaOx.js";
|
|
2
|
+
import { o as A, l as g, p as F, c as _, j as D, q as $, r as C, h as T, y as G, t as V, af as j, ag as M, ah as R, ai as Y, aj as U, J } from "./index-DwEVUtAn.js";
|
|
3
|
+
import { b as Q } from "./index-8fae9850-kUIz8xNo-DThnA9iZ.js";
|
|
4
|
+
import { t as W } from "./channel-BX3TjCqa-BSbXCWf0.js";
|
|
5
5
|
function X(e) {
|
|
6
6
|
return typeof e == "string" ? new j([document.querySelectorAll(e)], [document.documentElement]) : new j([R(e)], M);
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as F, g as zt, s as Ut, a as Ht, b as Mt, v as Xt, x as Jt, l as $, j as ct, z as Kt, b0 as Vt } from "./index-
|
|
1
|
+
import { c as F, g as zt, s as Ut, a as Ht, b as Mt, v as Xt, x as Jt, l as $, j as ct, z as Kt, b0 as Vt } from "./index-DwEVUtAn.js";
|
|
2
2
|
var gt = function() {
|
|
3
3
|
var t = function(T, i, r, o) {
|
|
4
4
|
for (r = r || {}, o = T.length; o--; r[T[o]] = i)
|
|
@@ -8,7 +8,7 @@ import r from "./scss-DjxgF7f7-DGTzny6p.js";
|
|
|
8
8
|
import c from "./less-Dh5RK2yA-Dh5RK2yA.js";
|
|
9
9
|
import l from "./postcss-Cz2vjx_4-Cz2vjx_4.js";
|
|
10
10
|
import m from "./pug-DbFO7359-duYD8LVa.js";
|
|
11
|
-
import o from "./markdown-
|
|
11
|
+
import o from "./markdown-QuoPq0lm-QuoPq0lm.js";
|
|
12
12
|
const d = Object.freeze({ displayName: "Svelte", fileTypes: ["svelte"], injections: { "L:(meta.script.svelte | meta.style.svelte) (meta.lang.js | meta.lang.javascript) - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.js", end: "(?=</)", name: "meta.embedded.block.svelte", patterns: [{ include: "source.js" }] }] }, "L:(meta.script.svelte | meta.style.svelte) (meta.lang.ts | meta.lang.typescript) - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.ts", end: "(?=</)", name: "meta.embedded.block.svelte", patterns: [{ include: "source.ts" }] }] }, "L:(meta.script.svelte | meta.style.svelte) meta.lang.coffee - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.coffee", end: "(?=</)", name: "meta.embedded.block.svelte", patterns: [{ include: "source.coffee" }] }] }, "L:(source.ts, source.js, source.coffee)": { patterns: [{ match: `(?<![_$./'"[:alnum:]])\\$(?=[_[:alpha:]][_$[:alnum:]]*)`, name: "punctuation.definition.variable.svelte" }, { match: `(?<![_$./'"[:alnum:]])(\\$\\$)(?=props|restProps|slots)`, name: "punctuation.definition.variable.svelte" }] }, "L:meta.script.svelte - meta.lang - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.js", end: "(?=</)", name: "meta.embedded.block.svelte", patterns: [{ include: "source.js" }] }] }, "L:meta.style.svelte - meta.lang - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.css", end: "(?=</)", name: "meta.embedded.block.svelte", patterns: [{ include: "source.css" }] }] }, "L:meta.style.svelte meta.lang.css - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.css", end: "(?=</)", name: "meta.embedded.block.svelte", patterns: [{ include: "source.css" }] }] }, "L:meta.style.svelte meta.lang.less - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.css.less", end: "(?=</)", name: "meta.embedded.block.svelte", patterns: [{ include: "source.css.less" }] }] }, "L:meta.style.svelte meta.lang.postcss - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.css.postcss", end: "(?=</)", name: "meta.embedded.block.svelte", patterns: [{ include: "source.css.postcss" }] }] }, "L:meta.style.svelte meta.lang.sass - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.sass", end: "(?=</)", name: "meta.embedded.block.svelte", patterns: [{ include: "source.sass" }] }] }, "L:meta.style.svelte meta.lang.scss - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.css.scss", end: "(?=</)", name: "meta.embedded.block.svelte", patterns: [{ include: "source.css.scss" }] }] }, "L:meta.style.svelte meta.lang.stylus - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.stylus", end: "(?=</)", name: "meta.embedded.block.svelte", patterns: [{ include: "source.stylus" }] }] }, "L:meta.template.svelte - meta.lang - (meta source)": { patterns: [{ begin: "(?<=>)\\s", end: "(?=</template)", patterns: [{ include: "#scope" }] }] }, "L:meta.template.svelte meta.lang.pug - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "text.pug", end: "(?=</)", name: "meta.embedded.block.svelte", patterns: [{ include: "text.pug" }] }] } }, name: "svelte", patterns: [{ include: "#scope" }], repository: { attributes: { patterns: [{ include: "#attributes-directives" }, { include: "#attributes-keyvalue" }, { include: "#attributes-interpolated" }] }, "attributes-directives": { begin: "(?<!<)(on|use|bind|transition|in|out|animate|let|class|style)(:)(?:((?:--)?[_$[:alpha:]][_\\-$[:alnum:]]*(?=\\s*=))|((?:--)?[_$[:alpha:]][_\\-$[:alnum:]]*))((\\|\\w+)*)", beginCaptures: { 1: { patterns: [{ include: "#attributes-directives-keywords" }] }, 2: { name: "punctuation.definition.keyword.svelte" }, 3: { patterns: [{ include: "#attributes-directives-types-assigned" }] }, 4: { patterns: [{ include: "#attributes-directives-types" }] }, 5: { patterns: [{ match: "\\w+", name: "support.function.svelte" }, { match: "\\|", name: "punctuation.separator.svelte" }] } }, end: "(?=\\s*+[^=\\s])", name: "meta.directive.$1.svelte", patterns: [{ begin: "=", beginCaptures: { 0: { name: "punctuation.separator.key-value.svelte" } }, end: "(?<=[^\\s=])(?!\\s*=)|(?=/?>)", patterns: [{ include: "#attributes-value" }] }] }, "attributes-directives-keywords": { patterns: [{ match: "on|use|bind", name: "keyword.control.svelte" }, { match: "transition|in|out|animate", name: "keyword.other.animation.svelte" }, { match: "let", name: "storage.type.svelte" }, { match: "class|style", name: "entity.other.attribute-name.svelte" }] }, "attributes-directives-types": { patterns: [{ match: "(?<=(on):).*$", name: "entity.name.type.svelte" }, { match: "(?<=(bind):).*$", name: "variable.parameter.svelte" }, { match: "(?<=(use|transition|in|out|animate):).*$", name: "variable.function.svelte" }, { match: "(?<=(let|class|style):).*$", name: "variable.parameter.svelte" }] }, "attributes-directives-types-assigned": { patterns: [{ match: "(?<=(bind):)this$", name: "variable.language.svelte" }, { match: "(?<=(bind):).*$", name: "entity.name.type.svelte" }, { match: "(?<=(class):).*$", name: "entity.other.attribute-name.class.svelte" }, { match: "(?<=(style):).*$", name: "support.type.property-name.svelte" }, { include: "#attributes-directives-types" }] }, "attributes-generics": { begin: `(generics)(=)(["'])`, beginCaptures: { 1: { name: "entity.other.attribute-name.svelte" }, 2: { name: "punctuation.separator.key-value.svelte" }, 3: { name: "punctuation.definition.string.begin.svelte" } }, contentName: "meta.embedded.expression.svelte source.ts", end: "(\\3)", endCaptures: { 1: { name: "punctuation.definition.string.end.svelte" } }, patterns: [{ include: "#type-parameters" }] }, "attributes-interpolated": { begin: "(?<!:|=)\\s*({)", captures: { 1: { name: "entity.other.attribute-name.svelte" } }, contentName: "meta.embedded.expression.svelte source.ts", end: "(\\})", patterns: [{ include: "source.ts" }] }, "attributes-keyvalue": { begin: "((?:--)?[_$[:alpha:]][_\\-$[:alnum:]]*)", beginCaptures: { 0: { patterns: [{ match: "--.*", name: "support.type.property-name.svelte" }, { match: ".*", name: "entity.other.attribute-name.svelte" }] } }, end: "(?=\\s*+[^=\\s])", name: "meta.attribute.$1.svelte", patterns: [{ begin: "=", beginCaptures: { 0: { name: "punctuation.separator.key-value.svelte" } }, end: "(?<=[^\\s=])(?!\\s*=)|(?=/?>)", patterns: [{ include: "#attributes-value" }] }] }, "attributes-value": { patterns: [{ include: "#interpolation" }, { captures: { 1: { name: "punctuation.definition.string.begin.svelte" }, 2: { name: "constant.numeric.decimal.svelte" }, 3: { name: "punctuation.definition.string.end.svelte" }, 4: { name: "constant.numeric.decimal.svelte" } }, match: `(?:(['"])([0-9._]+[\\w%]{,4})(\\1))|(?:([0-9._]+[\\w%]{,4})(?=\\s|/?>))` }, { match: "([^\\s\"'=<>`/]|/(?!>))+", name: "string.unquoted.svelte", patterns: [{ include: "#interpolation" }] }, { begin: `(['"])`, beginCaptures: { 0: { name: "punctuation.definition.string.begin.svelte" } }, end: "\\1", endCaptures: { 0: { name: "punctuation.definition.string.end.svelte" } }, name: "string.quoted.svelte", patterns: [{ include: "#interpolation" }] }] }, comments: { begin: "<!--", captures: { 0: { name: "punctuation.definition.comment.svelte" } }, end: "-->", name: "comment.block.svelte", patterns: [{ begin: "(@)(component)", beginCaptures: { 1: { name: "punctuation.definition.keyword.svelte" }, 2: { name: "storage.type.class.component.svelte keyword.declaration.class.component.svelte" } }, contentName: "comment.block.documentation.svelte", end: "(?=-->)", patterns: [{ captures: { 0: { patterns: [{ include: "text.html.markdown" }] } }, match: ".*?(?=-->)" }, { include: "text.html.markdown" }] }, { match: "\\G-?>|<!--(?!>)|<!-(?=-->)|--!>", name: "invalid.illegal.characters-not-allowed-here.svelte" }] }, destructuring: { patterns: [{ begin: "(?={)", end: "(?<=})", name: "meta.embedded.expression.svelte source.ts", patterns: [{ include: "source.ts#object-binding-pattern" }] }, { begin: "(?=\\[)", end: "(?<=\\])", name: "meta.embedded.expression.svelte source.ts", patterns: [{ include: "source.ts#array-binding-pattern" }] }] }, "destructuring-const": { patterns: [{ begin: "(?={)", end: "(?<=})", name: "meta.embedded.expression.svelte source.ts", patterns: [{ include: "source.ts#object-binding-pattern-const" }] }, { begin: "(?=\\[)", end: "(?<=\\])", name: "meta.embedded.expression.svelte source.ts", patterns: [{ include: "source.ts#array-binding-pattern-const" }] }] }, interpolation: { patterns: [{ begin: "\\{", beginCaptures: { 0: { name: "punctuation.section.embedded.begin.svelte" } }, contentName: "meta.embedded.expression.svelte source.ts", end: "\\}", endCaptures: { 0: { name: "punctuation.section.embedded.end.svelte" } }, patterns: [{ begin: "\\G\\s*(?={)", end: "(?<=})", patterns: [{ include: "source.ts#object-literal" }] }, { include: "source.ts" }] }] }, scope: { patterns: [{ include: "#comments" }, { include: "#special-tags" }, { include: "#tags" }, { include: "#interpolation" }, { begin: "(?<=>|})", end: "(?=<|{)", name: "text.svelte" }] }, "special-tags": { patterns: [{ include: "#special-tags-void" }, { include: "#special-tags-block-begin" }, { include: "#special-tags-block-end" }] }, "special-tags-block-begin": { begin: "({)\\s*(#([a-z]*))", beginCaptures: { 1: { name: "punctuation.definition.block.begin.svelte" }, 2: { patterns: [{ include: "#special-tags-keywords" }] } }, end: "(})", endCaptures: { 0: { name: "punctuation.definition.block.end.svelte" } }, name: "meta.special.$3.svelte meta.special.start.svelte", patterns: [{ include: "#special-tags-modes" }] }, "special-tags-block-end": { begin: "({)\\s*(/([a-z]*))", beginCaptures: { 1: { name: "punctuation.definition.block.begin.svelte" }, 2: { patterns: [{ include: "#special-tags-keywords" }] } }, end: "(})", endCaptures: { 1: { name: "punctuation.definition.block.end.svelte" } }, name: "meta.special.$3.svelte meta.special.end.svelte" }, "special-tags-keywords": { captures: { 1: { name: "punctuation.definition.keyword.svelte" }, 2: { patterns: [{ match: "if|else\\s+if|else", name: "keyword.control.conditional.svelte" }, { match: "each|key", name: "keyword.control.svelte" }, { match: "await|then|catch", name: "keyword.control.flow.svelte" }, { match: "snippet", name: "keyword.control.svelte" }, { match: "html", name: "keyword.other.svelte" }, { match: "render", name: "keyword.other.svelte" }, { match: "debug", name: "keyword.other.debugger.svelte" }, { match: "const", name: "storage.type.svelte" }] } }, match: "([#@/:])(else\\s+if|[a-z]*)" }, "special-tags-modes": { patterns: [{ begin: "(?<=(if|key|then|catch|snippet|html|render).*?)\\G", end: "(?=})", name: "meta.embedded.expression.svelte source.ts", patterns: [{ include: "source.ts" }] }, { begin: "(?<=const.*?)\\G", end: "(?=})", patterns: [{ include: "#destructuring-const" }, { begin: "\\G\\s*([_$[:alpha:]][_$[:alnum:]]+)\\s*", beginCaptures: { 1: { name: "variable.other.constant.svelte" } }, end: "(?=\\=)" }, { begin: "(?=\\=)", end: "(?=})", name: "meta.embedded.expression.svelte source.ts", patterns: [{ include: "source.ts" }] }] }, { begin: "(?<=each.*?)\\G", end: "(?=})", patterns: [{ begin: "\\G\\s*?(?=\\S)", contentName: "meta.embedded.expression.svelte source.ts", end: "(?=(?:^\\s*|\\s+)(as))", patterns: [{ include: "source.ts" }] }, { begin: "(as)", beginCaptures: { 1: { name: "keyword.control.as.svelte" } }, end: "(?=})", patterns: [{ include: "#destructuring" }, { begin: "\\(", captures: { 0: { name: "meta.brace.round.svelte" } }, contentName: "meta.embedded.expression.svelte source.ts", end: "\\)|(?=})", patterns: [{ include: "source.ts" }] }, { captures: { 1: { name: "meta.embedded.expression.svelte source.ts", patterns: [{ include: "source.ts" }] } }, match: "(\\s*([_$[:alpha:]][_$[:alnum:]]*)\\s*)" }, { match: ",", name: "punctuation.separator.svelte" }] }] }, { begin: "(?<=await.*?)\\G", end: "(?=})", patterns: [{ begin: "\\G\\s*?(?=\\S)", contentName: "meta.embedded.expression.svelte source.ts", end: "\\s+(then)|(?=})", endCaptures: { 1: { name: "keyword.control.flow.svelte" } }, patterns: [{ include: "source.ts" }] }, { begin: "(?<=then\\b)", contentName: "meta.embedded.expression.svelte source.ts", end: "(?=})", patterns: [{ include: "source.ts" }] }] }, { begin: "(?<=debug.*?)\\G", end: "(?=})", patterns: [{ captures: { 0: { name: "meta.embedded.expression.svelte source.ts", patterns: [{ include: "source.ts" }] } }, match: "[_$[:alpha:]][_$[:alnum:]]*" }, { match: ",", name: "punctuation.separator.svelte" }] }] }, "special-tags-void": { begin: "({)\\s*((?:[@:])(else\\s+if|[a-z]*))", beginCaptures: { 1: { name: "punctuation.definition.block.begin.svelte" }, 2: { patterns: [{ include: "#special-tags-keywords" }] } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.block.end.svelte" } }, name: "meta.special.$3.svelte", patterns: [{ include: "#special-tags-modes" }] }, tags: { patterns: [{ include: "#tags-lang" }, { include: "#tags-void" }, { include: "#tags-general-end" }, { include: "#tags-general-start" }] }, "tags-end-node": { captures: { 1: { name: "meta.tag.end.svelte punctuation.definition.tag.begin.svelte" }, 2: { name: "meta.tag.end.svelte", patterns: [{ include: "#tags-name" }] }, 3: { name: "meta.tag.end.svelte punctuation.definition.tag.end.svelte" }, 4: { name: "meta.tag.start.svelte punctuation.definition.tag.end.svelte" } }, match: "(</)(.*?)\\s*(>)|(/>)" }, "tags-general-end": { begin: "(</)([^/\\s>]*)", beginCaptures: { 1: { name: "meta.tag.end.svelte punctuation.definition.tag.begin.svelte" }, 2: { name: "meta.tag.end.svelte", patterns: [{ include: "#tags-name" }] } }, end: "(>)", endCaptures: { 1: { name: "meta.tag.end.svelte punctuation.definition.tag.end.svelte" } }, name: "meta.scope.tag.$2.svelte" }, "tags-general-start": { begin: "(<)([^/\\s>/]*)", beginCaptures: { 0: { patterns: [{ include: "#tags-start-node" }] } }, end: "(/?>)", endCaptures: { 1: { name: "meta.tag.start.svelte punctuation.definition.tag.end.svelte" } }, name: "meta.scope.tag.$2.svelte", patterns: [{ include: "#tags-start-attributes" }] }, "tags-lang": { begin: "<(script|style|template)", beginCaptures: { 0: { patterns: [{ include: "#tags-start-node" }] } }, end: "</\\1\\s*>|/>", endCaptures: { 0: { patterns: [{ include: "#tags-end-node" }] } }, name: "meta.$1.svelte", patterns: [{ begin: `\\G(?=\\s*[^>]*?(type|lang)\\s*=\\s*(['"]|)(?:text/)?(\\w+)\\2)`, end: "(?=</|/>)", name: "meta.lang.$3.svelte", patterns: [{ include: "#tags-lang-start-attributes" }] }, { include: "#tags-lang-start-attributes" }] }, "tags-lang-start-attributes": { begin: "\\G", end: "(?=/>)|>", endCaptures: { 0: { name: "punctuation.definition.tag.end.svelte" } }, name: "meta.tag.start.svelte", patterns: [{ include: "#attributes-generics" }, { include: "#attributes" }] }, "tags-name": { patterns: [{ captures: { 1: { name: "keyword.control.svelte" }, 2: { name: "punctuation.definition.keyword.svelte" }, 3: { name: "entity.name.tag.svelte" } }, match: "(svelte)(:)([a-z][\\w0-9:-]*)" }, { match: "slot", name: "keyword.control.svelte" }, { match: "[A-Z][a-zA-Z0-9_]*", name: "support.class.component.svelte" }, { match: "[a-z][\\w0-9:]*-[\\w0-9:-]*", name: "meta.tag.custom.svelte entity.name.tag.svelte" }, { match: "[a-z][\\w0-9:-]*", name: "entity.name.tag.svelte" }] }, "tags-start-attributes": { begin: "\\G", end: "(?=/?>)", name: "meta.tag.start.svelte", patterns: [{ include: "#attributes" }] }, "tags-start-node": { captures: { 1: { name: "punctuation.definition.tag.begin.svelte" }, 2: { patterns: [{ include: "#tags-name" }] } }, match: "(<)([^/\\s>/]*)", name: "meta.tag.start.svelte" }, "tags-void": { begin: "(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\\s|/?>)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.svelte" }, 2: { name: "entity.name.tag.svelte" } }, end: "/?>", endCaptures: { 0: { name: "punctuation.definition.tag.begin.svelte" } }, name: "meta.tag.void.svelte", patterns: [{ include: "#attributes" }] }, "type-parameters": { name: "meta.type.parameters.ts", patterns: [{ include: "source.ts#comment" }, { match: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(extends|in|out|const)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", name: "storage.modifier.ts" }, { include: "source.ts#type" }, { include: "source.ts#punctuation-comma" }, { match: "(=)(?!>)", name: "keyword.operator.assignment.ts" }] } }, scopeName: "source.svelte", embeddedLangs: ["javascript", "typescript", "coffee", "stylus", "sass", "css", "scss", "less", "postcss", "pug", "markdown"] });
|
|
13
13
|
var C = [
|
|
14
14
|
...e,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as i, n as o } from "./index-
|
|
1
|
+
import { m as i, n as o } from "./index-DwEVUtAn.js";
|
|
2
2
|
const x = (e, t) => {
|
|
3
3
|
const r = e.append("rect");
|
|
4
4
|
if (r.attr("x", t.x), r.attr("y", t.y), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("width", t.width), r.attr("height", t.height), t.rx !== void 0 && r.attr("rx", t.rx), t.ry !== void 0 && r.attr("ry", t.ry), t.attrs !== void 0)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = Object.freeze({ displayName: "Swift", name: "swift", patterns: [{ include: "#root" }], repository: { "async-throws": { captures: { 1: { name: "invalid.illegal.await-must-precede-throws.swift" }, 2: { name: "storage.modifier.exception.swift" }, 3: { name: "storage.modifier.async.swift" } }, match: "\\b(?:(throws\\s+async|rethrows\\s+async)|(throws|rethrows)|(async))\\b" }, attributes: { patterns: [{ begin: "((@)available)(\\()", beginCaptures: { 1: { name: "storage.modifier.attribute.swift" }, 2: { name: "punctuation.definition.attribute.swift" }, 3: { name: "punctuation.definition.arguments.begin.swift" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.arguments.end.swift" } }, name: "meta.attribute.available.swift", patterns: [{ captures: { 1: { name: "keyword.other.platform.os.swift" }, 2: { name: "constant.numeric.swift" } }, match: "\\b(swift|(?:iOS|macOS|OSX|watchOS|tvOS|UIKitForMac)(?:ApplicationExtension)?)\\b(?:\\s+([0-9]+(?:\\.[0-9]+)*\\b))?" }, { begin: "\\b(introduced|deprecated|obsoleted)\\s*(:)\\s*", beginCaptures: { 1: { name: "keyword.other.swift" }, 2: { name: "punctuation.separator.key-value.swift" } }, end: "(?!\\G)", patterns: [{ match: "\\b[0-9]+(?:\\.[0-9]+)*\\b", name: "constant.numeric.swift" }] }, { begin: '\\b(message|renamed)\\s*(:)\\s*(?=")', beginCaptures: { 1: { name: "keyword.other.swift" }, 2: { name: "punctuation.separator.key-value.swift" } }, end: "(?!\\G)", patterns: [{ include: "#literals" }] }, { captures: { 1: { name: "keyword.other.platform.all.swift" }, 2: { name: "keyword.other.swift" }, 3: { name: "invalid.illegal.character-not-allowed-here.swift" } }, match: "(?:(\\*)|\\b(deprecated|unavailable|noasync)\\b)\\s*(.*?)(?=[,)])" }] }, { begin: "((@)objc)(\\()", beginCaptures: { 1: { name: "storage.modifier.attribute.swift" }, 2: { name: "punctuation.definition.attribute.swift" }, 3: { name: "punctuation.definition.arguments.begin.swift" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.arguments.end.swift" } }, name: "meta.attribute.objc.swift", patterns: [{ captures: { 1: { name: "invalid.illegal.missing-colon-after-selector-piece.swift" } }, match: "\\w*(?::(?:\\w*:)*(\\w*))?", name: "entity.name.function.swift" }] }, { begin: "(@)(?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>)", beginCaptures: { 0: { name: "storage.modifier.attribute.swift" }, 1: { name: "punctuation.definition.attribute.swift" }, 2: { name: "punctuation.definition.identifier.swift" }, 3: { name: "punctuation.definition.identifier.swift" } }, comment: "any other attribute", end: "(?!\\G\\()", name: "meta.attribute.swift", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.arguments.begin.swift" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.arguments.end.swift" } }, name: "meta.arguments.attribute.swift", patterns: [{ include: "#expressions" }] }] }] }, "builtin-functions": { patterns: [{ comment: "Member functions in the standard library in Swift 3 which may be used with trailing closures and no parentheses", match: "(?<=\\.)(?:s(?:ort(?:ed)?|plit)|contains|index|partition|f(?:i(?:lter|rst)|orEach|latMap)|with(?:MutableCharacters|CString|U(?:nsafe(?:Mutable(?:BufferPointer|Pointer(?:s|To(?:Header|Elements)))|BufferPointer)|TF8Buffer))|m(?:in|a(?:p|x)))(?=\\s*[({])\\b", name: "support.function.swift" }, { comment: "Member functions in the standard library in Swift 3", match: "(?<=\\.)(?:s(?:ymmetricDifference|t(?:oreBytes|arts|ride)|ortInPlace|u(?:ccessor|ffix|btract(?:ing|InPlace|WithOverflow)?)|quareRoot|amePosition)|h(?:oldsUnique(?:Reference|OrPinnedReference)|as(?:Suffix|Prefix))|ne(?:gate(?:d)?|xt)|c(?:o(?:untByEnumerating|py(?:Bytes)?)|lamp(?:ed)?|reate)|t(?:o(?:IntMax|Opaque|UIntMax)|ake(?:RetainedValue|UnretainedValue)|r(?:uncatingRemainder|a(?:nscodedLength|ilSurrogate)))|i(?:s(?:MutableAndUniquelyReferenced(?:OrPinned)?|S(?:trictSu(?:perset(?:Of)?|bset(?:Of)?)|u(?:perset(?:Of)?|bset(?:Of)?))|Continuation|T(?:otallyOrdered|railSurrogate)|Disjoint(?:With)?|Unique(?:Reference|lyReferenced(?:OrPinned)?)|Equal|Le(?:ss(?:ThanOrEqualTo)?|adSurrogate))|n(?:sert(?:ContentsOf)?|tersect(?:ion|InPlace)?|itialize(?:Memory|From)?|dex(?:Of|ForKey)))|o(?:verlaps|bjectAt)|d(?:i(?:stance(?:To)?|vide(?:d|WithOverflow)?)|e(?:s(?:cendant|troy)|code(?:CString)?|initialize|alloc(?:ate(?:Capacity)?)?)|rop(?:First|Last))|u(?:n(?:ion(?:InPlace)?|derestimateCount|wrappedOrError)|p(?:date(?:Value)?|percased))|join(?:ed|WithSeparator)|p(?:op(?:First|Last)|ass(?:Retained|Unretained)|re(?:decessor|fix))|e(?:scape(?:d)?|n(?:code|umerate(?:d)?)|lementsEqual|xclusiveOr(?:InPlace)?)|f(?:orm(?:Remainder|S(?:ymmetricDifference|quareRoot)|TruncatingRemainder|In(?:tersection|dex)|Union)|latten|rom(?:CString(?:RepairingIllFormedUTF8)?|Opaque))|w(?:i(?:thMemoryRebound|dth)|rite(?:To)?)|l(?:o(?:wercased|ad)|e(?:adSurrogate|xicographical(?:Compare|lyPrecedes)))|a(?:ss(?:ign(?:BackwardFrom|From)?|umingMemoryBound)|d(?:d(?:ing(?:Product)?|Product|WithOverflow)?|vanced(?:By)?)|utorelease|ppend(?:ContentsOf)?|lloc(?:ate)?|bs)|r(?:ound(?:ed)?|e(?:serveCapacity|tain|duce|place(?:Range|Subrange)?|verse(?:d)?|quest(?:NativeBuffer|UniqueMutableBackingBuffer)|lease|m(?:ove(?:Range|Subrange|Value(?:ForKey)?|First|Last|A(?:tIndex|ll))?|ainder(?:WithOverflow)?)))|ge(?:nerate|t(?:Objects|Element))|m(?:in(?:imum(?:Magnitude)?|Element)|ove(?:Initialize(?:Memory|BackwardFrom|From)?|Assign(?:From)?)?|ultipl(?:y(?:WithOverflow)?|ied)|easure|a(?:ke(?:Iterator|Description)|x(?:imum(?:Magnitude)?|Element)))|bindMemory)(?=\\s*\\()", name: "support.function.swift" }, { comment: "Member functions in the standard library in Swift 2 only", match: "(?<=\\.)(?:s(?:uperclassMirror|amePositionIn|tartsWith)|nextObject|c(?:haracterAtIndex|o(?:untByEnumeratingWithState|pyWithZone)|ustom(?:Mirror|PlaygroundQuickLook))|is(?:EmptyInput|ASCII)|object(?:Enumerator|ForKey|AtIndex)|join|put|keyEnumerator|withUnsafeMutablePointerToValue|length|getMirror|m(?:oveInitializeAssignFrom|ember))(?=\\s*\\()", name: "support.function.swift" }] }, "builtin-global-functions": { patterns: [{ begin: "\\b(type)(\\()\\s*(of)(:)", beginCaptures: { 1: { name: "support.function.dynamic-type.swift" }, 2: { name: "punctuation.definition.arguments.begin.swift" }, 3: { name: "support.variable.parameter.swift" }, 4: { name: "punctuation.separator.argument-label.begin.swift" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.arguments.end.swift" } }, patterns: [{ include: "#expressions" }] }, { comment: "Global functions available in Swift 3 which may be used with trailing closures and no parentheses", match: "\\b(?:anyGenerator|autoreleasepool)(?=\\s*[({])\\b", name: "support.function.swift" }, { comment: "Global functions available in Swift 3", match: "\\b(?:s(?:tride(?:of(?:Value)?)?|izeof(?:Value)?|equence|wap)|numericCast|transcode|is(?:UniquelyReferenced(?:NonObjC)?|KnownUniquelyReferenced)|zip|d(?:ump|ebugPrint)|unsafe(?:BitCast|Downcast|Unwrap|Address(?:Of)?)|pr(?:int|econdition(?:Failure)?)|fatalError|with(?:Unsafe(?:MutablePointer|Pointer)|ExtendedLifetime|VaList)|a(?:ssert(?:ionFailure)?|lignof(?:Value)?|bs)|re(?:peatElement|adLine)|getVaList|m(?:in|ax))(?=\\s*\\()", name: "support.function.swift" }, { comment: "Global functions available in Swift 2 only", match: "\\b(?:s(?:ort|uffix|pli(?:ce|t))|insert|overlaps|d(?:istance|rop(?:First|Last))|join|prefix|extend|withUnsafe(?:MutablePointers|Pointers)|lazy|advance|re(?:flect|move(?:Range|Last|A(?:tIndex|ll))))(?=\\s*\\()", name: "support.function.swift" }] }, "builtin-properties": { patterns: [{ comment: "The simpler (?<=\\bProcess\\.|\\bCommandLine\\.) breaks VS Code / Atom, see https://github.com/textmate/swift.tmbundle/issues/29", match: "(?<=^Process\\.|\\WProcess\\.|^CommandLine\\.|\\WCommandLine\\.)(arguments|argc|unsafeArgv)", name: "support.variable.swift" }, { comment: "Properties in the standard library in Swift 3", match: "(?<=\\.)(?:s(?:t(?:artIndex|ri(?:ngValue|de))|i(?:ze|gn(?:BitIndex|ificand(?:Bit(?:Count|Pattern)|Width)?|alingNaN)?)|u(?:perclassMirror|mmary|bscriptBaseAddress))|h(?:eader|as(?:hValue|PointerRepresentation))|n(?:ulTerminatedUTF8|ext(?:Down|Up)|a(?:n|tiveOwner))|c(?:haracters|ount(?:TrailingZeros)?|ustom(?:Mirror|PlaygroundQuickLook)|apacity)|i(?:s(?:S(?:ign(?:Minus|aling(?:NaN)?)|ubnormal)|N(?:ormal|aN)|Canonical|Infinite|Zero|Empty|Finite|ASCII)|n(?:dices|finity)|dentity)|owner|de(?:scription|bugDescription)|u(?:n(?:safelyUnwrapped|icodeScalar(?:s)?|derestimatedCount)|tf(?:16|8(?:Start|C(?:String|odeUnitCount))?)|intValue|ppercaseString|lp(?:OfOne)?)|p(?:i|ointee)|e(?:ndIndex|lements|xponent(?:Bit(?:Count|Pattern))?)|value(?:s)?|keys|quietNaN|f(?:irst(?:ElementAddress(?:IfContiguous)?)?|loatingPointClass)|l(?:ittleEndian|owercaseString|eastNo(?:nzeroMagnitude|rmalMagnitude)|a(?:st|zy))|a(?:l(?:ignment|l(?:ocatedElementCount|Zeros))|rray(?:PropertyIsNativeTypeChecked)?)|ra(?:dix|wValue)|greatestFiniteMagnitude|m(?:in|emory|ax)|b(?:yteS(?:ize|wapped)|i(?:nade|tPattern|gEndian)|uffer|ase(?:Address)?))\\b", name: "support.variable.swift" }, { comment: "Properties in the standard library in Swift 2 only", match: "(?<=\\.)(?:boolValue|disposition|end|objectIdentifier|quickLookObject|start|valueType)\\b", name: "support.variable.swift" }, { comment: "Enum cases in the standard library - note that there is some overlap between these and the properties", match: "(?<=\\.)(?:s(?:calarValue|i(?:ze|gnalingNaN)|o(?:und|me)|uppressed|prite|et)|n(?:one|egative(?:Subnormal|Normal|Infinity|Zero))|c(?:ol(?:or|lection)|ustomized)|t(?:o(?:NearestOr(?:Even|AwayFromZero)|wardZero)|uple|ext)|i(?:nt|mage)|optional|d(?:ictionary|o(?:uble|wn))|u(?:Int|p|rl)|p(?:o(?:sitive(?:Subnormal|Normal|Infinity|Zero)|int)|lus)|e(?:rror|mptyInput)|view|quietNaN|float|a(?:ttributedString|wayFromZero)|r(?:ectangle|ange)|generated|minus|b(?:ool|ezierPath))\\b", name: "support.variable.swift" }] }, "builtin-types": { comment: "Types provided in the standard library", patterns: [{ include: "#builtin-types-builtin-class-type" }, { include: "#builtin-types-builtin-enum-type" }, { include: "#builtin-types-builtin-protocol-type" }, { include: "#builtin-types-builtin-struct-type" }, { include: "#builtin-types-builtin-typealias" }, { match: "\\bAny\\b", name: "support.type.any.swift" }] }, "builtin-types-builtin-class-type": { comment: "Builtin class types", match: "\\b(Managed(Buffer|ProtoBuffer)|NonObjectiveCBase|AnyGenerator)\\b", name: "support.class.swift" }, "builtin-types-builtin-enum-type": { patterns: [{ comment: "CommandLine is an enum, but it acts like a constant", match: "\\b(?:CommandLine|Process(?=\\.))\\b", name: "support.constant.swift" }, { comment: "The return type of a function that never returns", match: "\\bNever\\b", name: "support.constant.never.swift" }, { comment: "Enum types in the standard library in Swift 3", match: "\\b(?:ImplicitlyUnwrappedOptional|Representation|MemoryLayout|FloatingPointClassification|SetIndexRepresentation|SetIteratorRepresentation|FloatingPointRoundingRule|UnicodeDecodingResult|Optional|DictionaryIndexRepresentation|AncestorRepresentation|DisplayStyle|PlaygroundQuickLook|Never|FloatingPointSign|Bit|DictionaryIteratorRepresentation)\\b", name: "support.type.swift" }, { comment: "Enum types in the standard library in Swift 2 only", match: "\\b(?:MirrorDisposition|QuickLookObject)\\b", name: "support.type.swift" }] }, "builtin-types-builtin-protocol-type": { patterns: [{ comment: "Protocols in the standard library in Swift 3", match: "\\b(?:Ra(?:n(?:domAccess(?:Collection|Indexable)|geReplaceable(?:Collection|Indexable))|wRepresentable)|M(?:irrorPath|utable(?:Collection|Indexable))|Bi(?:naryFloatingPoint|twiseOperations|directional(?:Collection|Indexable))|S(?:tr(?:ideable|eamable)|igned(?:Number|Integer)|e(?:tAlgebra|quence))|Hashable|C(?:o(?:llection|mparable)|ustom(?:Reflectable|StringConvertible|DebugStringConvertible|PlaygroundQuickLookable|LeafReflectable)|VarArg)|TextOutputStream|I(?:n(?:teger(?:Arithmetic)?|dexable(?:Base)?)|teratorProtocol)|OptionSet|Un(?:signedInteger|icodeCodec)|E(?:quatable|rror|xpressibleBy(?:BooleanLiteral|String(?:Interpolation|Literal)|NilLiteral|IntegerLiteral|DictionaryLiteral|UnicodeScalarLiteral|ExtendedGraphemeClusterLiteral|FloatLiteral|ArrayLiteral))|FloatingPoint|L(?:osslessStringConvertible|azy(?:SequenceProtocol|CollectionProtocol))|A(?:nyObject|bsoluteValuable))\\b", name: "support.type.swift" }, { comment: "Protocols in the standard library in Swift 2 only", match: "\\b(?:Ran(?:domAccessIndexType|geReplaceableCollectionType)|GeneratorType|M(?:irror(?:Type|PathType)|utable(?:Sliceable|CollectionType))|B(?:i(?:twiseOperationsType|directionalIndexType)|oolean(?:Type|LiteralConvertible))|S(?:tring(?:InterpolationConvertible|LiteralConvertible)|i(?:nkType|gned(?:NumberType|IntegerType))|e(?:tAlgebraType|quenceType)|liceable)|NilLiteralConvertible|C(?:ollectionType|VarArgType)|Inte(?:rvalType|ger(?:Type|LiteralConvertible|ArithmeticType))|O(?:utputStreamType|ptionSetType)|DictionaryLiteralConvertible|Un(?:signedIntegerType|icode(?:ScalarLiteralConvertible|CodecType))|E(?:rrorType|xten(?:sibleCollectionType|dedGraphemeClusterLiteralConvertible))|F(?:orwardIndexType|loat(?:ingPointType|LiteralConvertible))|A(?:nyCollectionType|rrayLiteralConvertible))\\b", name: "support.type.swift" }] }, "builtin-types-builtin-struct-type": { patterns: [{ comment: "Structs in the standard library in Swift 3", match: "\\b(?:R(?:e(?:peat(?:ed)?|versed(?:RandomAccess(?:Collection|Index)|Collection|Index))|an(?:domAccessSlice|ge(?:Replaceable(?:RandomAccessSlice|BidirectionalSlice|Slice)|Generator)?))|Generator(?:Sequence|OfOne)|M(?:irror|utable(?:Ran(?:domAccessSlice|geReplaceable(?:RandomAccessSlice|BidirectionalSlice|Slice))|BidirectionalSlice|Slice)|anagedBufferPointer)|B(?:idirectionalSlice|ool)|S(?:t(?:aticString|ri(?:ng|deT(?:hrough(?:Generator|Iterator)?|o(?:Generator|Iterator)?)))|et(?:I(?:ndex|terator))?|lice)|HalfOpenInterval|C(?:haracter(?:View)?|o(?:ntiguousArray|untable(?:Range|ClosedRange)|llectionOfOne)|OpaquePointer|losed(?:Range(?:I(?:ndex|terator))?|Interval)|VaListPointer)|I(?:n(?:t(?:16|8|32|64)?|d(?:ices|ex(?:ing(?:Generator|Iterator))?))|terator(?:Sequence|OverOne)?)|Zip2(?:Sequence|Iterator)|O(?:paquePointer|bjectIdentifier)|D(?:ictionary(?:I(?:ndex|terator)|Literal)?|ouble|efault(?:RandomAccessIndices|BidirectionalIndices|Indices))|U(?:n(?:safe(?:RawPointer|Mutable(?:RawPointer|BufferPointer|Pointer)|BufferPointer(?:Generator|Iterator)?|Pointer)|icodeScalar(?:View)?|foldSequence|managed)|TF(?:16(?:View)?|8(?:View)?|32)|Int(?:16|8|32|64)?)|Join(?:Generator|ed(?:Sequence|Iterator))|PermutationGenerator|E(?:numerate(?:Generator|Sequence|d(?:Sequence|Iterator))|mpty(?:Generator|Collection|Iterator))|Fl(?:oat(?:80)?|atten(?:Generator|BidirectionalCollection(?:Index)?|Sequence|Collection(?:Index)?|Iterator))|L(?:egacyChildren|azy(?:RandomAccessCollection|Map(?:RandomAccessCollection|Generator|BidirectionalCollection|Sequence|Collection|Iterator)|BidirectionalCollection|Sequence|Collection|Filter(?:Generator|BidirectionalCollection|Sequence|Collection|I(?:ndex|terator))))|A(?:ny(?:RandomAccessCollection|Generator|BidirectionalCollection|Sequence|Hashable|Collection|I(?:ndex|terator))|utoreleasingUnsafeMutablePointer|rray(?:Slice)?))\\b", name: "support.type.swift" }, { comment: "Structs in the standard library in Swift 2 only", match: "\\b(?:R(?:everse(?:RandomAccess(?:Collection|Index)|Collection|Index)|awByte)|Map(?:Generator|Sequence|Collection)|S(?:inkOf|etGenerator)|Zip2Generator|DictionaryGenerator|Filter(?:Generator|Sequence|Collection(?:Index)?)|LazyForwardCollection|Any(?:RandomAccessIndex|BidirectionalIndex|Forward(?:Collection|Index)))\\b", name: "support.type.swift" }] }, "builtin-types-builtin-typealias": { patterns: [{ comment: "Typealiases in the standard library in Swift 3", match: "\\b(?:Raw(?:Significand|Exponent|Value)|B(?:ooleanLiteralType|uffer|ase)|S(?:t(?:orage|r(?:i(?:ngLiteralType|de)|eam(?:1|2)))|ubSequence)|NativeBuffer|C(?:hild(?:ren)?|Bool|S(?:hort|ignedChar)|odeUnit|Char(?:16|32)?|Int|Double|Unsigned(?:Short|Char|Int|Long(?:Long)?)|Float|WideChar|Long(?:Long)?)|I(?:n(?:t(?:Max|egerLiteralType)|d(?:ices|ex(?:Distance)?))|terator)|Distance|U(?:n(?:icodeScalar(?:Type|Index|View|LiteralType)|foldFirstSequence)|TF(?:16(?:Index|View)|8Index)|IntMax)|E(?:lement(?:s)?|x(?:tendedGraphemeCluster(?:Type|LiteralType)|ponent))|V(?:oid|alue)|Key|Float(?:32|LiteralType|64)|AnyClass)\\b", name: "support.type.swift" }, { comment: "Typealiases in the standard library in Swift 2 only", match: "\\b(?:Generator|PlaygroundQuickLook|UWord|Word)\\b", name: "support.type.swift" }] }, "code-block": { begin: "\\{", beginCaptures: { 0: { name: "punctuation.section.scope.begin.swift" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.section.scope.end.swift" } }, patterns: [{ include: "$self" }] }, comments: { patterns: [{ captures: { 1: { name: "punctuation.definition.comment.swift" } }, match: "\\A^(#!).*$\\n?", name: "comment.line.number-sign.swift" }, { begin: "/\\*\\*(?!/)", beginCaptures: { 0: { name: "punctuation.definition.comment.begin.swift" } }, end: "\\*/", endCaptures: { 0: { name: "punctuation.definition.comment.end.swift" } }, name: "comment.block.documentation.swift", patterns: [{ include: "#comments-nested" }] }, { begin: "/\\*:", beginCaptures: { 0: { name: "punctuation.definition.comment.begin.swift" } }, end: "\\*/", endCaptures: { 0: { name: "punctuation.definition.comment.end.swift" } }, name: "comment.block.documentation.playground.swift", patterns: [{ include: "#comments-nested" }] }, { begin: "/\\*", beginCaptures: { 0: { name: "punctuation.definition.comment.begin.swift" } }, end: "\\*/", endCaptures: { 0: { name: "punctuation.definition.comment.end.swift" } }, name: "comment.block.swift", patterns: [{ include: "#comments-nested" }] }, { match: "\\*/", name: "invalid.illegal.unexpected-end-of-block-comment.swift" }, { begin: "(^[ \\t]+)?(?=//)", beginCaptures: { 1: { name: "punctuation.whitespace.comment.leading.swift" } }, end: "(?!\\G)", patterns: [{ begin: "///", beginCaptures: { 0: { name: "punctuation.definition.comment.swift" } }, end: "$", name: "comment.line.triple-slash.documentation.swift" }, { begin: "//:", beginCaptures: { 0: { name: "punctuation.definition.comment.swift" } }, end: "$", name: "comment.line.double-slash.documentation.swift" }, { begin: "//", beginCaptures: { 0: { name: "punctuation.definition.comment.swift" } }, end: "$", name: "comment.line.double-slash.swift" }] }] }, "comments-nested": { begin: "/\\*", end: "\\*/", patterns: [{ include: "#comments-nested" }] }, "compiler-control": { patterns: [{ begin: "^\\s*(#)(if|elseif)\\s+(false)\\b.*?(?=$|//|/\\*)", beginCaptures: { 0: { name: "meta.preprocessor.conditional.swift" }, 1: { name: "punctuation.definition.preprocessor.swift" }, 2: { name: "keyword.control.import.preprocessor.conditional.swift" }, 3: { name: "constant.language.boolean.swift" } }, contentName: "comment.block.preprocessor.swift", end: "(?=^\\s*(#(elseif|else|endif)\\b))" }, { begin: "^\\s*(#)(if|elseif)\\s+", captures: { 1: { name: "punctuation.definition.preprocessor.swift" }, 2: { name: "keyword.control.import.preprocessor.conditional.swift" } }, end: "(?=\\s*(?://|/\\*))|$", name: "meta.preprocessor.conditional.swift", patterns: [{ match: "(&&|\\|\\|)", name: "keyword.operator.logical.swift" }, { match: "\\b(true|false)\\b", name: "constant.language.boolean.swift" }, { captures: { 1: { name: "keyword.other.condition.swift" }, 2: { name: "punctuation.definition.parameters.begin.swift" }, 3: { name: "support.constant.platform.architecture.swift" }, 4: { name: "punctuation.definition.parameters.end.swift" } }, match: "\\b(arch)\\s*(\\()\\s*(?:(arm|arm64|powerpc64|powerpc64le|i386|x86_64|s390x)|\\w+)\\s*(\\))" }, { captures: { 1: { name: "keyword.other.condition.swift" }, 2: { name: "punctuation.definition.parameters.begin.swift" }, 3: { name: "support.constant.platform.os.swift" }, 4: { name: "punctuation.definition.parameters.end.swift" } }, match: "\\b(os)\\s*(\\()\\s*(?:(macOS|OSX|iOS|tvOS|watchOS|Android|Linux|FreeBSD|Windows|PS4)|\\w+)\\s*(\\))" }, { captures: { 1: { name: "keyword.other.condition.swift" }, 2: { name: "punctuation.definition.parameters.begin.swift" }, 3: { name: "entity.name.type.module.swift" }, 4: { name: "punctuation.definition.parameters.end.swift" } }, match: "\\b(canImport)\\s*(\\()([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)(\\))" }, { begin: "\\b(targetEnvironment)\\s*(\\()", beginCaptures: { 1: { name: "keyword.other.condition.swift" }, 2: { name: "punctuation.definition.parameters.begin.swift" } }, end: "(\\))|$", endCaptures: { 1: { name: "punctuation.definition.parameters.end.swift" } }, patterns: [{ match: "\\b(simulator|UIKitForMac)\\b", name: "support.constant.platform.environment.swift" }] }, { begin: "\\b(swift|compiler)\\s*(\\()", beginCaptures: { 1: { name: "keyword.other.condition.swift" }, 2: { name: "punctuation.definition.parameters.begin.swift" } }, end: "(\\))|$", endCaptures: { 1: { name: "punctuation.definition.parameters.end.swift" } }, patterns: [{ match: ">=|<", name: "keyword.operator.comparison.swift" }, { match: "\\b[0-9]+(?:\\.[0-9]+)*\\b", name: "constant.numeric.swift" }] }] }, { captures: { 1: { name: "punctuation.definition.preprocessor.swift" }, 2: { name: "keyword.control.import.preprocessor.conditional.swift" }, 3: { patterns: [{ match: "\\S+", name: "invalid.illegal.character-not-allowed-here.swift" }] } }, match: "^\\s*(#)(else|endif)(.*?)(?=$|//|/\\*)", name: "meta.preprocessor.conditional.swift" }, { captures: { 1: { name: "punctuation.definition.preprocessor.swift" }, 2: { name: "keyword.control.import.preprocessor.sourcelocation.swift" }, 4: { name: "punctuation.definition.parameters.begin.swift" }, 5: { patterns: [{ begin: '(file)\\s*(:)\\s*(?=")', beginCaptures: { 1: { name: "support.variable.parameter.swift" }, 2: { name: "punctuation.separator.key-value.swift" } }, end: "(?!\\G)", patterns: [{ include: "#literals" }] }, { captures: { 1: { name: "support.variable.parameter.swift" }, 2: { name: "punctuation.separator.key-value.swift" }, 3: { name: "constant.numeric.integer.swift" } }, match: "(line)\\s*(:)\\s*([0-9]+)" }, { match: ",", name: "punctuation.separator.parameters.swift" }, { match: "\\S+", name: "invalid.illegal.character-not-allowed-here.swift" }] }, 6: { name: "punctuation.definition.parameters.begin.swift" }, 7: { patterns: [{ match: "\\S+", name: "invalid.illegal.character-not-allowed-here.swift" }] } }, match: "^\\s*(#)(sourceLocation)((\\()([^)]*)(\\)))(.*?)(?=$|//|/\\*)", name: "meta.preprocessor.sourcelocation.swift" }] }, conditionals: { patterns: [{ begin: "(?<!\\.)\\b(if|guard|switch|for)\\b", beginCaptures: { 1: { patterns: [{ include: "#keywords" }] } }, end: "(?=\\{)", patterns: [{ include: "#expressions-without-trailing-closures" }] }, { begin: "(?<!\\.)\\b(while)\\b", beginCaptures: { 1: { patterns: [{ include: "#keywords" }] } }, comment: "while can be the end of a repeat-while statement so doesn't necessarily have braces after it", end: "(?=\\{)|$", patterns: [{ include: "#expressions-without-trailing-closures" }] }] }, declarations: { patterns: [{ include: "#declarations-function" }, { include: "#declarations-function-initializer" }, { include: "#declarations-function-subscript" }, { include: "#declarations-typed-variable-declaration" }, { include: "#declarations-import" }, { include: "#declarations-operator" }, { include: "#declarations-precedencegroup" }, { include: "#declarations-protocol" }, { include: "#declarations-type" }, { include: "#declarations-extension" }, { include: "#declarations-typealias" }, { include: "#declarations-macro" }] }, "declarations-available-types": { patterns: [{ include: "#comments" }, { include: "#builtin-types" }, { include: "#attributes" }, { match: "\\basync\\b", name: "storage.modifier.async.swift" }, { match: "\\b(?:throws|rethrows)\\b", name: "storage.modifier.exception.swift" }, { match: "\\bsome\\b", name: "keyword.other.operator.type.opaque.swift" }, { match: "\\bany\\b", name: "keyword.other.operator.type.existential.swift" }, { match: "\\b(?:repeat|each)\\b", name: "keyword.control.loop.swift" }, { match: "\\b(?:inout|isolated|borrowing|consuming)\\b", name: "storage.modifier.swift" }, { match: "\\bSelf\\b", name: "variable.language.swift" }, { captures: { 1: { name: "keyword.operator.type.function.swift" } }, match: "(?<![/=\\-+!*%<>&|\\^~.])(->)(?![/=\\-+!*%<>&|\\^~.])" }, { captures: { 1: { name: "keyword.operator.type.composition.swift" } }, comment: "Swift 3: A & B", match: "(?<![/=\\-+!*%<>&|\\^~.])(&)(?![/=\\-+!*%<>&|\\^~.])" }, { match: "[?!]", name: "keyword.operator.type.optional.swift" }, { match: "\\.\\.\\.", name: "keyword.operator.function.variadic-parameter.swift" }, { comment: "Swift 2: protocol<A, B>", match: "\\bprotocol\\b", name: "keyword.other.type.composition.swift" }, { match: "(?<=\\.)(?:Protocol|Type)\\b", name: "keyword.other.type.metatype.swift" }, { include: "#declarations-available-types-tuple-type" }, { include: "#declarations-available-types-collection-type" }, { include: "#declarations-generic-argument-clause" }] }, "declarations-available-types-collection-type": { begin: "\\[", beginCaptures: { 0: { name: "punctuation.section.collection-type.begin.swift" } }, comment: "array and dictionary types [Value] and [Key: Value]", end: "\\]|(?=[>){}])", endCaptures: { 0: { name: "punctuation.section.collection-type.end.swift" } }, patterns: [{ include: "#declarations-available-types" }, { begin: ":", beginCaptures: { 0: { name: "punctuation.separator.key-value.swift" } }, end: "(?=\\]|[>){}])", patterns: [{ match: ":", name: "invalid.illegal.extra-colon-in-dictionary-type.swift" }, { include: "#declarations-available-types" }] }] }, "declarations-available-types-tuple-type": { begin: "\\(", beginCaptures: { 0: { name: "punctuation.section.tuple-type.begin.swift" } }, end: "\\)|(?=[>\\]{}])", endCaptures: { 0: { name: "punctuation.section.tuple-type.end.swift" } }, patterns: [{ include: "#declarations-available-types" }] }, "declarations-extension": { begin: "\\b(extension)\\s+((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))", beginCaptures: { 1: { name: "storage.type.$1.swift" }, 2: { name: "entity.name.type.swift", patterns: [{ include: "#declarations-available-types" }] }, 3: { name: "punctuation.definition.identifier.swift" }, 4: { name: "punctuation.definition.identifier.swift" } }, end: "(?<=\\})", name: "meta.definition.type.$1.swift", patterns: [{ include: "#comments" }, { comment: "SE-0143: Conditional Conformances", include: "#declarations-generic-where-clause" }, { include: "#declarations-inheritance-clause" }, { begin: "\\{", beginCaptures: { 0: { name: "punctuation.definition.type.begin.swift" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.type.end.swift" } }, name: "meta.definition.type.body.swift", patterns: [{ include: "$self" }] }] }, "declarations-function": { begin: `(?x)
|
|
1
|
+
const e = Object.freeze({ displayName: "Swift", name: "swift", patterns: [{ include: "#root" }], repository: { "async-throws": { captures: { 1: { name: "invalid.illegal.await-must-precede-throws.swift" }, 2: { name: "storage.modifier.exception.swift" }, 3: { name: "storage.modifier.async.swift" } }, match: "\\b(?:(throws\\s+async|rethrows\\s+async)|(throws|rethrows)|(async))\\b" }, attributes: { patterns: [{ begin: "((@)available)(\\()", beginCaptures: { 1: { name: "storage.modifier.attribute.swift" }, 2: { name: "punctuation.definition.attribute.swift" }, 3: { name: "punctuation.definition.arguments.begin.swift" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.arguments.end.swift" } }, name: "meta.attribute.available.swift", patterns: [{ captures: { 1: { name: "keyword.other.platform.os.swift" }, 2: { name: "constant.numeric.swift" } }, match: "\\b(swift|(?:iOS|macOS|OSX|watchOS|tvOS|visionOS|UIKitForMac)(?:ApplicationExtension)?)\\b(?:\\s+([0-9]+(?:\\.[0-9]+)*\\b))?" }, { begin: "\\b(introduced|deprecated|obsoleted)\\s*(:)\\s*", beginCaptures: { 1: { name: "keyword.other.swift" }, 2: { name: "punctuation.separator.key-value.swift" } }, end: "(?!\\G)", patterns: [{ match: "\\b[0-9]+(?:\\.[0-9]+)*\\b", name: "constant.numeric.swift" }] }, { begin: '\\b(message|renamed)\\s*(:)\\s*(?=")', beginCaptures: { 1: { name: "keyword.other.swift" }, 2: { name: "punctuation.separator.key-value.swift" } }, end: "(?!\\G)", patterns: [{ include: "#literals" }] }, { captures: { 1: { name: "keyword.other.platform.all.swift" }, 2: { name: "keyword.other.swift" }, 3: { name: "invalid.illegal.character-not-allowed-here.swift" } }, match: "(?:(\\*)|\\b(deprecated|unavailable|noasync)\\b)\\s*(.*?)(?=[,)])" }] }, { begin: "((@)objc)(\\()", beginCaptures: { 1: { name: "storage.modifier.attribute.swift" }, 2: { name: "punctuation.definition.attribute.swift" }, 3: { name: "punctuation.definition.arguments.begin.swift" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.arguments.end.swift" } }, name: "meta.attribute.objc.swift", patterns: [{ captures: { 1: { name: "invalid.illegal.missing-colon-after-selector-piece.swift" } }, match: "\\w*(?::(?:\\w*:)*(\\w*))?", name: "entity.name.function.swift" }] }, { begin: "(@)(?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>)", beginCaptures: { 0: { name: "storage.modifier.attribute.swift" }, 1: { name: "punctuation.definition.attribute.swift" }, 2: { name: "punctuation.definition.identifier.swift" }, 3: { name: "punctuation.definition.identifier.swift" } }, comment: "any other attribute", end: "(?!\\G\\()", name: "meta.attribute.swift", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.arguments.begin.swift" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.arguments.end.swift" } }, name: "meta.arguments.attribute.swift", patterns: [{ include: "#expressions" }] }] }] }, "builtin-functions": { patterns: [{ comment: "Member functions in the standard library in Swift 3 which may be used with trailing closures and no parentheses", match: "(?<=\\.)(?:s(?:ort(?:ed)?|plit)|contains|index|partition|f(?:i(?:lter|rst)|orEach|latMap)|with(?:MutableCharacters|CString|U(?:nsafe(?:Mutable(?:BufferPointer|Pointer(?:s|To(?:Header|Elements)))|BufferPointer)|TF8Buffer))|m(?:in|a(?:p|x)))(?=\\s*[({])\\b", name: "support.function.swift" }, { comment: "Member functions in the standard library in Swift 3", match: "(?<=\\.)(?:s(?:ymmetricDifference|t(?:oreBytes|arts|ride)|ortInPlace|u(?:ccessor|ffix|btract(?:ing|InPlace|WithOverflow)?)|quareRoot|amePosition)|h(?:oldsUnique(?:Reference|OrPinnedReference)|as(?:Suffix|Prefix))|ne(?:gate(?:d)?|xt)|c(?:o(?:untByEnumerating|py(?:Bytes)?)|lamp(?:ed)?|reate)|t(?:o(?:IntMax|Opaque|UIntMax)|ake(?:RetainedValue|UnretainedValue)|r(?:uncatingRemainder|a(?:nscodedLength|ilSurrogate)))|i(?:s(?:MutableAndUniquelyReferenced(?:OrPinned)?|S(?:trictSu(?:perset(?:Of)?|bset(?:Of)?)|u(?:perset(?:Of)?|bset(?:Of)?))|Continuation|T(?:otallyOrdered|railSurrogate)|Disjoint(?:With)?|Unique(?:Reference|lyReferenced(?:OrPinned)?)|Equal|Le(?:ss(?:ThanOrEqualTo)?|adSurrogate))|n(?:sert(?:ContentsOf)?|tersect(?:ion|InPlace)?|itialize(?:Memory|From)?|dex(?:Of|ForKey)))|o(?:verlaps|bjectAt)|d(?:i(?:stance(?:To)?|vide(?:d|WithOverflow)?)|e(?:s(?:cendant|troy)|code(?:CString)?|initialize|alloc(?:ate(?:Capacity)?)?)|rop(?:First|Last))|u(?:n(?:ion(?:InPlace)?|derestimateCount|wrappedOrError)|p(?:date(?:Value)?|percased))|join(?:ed|WithSeparator)|p(?:op(?:First|Last)|ass(?:Retained|Unretained)|re(?:decessor|fix))|e(?:scape(?:d)?|n(?:code|umerate(?:d)?)|lementsEqual|xclusiveOr(?:InPlace)?)|f(?:orm(?:Remainder|S(?:ymmetricDifference|quareRoot)|TruncatingRemainder|In(?:tersection|dex)|Union)|latten|rom(?:CString(?:RepairingIllFormedUTF8)?|Opaque))|w(?:i(?:thMemoryRebound|dth)|rite(?:To)?)|l(?:o(?:wercased|ad)|e(?:adSurrogate|xicographical(?:Compare|lyPrecedes)))|a(?:ss(?:ign(?:BackwardFrom|From)?|umingMemoryBound)|d(?:d(?:ing(?:Product)?|Product|WithOverflow)?|vanced(?:By)?)|utorelease|ppend(?:ContentsOf)?|lloc(?:ate)?|bs)|r(?:ound(?:ed)?|e(?:serveCapacity|tain|duce|place(?:Range|Subrange)?|verse(?:d)?|quest(?:NativeBuffer|UniqueMutableBackingBuffer)|lease|m(?:ove(?:Range|Subrange|Value(?:ForKey)?|First|Last|A(?:tIndex|ll))?|ainder(?:WithOverflow)?)))|ge(?:nerate|t(?:Objects|Element))|m(?:in(?:imum(?:Magnitude)?|Element)|ove(?:Initialize(?:Memory|BackwardFrom|From)?|Assign(?:From)?)?|ultipl(?:y(?:WithOverflow)?|ied)|easure|a(?:ke(?:Iterator|Description)|x(?:imum(?:Magnitude)?|Element)))|bindMemory)(?=\\s*\\()", name: "support.function.swift" }, { comment: "Member functions in the standard library in Swift 2 only", match: "(?<=\\.)(?:s(?:uperclassMirror|amePositionIn|tartsWith)|nextObject|c(?:haracterAtIndex|o(?:untByEnumeratingWithState|pyWithZone)|ustom(?:Mirror|PlaygroundQuickLook))|is(?:EmptyInput|ASCII)|object(?:Enumerator|ForKey|AtIndex)|join|put|keyEnumerator|withUnsafeMutablePointerToValue|length|getMirror|m(?:oveInitializeAssignFrom|ember))(?=\\s*\\()", name: "support.function.swift" }] }, "builtin-global-functions": { patterns: [{ begin: "\\b(type)(\\()\\s*(of)(:)", beginCaptures: { 1: { name: "support.function.dynamic-type.swift" }, 2: { name: "punctuation.definition.arguments.begin.swift" }, 3: { name: "support.variable.parameter.swift" }, 4: { name: "punctuation.separator.argument-label.begin.swift" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.arguments.end.swift" } }, patterns: [{ include: "#expressions" }] }, { comment: "Global functions available in Swift 3 which may be used with trailing closures and no parentheses", match: "\\b(?:anyGenerator|autoreleasepool)(?=\\s*[({])\\b", name: "support.function.swift" }, { comment: "Global functions available in Swift 3", match: "\\b(?:s(?:tride(?:of(?:Value)?)?|izeof(?:Value)?|equence|wap)|numericCast|transcode|is(?:UniquelyReferenced(?:NonObjC)?|KnownUniquelyReferenced)|zip|d(?:ump|ebugPrint)|unsafe(?:BitCast|Downcast|Unwrap|Address(?:Of)?)|pr(?:int|econdition(?:Failure)?)|fatalError|with(?:Unsafe(?:MutablePointer|Pointer)|ExtendedLifetime|VaList)|a(?:ssert(?:ionFailure)?|lignof(?:Value)?|bs)|re(?:peatElement|adLine)|getVaList|m(?:in|ax))(?=\\s*\\()", name: "support.function.swift" }, { comment: "Global functions available in Swift 2 only", match: "\\b(?:s(?:ort|uffix|pli(?:ce|t))|insert|overlaps|d(?:istance|rop(?:First|Last))|join|prefix|extend|withUnsafe(?:MutablePointers|Pointers)|lazy|advance|re(?:flect|move(?:Range|Last|A(?:tIndex|ll))))(?=\\s*\\()", name: "support.function.swift" }] }, "builtin-properties": { patterns: [{ comment: "The simpler (?<=\\bProcess\\.|\\bCommandLine\\.) breaks VS Code / Atom, see https://github.com/textmate/swift.tmbundle/issues/29", match: "(?<=^Process\\.|\\WProcess\\.|^CommandLine\\.|\\WCommandLine\\.)(arguments|argc|unsafeArgv)", name: "support.variable.swift" }, { comment: "Properties in the standard library in Swift 3", match: "(?<=\\.)(?:s(?:t(?:artIndex|ri(?:ngValue|de))|i(?:ze|gn(?:BitIndex|ificand(?:Bit(?:Count|Pattern)|Width)?|alingNaN)?)|u(?:perclassMirror|mmary|bscriptBaseAddress))|h(?:eader|as(?:hValue|PointerRepresentation))|n(?:ulTerminatedUTF8|ext(?:Down|Up)|a(?:n|tiveOwner))|c(?:haracters|ount(?:TrailingZeros)?|ustom(?:Mirror|PlaygroundQuickLook)|apacity)|i(?:s(?:S(?:ign(?:Minus|aling(?:NaN)?)|ubnormal)|N(?:ormal|aN)|Canonical|Infinite|Zero|Empty|Finite|ASCII)|n(?:dices|finity)|dentity)|owner|de(?:scription|bugDescription)|u(?:n(?:safelyUnwrapped|icodeScalar(?:s)?|derestimatedCount)|tf(?:16|8(?:Start|C(?:String|odeUnitCount))?)|intValue|ppercaseString|lp(?:OfOne)?)|p(?:i|ointee)|e(?:ndIndex|lements|xponent(?:Bit(?:Count|Pattern))?)|value(?:s)?|keys|quietNaN|f(?:irst(?:ElementAddress(?:IfContiguous)?)?|loatingPointClass)|l(?:ittleEndian|owercaseString|eastNo(?:nzeroMagnitude|rmalMagnitude)|a(?:st|zy))|a(?:l(?:ignment|l(?:ocatedElementCount|Zeros))|rray(?:PropertyIsNativeTypeChecked)?)|ra(?:dix|wValue)|greatestFiniteMagnitude|m(?:in|emory|ax)|b(?:yteS(?:ize|wapped)|i(?:nade|tPattern|gEndian)|uffer|ase(?:Address)?))\\b", name: "support.variable.swift" }, { comment: "Properties in the standard library in Swift 2 only", match: "(?<=\\.)(?:boolValue|disposition|end|objectIdentifier|quickLookObject|start|valueType)\\b", name: "support.variable.swift" }, { comment: "Enum cases in the standard library - note that there is some overlap between these and the properties", match: "(?<=\\.)(?:s(?:calarValue|i(?:ze|gnalingNaN)|o(?:und|me)|uppressed|prite|et)|n(?:one|egative(?:Subnormal|Normal|Infinity|Zero))|c(?:ol(?:or|lection)|ustomized)|t(?:o(?:NearestOr(?:Even|AwayFromZero)|wardZero)|uple|ext)|i(?:nt|mage)|optional|d(?:ictionary|o(?:uble|wn))|u(?:Int|p|rl)|p(?:o(?:sitive(?:Subnormal|Normal|Infinity|Zero)|int)|lus)|e(?:rror|mptyInput)|view|quietNaN|float|a(?:ttributedString|wayFromZero)|r(?:ectangle|ange)|generated|minus|b(?:ool|ezierPath))\\b", name: "support.variable.swift" }] }, "builtin-types": { comment: "Types provided in the standard library", patterns: [{ include: "#builtin-types-builtin-class-type" }, { include: "#builtin-types-builtin-enum-type" }, { include: "#builtin-types-builtin-protocol-type" }, { include: "#builtin-types-builtin-struct-type" }, { include: "#builtin-types-builtin-typealias" }, { match: "\\bAny\\b", name: "support.type.any.swift" }] }, "builtin-types-builtin-class-type": { comment: "Builtin class types", match: "\\b(Managed(Buffer|ProtoBuffer)|NonObjectiveCBase|AnyGenerator)\\b", name: "support.class.swift" }, "builtin-types-builtin-enum-type": { patterns: [{ comment: "CommandLine is an enum, but it acts like a constant", match: "\\b(?:CommandLine|Process(?=\\.))\\b", name: "support.constant.swift" }, { comment: "The return type of a function that never returns", match: "\\bNever\\b", name: "support.constant.never.swift" }, { comment: "Enum types in the standard library in Swift 3", match: "\\b(?:ImplicitlyUnwrappedOptional|Representation|MemoryLayout|FloatingPointClassification|SetIndexRepresentation|SetIteratorRepresentation|FloatingPointRoundingRule|UnicodeDecodingResult|Optional|DictionaryIndexRepresentation|AncestorRepresentation|DisplayStyle|PlaygroundQuickLook|Never|FloatingPointSign|Bit|DictionaryIteratorRepresentation)\\b", name: "support.type.swift" }, { comment: "Enum types in the standard library in Swift 2 only", match: "\\b(?:MirrorDisposition|QuickLookObject)\\b", name: "support.type.swift" }] }, "builtin-types-builtin-protocol-type": { patterns: [{ comment: "Protocols in the standard library in Swift 3", match: "\\b(?:Ra(?:n(?:domAccess(?:Collection|Indexable)|geReplaceable(?:Collection|Indexable))|wRepresentable)|M(?:irrorPath|utable(?:Collection|Indexable))|Bi(?:naryFloatingPoint|twiseOperations|directional(?:Collection|Indexable))|S(?:tr(?:ideable|eamable)|igned(?:Number|Integer)|e(?:tAlgebra|quence))|Hashable|C(?:o(?:llection|mparable)|ustom(?:Reflectable|StringConvertible|DebugStringConvertible|PlaygroundQuickLookable|LeafReflectable)|VarArg)|TextOutputStream|I(?:n(?:teger(?:Arithmetic)?|dexable(?:Base)?)|teratorProtocol)|OptionSet|Un(?:signedInteger|icodeCodec)|E(?:quatable|rror|xpressibleBy(?:BooleanLiteral|String(?:Interpolation|Literal)|NilLiteral|IntegerLiteral|DictionaryLiteral|UnicodeScalarLiteral|ExtendedGraphemeClusterLiteral|FloatLiteral|ArrayLiteral))|FloatingPoint|L(?:osslessStringConvertible|azy(?:SequenceProtocol|CollectionProtocol))|A(?:nyObject|bsoluteValuable))\\b", name: "support.type.swift" }, { comment: "Protocols in the standard library in Swift 2 only", match: "\\b(?:Ran(?:domAccessIndexType|geReplaceableCollectionType)|GeneratorType|M(?:irror(?:Type|PathType)|utable(?:Sliceable|CollectionType))|B(?:i(?:twiseOperationsType|directionalIndexType)|oolean(?:Type|LiteralConvertible))|S(?:tring(?:InterpolationConvertible|LiteralConvertible)|i(?:nkType|gned(?:NumberType|IntegerType))|e(?:tAlgebraType|quenceType)|liceable)|NilLiteralConvertible|C(?:ollectionType|VarArgType)|Inte(?:rvalType|ger(?:Type|LiteralConvertible|ArithmeticType))|O(?:utputStreamType|ptionSetType)|DictionaryLiteralConvertible|Un(?:signedIntegerType|icode(?:ScalarLiteralConvertible|CodecType))|E(?:rrorType|xten(?:sibleCollectionType|dedGraphemeClusterLiteralConvertible))|F(?:orwardIndexType|loat(?:ingPointType|LiteralConvertible))|A(?:nyCollectionType|rrayLiteralConvertible))\\b", name: "support.type.swift" }] }, "builtin-types-builtin-struct-type": { patterns: [{ comment: "Structs in the standard library in Swift 3", match: "\\b(?:R(?:e(?:peat(?:ed)?|versed(?:RandomAccess(?:Collection|Index)|Collection|Index))|an(?:domAccessSlice|ge(?:Replaceable(?:RandomAccessSlice|BidirectionalSlice|Slice)|Generator)?))|Generator(?:Sequence|OfOne)|M(?:irror|utable(?:Ran(?:domAccessSlice|geReplaceable(?:RandomAccessSlice|BidirectionalSlice|Slice))|BidirectionalSlice|Slice)|anagedBufferPointer)|B(?:idirectionalSlice|ool)|S(?:t(?:aticString|ri(?:ng|deT(?:hrough(?:Generator|Iterator)?|o(?:Generator|Iterator)?)))|et(?:I(?:ndex|terator))?|lice)|HalfOpenInterval|C(?:haracter(?:View)?|o(?:ntiguousArray|untable(?:Range|ClosedRange)|llectionOfOne)|OpaquePointer|losed(?:Range(?:I(?:ndex|terator))?|Interval)|VaListPointer)|I(?:n(?:t(?:16|8|32|64)?|d(?:ices|ex(?:ing(?:Generator|Iterator))?))|terator(?:Sequence|OverOne)?)|Zip2(?:Sequence|Iterator)|O(?:paquePointer|bjectIdentifier)|D(?:ictionary(?:I(?:ndex|terator)|Literal)?|ouble|efault(?:RandomAccessIndices|BidirectionalIndices|Indices))|U(?:n(?:safe(?:RawPointer|Mutable(?:RawPointer|BufferPointer|Pointer)|BufferPointer(?:Generator|Iterator)?|Pointer)|icodeScalar(?:View)?|foldSequence|managed)|TF(?:16(?:View)?|8(?:View)?|32)|Int(?:16|8|32|64)?)|Join(?:Generator|ed(?:Sequence|Iterator))|PermutationGenerator|E(?:numerate(?:Generator|Sequence|d(?:Sequence|Iterator))|mpty(?:Generator|Collection|Iterator))|Fl(?:oat(?:80)?|atten(?:Generator|BidirectionalCollection(?:Index)?|Sequence|Collection(?:Index)?|Iterator))|L(?:egacyChildren|azy(?:RandomAccessCollection|Map(?:RandomAccessCollection|Generator|BidirectionalCollection|Sequence|Collection|Iterator)|BidirectionalCollection|Sequence|Collection|Filter(?:Generator|BidirectionalCollection|Sequence|Collection|I(?:ndex|terator))))|A(?:ny(?:RandomAccessCollection|Generator|BidirectionalCollection|Sequence|Hashable|Collection|I(?:ndex|terator))|utoreleasingUnsafeMutablePointer|rray(?:Slice)?))\\b", name: "support.type.swift" }, { comment: "Structs in the standard library in Swift 2 only", match: "\\b(?:R(?:everse(?:RandomAccess(?:Collection|Index)|Collection|Index)|awByte)|Map(?:Generator|Sequence|Collection)|S(?:inkOf|etGenerator)|Zip2Generator|DictionaryGenerator|Filter(?:Generator|Sequence|Collection(?:Index)?)|LazyForwardCollection|Any(?:RandomAccessIndex|BidirectionalIndex|Forward(?:Collection|Index)))\\b", name: "support.type.swift" }] }, "builtin-types-builtin-typealias": { patterns: [{ comment: "Typealiases in the standard library in Swift 3", match: "\\b(?:Raw(?:Significand|Exponent|Value)|B(?:ooleanLiteralType|uffer|ase)|S(?:t(?:orage|r(?:i(?:ngLiteralType|de)|eam(?:1|2)))|ubSequence)|NativeBuffer|C(?:hild(?:ren)?|Bool|S(?:hort|ignedChar)|odeUnit|Char(?:16|32)?|Int|Double|Unsigned(?:Short|Char|Int|Long(?:Long)?)|Float|WideChar|Long(?:Long)?)|I(?:n(?:t(?:Max|egerLiteralType)|d(?:ices|ex(?:Distance)?))|terator)|Distance|U(?:n(?:icodeScalar(?:Type|Index|View|LiteralType)|foldFirstSequence)|TF(?:16(?:Index|View)|8Index)|IntMax)|E(?:lement(?:s)?|x(?:tendedGraphemeCluster(?:Type|LiteralType)|ponent))|V(?:oid|alue)|Key|Float(?:32|LiteralType|64)|AnyClass)\\b", name: "support.type.swift" }, { comment: "Typealiases in the standard library in Swift 2 only", match: "\\b(?:Generator|PlaygroundQuickLook|UWord|Word)\\b", name: "support.type.swift" }] }, "code-block": { begin: "\\{", beginCaptures: { 0: { name: "punctuation.section.scope.begin.swift" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.section.scope.end.swift" } }, patterns: [{ include: "$self" }] }, comments: { patterns: [{ captures: { 1: { name: "punctuation.definition.comment.swift" } }, match: "\\A^(#!).*$\\n?", name: "comment.line.number-sign.swift" }, { begin: "/\\*\\*(?!/)", beginCaptures: { 0: { name: "punctuation.definition.comment.begin.swift" } }, end: "\\*/", endCaptures: { 0: { name: "punctuation.definition.comment.end.swift" } }, name: "comment.block.documentation.swift", patterns: [{ include: "#comments-nested" }] }, { begin: "/\\*:", beginCaptures: { 0: { name: "punctuation.definition.comment.begin.swift" } }, end: "\\*/", endCaptures: { 0: { name: "punctuation.definition.comment.end.swift" } }, name: "comment.block.documentation.playground.swift", patterns: [{ include: "#comments-nested" }] }, { begin: "/\\*", beginCaptures: { 0: { name: "punctuation.definition.comment.begin.swift" } }, end: "\\*/", endCaptures: { 0: { name: "punctuation.definition.comment.end.swift" } }, name: "comment.block.swift", patterns: [{ include: "#comments-nested" }] }, { match: "\\*/", name: "invalid.illegal.unexpected-end-of-block-comment.swift" }, { begin: "(^[ \\t]+)?(?=//)", beginCaptures: { 1: { name: "punctuation.whitespace.comment.leading.swift" } }, end: "(?!\\G)", patterns: [{ begin: "///", beginCaptures: { 0: { name: "punctuation.definition.comment.swift" } }, end: "$", name: "comment.line.triple-slash.documentation.swift" }, { begin: "//:", beginCaptures: { 0: { name: "punctuation.definition.comment.swift" } }, end: "$", name: "comment.line.double-slash.documentation.swift" }, { begin: "//", beginCaptures: { 0: { name: "punctuation.definition.comment.swift" } }, end: "$", name: "comment.line.double-slash.swift" }] }] }, "comments-nested": { begin: "/\\*", end: "\\*/", patterns: [{ include: "#comments-nested" }] }, "compiler-control": { patterns: [{ begin: "^\\s*(#)(if|elseif)\\s+(false)\\b.*?(?=$|//|/\\*)", beginCaptures: { 0: { name: "meta.preprocessor.conditional.swift" }, 1: { name: "punctuation.definition.preprocessor.swift" }, 2: { name: "keyword.control.import.preprocessor.conditional.swift" }, 3: { name: "constant.language.boolean.swift" } }, contentName: "comment.block.preprocessor.swift", end: "(?=^\\s*(#(elseif|else|endif)\\b))" }, { begin: "^\\s*(#)(if|elseif)\\s+", captures: { 1: { name: "punctuation.definition.preprocessor.swift" }, 2: { name: "keyword.control.import.preprocessor.conditional.swift" } }, end: "(?=\\s*(?://|/\\*))|$", name: "meta.preprocessor.conditional.swift", patterns: [{ match: "(&&|\\|\\|)", name: "keyword.operator.logical.swift" }, { match: "\\b(true|false)\\b", name: "constant.language.boolean.swift" }, { captures: { 1: { name: "keyword.other.condition.swift" }, 2: { name: "punctuation.definition.parameters.begin.swift" }, 3: { name: "support.constant.platform.architecture.swift" }, 4: { name: "punctuation.definition.parameters.end.swift" } }, match: "\\b(arch)\\s*(\\()\\s*(?:(arm|arm64|powerpc64|powerpc64le|i386|x86_64|s390x)|\\w+)\\s*(\\))" }, { captures: { 1: { name: "keyword.other.condition.swift" }, 2: { name: "punctuation.definition.parameters.begin.swift" }, 3: { name: "support.constant.platform.os.swift" }, 4: { name: "punctuation.definition.parameters.end.swift" } }, match: "\\b(os)\\s*(\\()\\s*(?:(macOS|OSX|iOS|tvOS|watchOS|visionOS|Android|Linux|FreeBSD|Windows|PS4)|\\w+)\\s*(\\))" }, { captures: { 1: { name: "keyword.other.condition.swift" }, 2: { name: "punctuation.definition.parameters.begin.swift" }, 3: { name: "entity.name.type.module.swift" }, 4: { name: "punctuation.definition.parameters.end.swift" } }, match: "\\b(canImport)\\s*(\\()([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)(\\))" }, { begin: "\\b(targetEnvironment)\\s*(\\()", beginCaptures: { 1: { name: "keyword.other.condition.swift" }, 2: { name: "punctuation.definition.parameters.begin.swift" } }, end: "(\\))|$", endCaptures: { 1: { name: "punctuation.definition.parameters.end.swift" } }, patterns: [{ match: "\\b(simulator|UIKitForMac)\\b", name: "support.constant.platform.environment.swift" }] }, { begin: "\\b(swift|compiler)\\s*(\\()", beginCaptures: { 1: { name: "keyword.other.condition.swift" }, 2: { name: "punctuation.definition.parameters.begin.swift" } }, end: "(\\))|$", endCaptures: { 1: { name: "punctuation.definition.parameters.end.swift" } }, patterns: [{ match: ">=|<", name: "keyword.operator.comparison.swift" }, { match: "\\b[0-9]+(?:\\.[0-9]+)*\\b", name: "constant.numeric.swift" }] }] }, { captures: { 1: { name: "punctuation.definition.preprocessor.swift" }, 2: { name: "keyword.control.import.preprocessor.conditional.swift" }, 3: { patterns: [{ match: "\\S+", name: "invalid.illegal.character-not-allowed-here.swift" }] } }, match: "^\\s*(#)(else|endif)(.*?)(?=$|//|/\\*)", name: "meta.preprocessor.conditional.swift" }, { captures: { 1: { name: "punctuation.definition.preprocessor.swift" }, 2: { name: "keyword.control.import.preprocessor.sourcelocation.swift" }, 4: { name: "punctuation.definition.parameters.begin.swift" }, 5: { patterns: [{ begin: '(file)\\s*(:)\\s*(?=")', beginCaptures: { 1: { name: "support.variable.parameter.swift" }, 2: { name: "punctuation.separator.key-value.swift" } }, end: "(?!\\G)", patterns: [{ include: "#literals" }] }, { captures: { 1: { name: "support.variable.parameter.swift" }, 2: { name: "punctuation.separator.key-value.swift" }, 3: { name: "constant.numeric.integer.swift" } }, match: "(line)\\s*(:)\\s*([0-9]+)" }, { match: ",", name: "punctuation.separator.parameters.swift" }, { match: "\\S+", name: "invalid.illegal.character-not-allowed-here.swift" }] }, 6: { name: "punctuation.definition.parameters.begin.swift" }, 7: { patterns: [{ match: "\\S+", name: "invalid.illegal.character-not-allowed-here.swift" }] } }, match: "^\\s*(#)(sourceLocation)((\\()([^)]*)(\\)))(.*?)(?=$|//|/\\*)", name: "meta.preprocessor.sourcelocation.swift" }] }, conditionals: { patterns: [{ begin: "(?<!\\.)\\b(if|guard|switch|for)\\b", beginCaptures: { 1: { patterns: [{ include: "#keywords" }] } }, end: "(?=\\{)", patterns: [{ include: "#expressions-without-trailing-closures" }] }, { begin: "(?<!\\.)\\b(while)\\b", beginCaptures: { 1: { patterns: [{ include: "#keywords" }] } }, comment: "while can be the end of a repeat-while statement so doesn't necessarily have braces after it", end: "(?=\\{)|$", patterns: [{ include: "#expressions-without-trailing-closures" }] }] }, declarations: { patterns: [{ include: "#declarations-function" }, { include: "#declarations-function-initializer" }, { include: "#declarations-function-subscript" }, { include: "#declarations-typed-variable-declaration" }, { include: "#declarations-import" }, { include: "#declarations-operator" }, { include: "#declarations-precedencegroup" }, { include: "#declarations-protocol" }, { include: "#declarations-type" }, { include: "#declarations-extension" }, { include: "#declarations-typealias" }, { include: "#declarations-macro" }] }, "declarations-available-types": { patterns: [{ include: "#comments" }, { include: "#builtin-types" }, { include: "#attributes" }, { match: "\\basync\\b", name: "storage.modifier.async.swift" }, { match: "\\b(?:throws|rethrows)\\b", name: "storage.modifier.exception.swift" }, { match: "\\bsome\\b", name: "keyword.other.operator.type.opaque.swift" }, { match: "\\bany\\b", name: "keyword.other.operator.type.existential.swift" }, { match: "\\b(?:repeat|each)\\b", name: "keyword.control.loop.swift" }, { match: "\\b(?:inout|isolated|borrowing|consuming)\\b", name: "storage.modifier.swift" }, { match: "\\bSelf\\b", name: "variable.language.swift" }, { captures: { 1: { name: "keyword.operator.type.function.swift" } }, match: "(?<![/=\\-+!*%<>&|\\^~.])(->)(?![/=\\-+!*%<>&|\\^~.])" }, { captures: { 1: { name: "keyword.operator.type.composition.swift" } }, comment: "Swift 3: A & B", match: "(?<![/=\\-+!*%<>&|\\^~.])(&)(?![/=\\-+!*%<>&|\\^~.])" }, { match: "[?!]", name: "keyword.operator.type.optional.swift" }, { match: "\\.\\.\\.", name: "keyword.operator.function.variadic-parameter.swift" }, { comment: "Swift 2: protocol<A, B>", match: "\\bprotocol\\b", name: "keyword.other.type.composition.swift" }, { match: "(?<=\\.)(?:Protocol|Type)\\b", name: "keyword.other.type.metatype.swift" }, { include: "#declarations-available-types-tuple-type" }, { include: "#declarations-available-types-collection-type" }, { include: "#declarations-generic-argument-clause" }] }, "declarations-available-types-collection-type": { begin: "\\[", beginCaptures: { 0: { name: "punctuation.section.collection-type.begin.swift" } }, comment: "array and dictionary types [Value] and [Key: Value]", end: "\\]|(?=[>){}])", endCaptures: { 0: { name: "punctuation.section.collection-type.end.swift" } }, patterns: [{ include: "#declarations-available-types" }, { begin: ":", beginCaptures: { 0: { name: "punctuation.separator.key-value.swift" } }, end: "(?=\\]|[>){}])", patterns: [{ match: ":", name: "invalid.illegal.extra-colon-in-dictionary-type.swift" }, { include: "#declarations-available-types" }] }] }, "declarations-available-types-tuple-type": { begin: "\\(", beginCaptures: { 0: { name: "punctuation.section.tuple-type.begin.swift" } }, end: "\\)|(?=[>\\]{}])", endCaptures: { 0: { name: "punctuation.section.tuple-type.end.swift" } }, patterns: [{ include: "#declarations-available-types" }] }, "declarations-extension": { begin: "\\b(extension)\\s+((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))", beginCaptures: { 1: { name: "storage.type.$1.swift" }, 2: { name: "entity.name.type.swift", patterns: [{ include: "#declarations-available-types" }] }, 3: { name: "punctuation.definition.identifier.swift" }, 4: { name: "punctuation.definition.identifier.swift" } }, end: "(?<=\\})", name: "meta.definition.type.$1.swift", patterns: [{ include: "#comments" }, { comment: "SE-0143: Conditional Conformances", include: "#declarations-generic-where-clause" }, { include: "#declarations-inheritance-clause" }, { begin: "\\{", beginCaptures: { 0: { name: "punctuation.definition.type.begin.swift" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.type.end.swift" } }, name: "meta.definition.type.body.swift", patterns: [{ include: "$self" }] }] }, "declarations-function": { begin: `(?x)
|
|
2
2
|
\\b
|
|
3
3
|
(func)
|
|
4
4
|
\\s+
|
|
@@ -174,7 +174,7 @@ const e = Object.freeze({ displayName: "Swift", name: "swift", patterns: [{ incl
|
|
|
174
174
|
\\s*(:)`, beginCaptures: { 1: { name: "entity.name.function.swift" }, 2: { name: "invalid.illegal.distinct-labels-not-allowed.swift" }, 5: { name: "variable.parameter.function.swift" }, 7: { name: "punctuation.separator.argument-label.swift" } }, end: "(?=[,)\\]])", patterns: [{ include: "#declarations-available-types" }] }, { begin: "(((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*\\k<q>))\\s*(:)", beginCaptures: { 1: { name: "entity.name.function.swift" }, 2: { name: "variable.parameter.function.swift" }, 4: { name: "punctuation.separator.argument-label.swift" } }, end: "(?=[,)\\]])", patterns: [{ include: "#declarations-available-types" }] }, { begin: "(?![,)\\]])(?=\\S)", comment: "an element without a label (i.e. anything else)", end: "(?=[,)\\]])", patterns: [{ include: "#declarations-available-types" }, { match: ":", name: "invalid.illegal.extra-colon-in-parameter-list.swift" }] }] }, "declarations-type-enum-enum-case": { begin: "(?x)((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))\\s*", beginCaptures: { 1: { name: "variable.other.enummember.swift" } }, end: "(?<=\\))|(?![=(])", patterns: [{ include: "#comments" }, { include: "#declarations-type-enum-associated-values" }, { include: "#declarations-type-enum-raw-value-assignment" }] }, "declarations-type-enum-enum-case-clause": { begin: "\\b(case)\\b\\s*", beginCaptures: { 1: { name: "storage.type.enum.case.swift" } }, end: "(?=[;}])|(?!\\G)(?!//|/\\*)(?=[^\\s,])", patterns: [{ include: "#comments" }, { include: "#declarations-type-enum-enum-case" }, { include: "#declarations-type-enum-more-cases" }] }, "declarations-type-enum-more-cases": { begin: ",\\s*", end: "(?!\\G)(?!//|/\\*)(?=[;}]|[^\\s,])", name: "meta.enum-case.more-cases", patterns: [{ include: "#comments" }, { include: "#declarations-type-enum-enum-case" }, { include: "#declarations-type-enum-more-cases" }] }, "declarations-type-enum-raw-value-assignment": { begin: "(=)\\s*", beginCaptures: { 1: { name: "keyword.operator.assignment.swift" } }, end: "(?!\\G)", patterns: [{ include: "#comments" }, { include: "#literals" }] }, "declarations-type-identifier": { begin: "((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))\\s*", beginCaptures: { 1: { name: "meta.type-name.swift", patterns: [{ include: "#builtin-types" }] }, 2: { name: "punctuation.definition.identifier.swift" }, 3: { name: "punctuation.definition.identifier.swift" } }, end: "(?!<)", patterns: [{ begin: "(?=<)", end: "(?!\\G)", patterns: [{ include: "#declarations-generic-argument-clause" }] }] }, "declarations-type-operators": { patterns: [{ captures: { 1: { name: "keyword.operator.type.composition.swift" } }, comment: "Swift 3: A & B", match: "(?<![/=\\-+!*%<>&|\\^~.])(&)(?![/=\\-+!*%<>&|\\^~.])" }, { captures: { 1: { name: "keyword.operator.type.requirement-suppression.swift" } }, comment: "SE-0390: Noncopyable structs and enums", match: "(?<![/=\\-+!*%<>&|\\^~.])(~)(?![/=\\-+!*%<>&|\\^~.])" }] }, "declarations-typealias": { begin: "\\b(typealias)\\s+((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))\\s*", beginCaptures: { 1: { name: "keyword.other.declaration-specifier.swift" }, 2: { name: "entity.name.type.typealias.swift" }, 3: { name: "punctuation.definition.identifier.swift" }, 4: { name: "punctuation.definition.identifier.swift" } }, end: "(?!\\G)$|(?=;|//|/\\*|$)", name: "meta.definition.typealias.swift", patterns: [{ begin: "\\G(?=<)", end: "(?!\\G)", patterns: [{ include: "#declarations-generic-parameter-clause" }] }, { include: "#declarations-typealias-assignment" }] }, "declarations-typealias-assignment": { begin: "(=)\\s*", beginCaptures: { 1: { name: "keyword.operator.assignment.swift" } }, end: "(?!\\G)$|(?=;|//|/\\*|$)", patterns: [{ include: "#declarations-available-types" }] }, "declarations-typed-variable-declaration": { begin: `(?x)
|
|
175
175
|
\\b(?:(async)\\s+)?(let|var)\\b\\s+
|
|
176
176
|
(?<q>\`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>)\\s*
|
|
177
|
-
:`, beginCaptures: { 1: { name: "storage.modifier.async.swift" }, 2: { name: "keyword.other.declaration-specifier.swift" } }, end: "(?=$|[={])", patterns: [{ include: "#declarations-available-types" }] }, "declarations-types-precedencegroup": { patterns: [{ comment: "Precedence groups in the standard library", match: "\\b(?:BitwiseShift|Assignment|RangeFormation|Casting|Addition|NilCoalescing|Comparison|LogicalConjunction|LogicalDisjunction|Default|Ternary|Multiplication|FunctionArrow)Precedence\\b", name: "support.type.swift" }] }, expressions: { comment: "trailing closures need to be parsed before other member references", patterns: [{ include: "#expressions-without-trailing-closures-or-member-references" }, { include: "#expressions-trailing-closure" }, { include: "#member-reference" }] }, "expressions-trailing-closure": { patterns: [{ captures: { 1: { name: "support.function.any-method.swift" }, 2: { name: "punctuation.definition.identifier.swift" }, 3: { name: "punctuation.definition.identifier.swift" } }, comment: "foo { body } -- a call with a trailing closure and no argument clause", match: "(#?(?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))(?=\\s*\\{)", name: "meta.function-call.trailing-closure-only.swift" }, { captures: { 1: { name: "support.function.any-method.trailing-closure-label.swift" }, 2: { name: "punctuation.definition.identifier.swift" }, 3: { name: "punctuation.definition.identifier.swift" }, 4: { name: "punctuation.separator.argument-label.swift" } }, comment: "foo: { body } -- labeled-trailing-closure (SE-0279)", match: "((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))\\s*(:)(?=\\s*\\{)" }] }, "expressions-without-trailing-closures": { patterns: [{ include: "#expressions-without-trailing-closures-or-member-references" }, { include: "#member-references" }] }, "expressions-without-trailing-closures-or-member-references": { patterns: [{ include: "#comments" }, { include: "#code-block" }, { include: "#attributes" }, { include: "#expressions-without-trailing-closures-or-member-references-closure-parameter" }, { include: "#literals" }, { include: "#operators" }, { include: "#builtin-types" }, { include: "#builtin-functions" }, { include: "#builtin-global-functions" }, { include: "#builtin-properties" }, { include: "#expressions-without-trailing-closures-or-member-references-compound-name" }, { include: "#conditionals" }, { include: "#keywords" }, { include: "#expressions-without-trailing-closures-or-member-references-availability-condition" }, { include: "#expressions-without-trailing-closures-or-member-references-function-or-macro-call-expression" }, { include: "#expressions-without-trailing-closures-or-member-references-macro-expansion" }, { include: "#expressions-without-trailing-closures-or-member-references-subscript-expression" }, { include: "#expressions-without-trailing-closures-or-member-references-parenthesized-expression" }, { match: "\\b_\\b", name: "support.variable.discard-value.swift" }] }, "expressions-without-trailing-closures-or-member-references-availability-condition": { begin: "\\B(#(?:un)?available)(\\()", beginCaptures: { 1: { name: "support.function.availability-condition.swift" }, 2: { name: "punctuation.definition.arguments.begin.swift" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.arguments.end.swift" } }, patterns: [{ captures: { 1: { name: "keyword.other.platform.os.swift" }, 2: { name: "constant.numeric.swift" } }, match: "\\s*\\b((?:iOS|macOS|OSX|watchOS|tvOS|UIKitForMac)(?:ApplicationExtension)?)\\b(?:\\s+([0-9]+(?:\\.[0-9]+)*\\b))" }, { captures: { 1: { name: "keyword.other.platform.all.swift" }, 2: { name: "invalid.illegal.character-not-allowed-here.swift" } }, match: "(\\*)\\s*(.*?)(?=[,)])" }, { match: "[^\\s,)]+", name: "invalid.illegal.character-not-allowed-here.swift" }] }, "expressions-without-trailing-closures-or-member-references-closure-parameter": { match: "\\$[0-9]+", name: "variable.language.closure-parameter.swift" }, "expressions-without-trailing-closures-or-member-references-compound-name": { captures: { 1: { name: "entity.name.function.compound-name.swift" }, 2: { name: "punctuation.definition.entity.swift" }, 3: { name: "punctuation.definition.entity.swift" }, 4: { patterns: [{ captures: { 1: { name: "punctuation.definition.entity.swift" }, 2: { name: "punctuation.definition.entity.swift" } }, match: "(?<q>`?)(?!_:)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>):", name: "entity.name.function.compound-name.swift" }] } }, comment: "a reference to a function with disambiguating argument labels, such as foo(_:), foo(bar:), etc.", match: `(?x)
|
|
177
|
+
:`, beginCaptures: { 1: { name: "storage.modifier.async.swift" }, 2: { name: "keyword.other.declaration-specifier.swift" } }, end: "(?=$|[={])", patterns: [{ include: "#declarations-available-types" }] }, "declarations-types-precedencegroup": { patterns: [{ comment: "Precedence groups in the standard library", match: "\\b(?:BitwiseShift|Assignment|RangeFormation|Casting|Addition|NilCoalescing|Comparison|LogicalConjunction|LogicalDisjunction|Default|Ternary|Multiplication|FunctionArrow)Precedence\\b", name: "support.type.swift" }] }, expressions: { comment: "trailing closures need to be parsed before other member references", patterns: [{ include: "#expressions-without-trailing-closures-or-member-references" }, { include: "#expressions-trailing-closure" }, { include: "#member-reference" }] }, "expressions-trailing-closure": { patterns: [{ captures: { 1: { name: "support.function.any-method.swift" }, 2: { name: "punctuation.definition.identifier.swift" }, 3: { name: "punctuation.definition.identifier.swift" } }, comment: "foo { body } -- a call with a trailing closure and no argument clause", match: "(#?(?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))(?=\\s*\\{)", name: "meta.function-call.trailing-closure-only.swift" }, { captures: { 1: { name: "support.function.any-method.trailing-closure-label.swift" }, 2: { name: "punctuation.definition.identifier.swift" }, 3: { name: "punctuation.definition.identifier.swift" }, 4: { name: "punctuation.separator.argument-label.swift" } }, comment: "foo: { body } -- labeled-trailing-closure (SE-0279)", match: "((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))\\s*(:)(?=\\s*\\{)" }] }, "expressions-without-trailing-closures": { patterns: [{ include: "#expressions-without-trailing-closures-or-member-references" }, { include: "#member-references" }] }, "expressions-without-trailing-closures-or-member-references": { patterns: [{ include: "#comments" }, { include: "#code-block" }, { include: "#attributes" }, { include: "#expressions-without-trailing-closures-or-member-references-closure-parameter" }, { include: "#literals" }, { include: "#operators" }, { include: "#builtin-types" }, { include: "#builtin-functions" }, { include: "#builtin-global-functions" }, { include: "#builtin-properties" }, { include: "#expressions-without-trailing-closures-or-member-references-compound-name" }, { include: "#conditionals" }, { include: "#keywords" }, { include: "#expressions-without-trailing-closures-or-member-references-availability-condition" }, { include: "#expressions-without-trailing-closures-or-member-references-function-or-macro-call-expression" }, { include: "#expressions-without-trailing-closures-or-member-references-macro-expansion" }, { include: "#expressions-without-trailing-closures-or-member-references-subscript-expression" }, { include: "#expressions-without-trailing-closures-or-member-references-parenthesized-expression" }, { match: "\\b_\\b", name: "support.variable.discard-value.swift" }] }, "expressions-without-trailing-closures-or-member-references-availability-condition": { begin: "\\B(#(?:un)?available)(\\()", beginCaptures: { 1: { name: "support.function.availability-condition.swift" }, 2: { name: "punctuation.definition.arguments.begin.swift" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.arguments.end.swift" } }, patterns: [{ captures: { 1: { name: "keyword.other.platform.os.swift" }, 2: { name: "constant.numeric.swift" } }, match: "\\s*\\b((?:iOS|macOS|OSX|watchOS|tvOS|visionOS|UIKitForMac)(?:ApplicationExtension)?)\\b(?:\\s+([0-9]+(?:\\.[0-9]+)*\\b))" }, { captures: { 1: { name: "keyword.other.platform.all.swift" }, 2: { name: "invalid.illegal.character-not-allowed-here.swift" } }, match: "(\\*)\\s*(.*?)(?=[,)])" }, { match: "[^\\s,)]+", name: "invalid.illegal.character-not-allowed-here.swift" }] }, "expressions-without-trailing-closures-or-member-references-closure-parameter": { match: "\\$[0-9]+", name: "variable.language.closure-parameter.swift" }, "expressions-without-trailing-closures-or-member-references-compound-name": { captures: { 1: { name: "entity.name.function.compound-name.swift" }, 2: { name: "punctuation.definition.entity.swift" }, 3: { name: "punctuation.definition.entity.swift" }, 4: { patterns: [{ captures: { 1: { name: "punctuation.definition.entity.swift" }, 2: { name: "punctuation.definition.entity.swift" } }, match: "(?<q>`?)(?!_:)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>):", name: "entity.name.function.compound-name.swift" }] } }, comment: "a reference to a function with disambiguating argument labels, such as foo(_:), foo(bar:), etc.", match: `(?x)
|
|
178
178
|
((?<q1>\`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q1>))
|
|
179
179
|
\\(
|
|
180
180
|
(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b2 as yt, z as gt, c as ft, l as w, h as V, t as mt, b3 as xt, b4 as _t, b5 as bt } from "./index-
|
|
2
|
-
import { v as Z } from "./arc-
|
|
1
|
+
import { b2 as yt, z as gt, c as ft, l as w, h as V, t as mt, b3 as xt, b4 as _t, b5 as bt } from "./index-DwEVUtAn.js";
|
|
2
|
+
import { v as Z } from "./arc-TomPQHIy---TPh_09.js";
|
|
3
3
|
var X = function() {
|
|
4
4
|
var n = function(m, i, a, l) {
|
|
5
5
|
for (a = a || {}, l = m.length; l--; a[m[l]] = i)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t from "./html-BZB5lEhh-B74zAnWx.js";
|
|
2
|
-
import n from "./markdown-
|
|
2
|
+
import n from "./markdown-QuoPq0lm-QuoPq0lm.js";
|
|
3
3
|
import a from "./pug-DbFO7359-duYD8LVa.js";
|
|
4
4
|
import i from "./stylus-CAHdVuhm-CAHdVuhm.js";
|
|
5
5
|
import s from "./sass-LqXmC1Fh-LqXmC1Fh.js";
|
|
@@ -14,7 +14,7 @@ import { a as d } from "./coffee-CRlSxcc3-CY091_1T.js";
|
|
|
14
14
|
import g from "./json-B12k4-6m-B12k4-6m.js";
|
|
15
15
|
import p from "./jsonc-v2qGKRJY-v2qGKRJY.js";
|
|
16
16
|
import b from "./json5-CvqQZK9I-CvqQZK9I.js";
|
|
17
|
-
import v from "./yaml-
|
|
17
|
+
import v from "./yaml-BEu5ErCD-82IBfEy4.js";
|
|
18
18
|
import f from "./toml-Dbtbfmwk-Dbtbfmwk.js";
|
|
19
19
|
import h from "./graphql-CT32SSoq-1pBWfpcR.js";
|
|
20
20
|
import { n as y } from "./html-derivative-0y7sV5Qc-D8-muTWn.js";
|
|
@@ -22,9 +22,9 @@ const C = Object.freeze({ fileTypes: [], injectTo: ["text.html.markdown"], injec
|
|
|
22
22
|
var $ = [
|
|
23
23
|
C
|
|
24
24
|
];
|
|
25
|
-
const
|
|
26
|
-
var
|
|
27
|
-
|
|
25
|
+
const x = Object.freeze({ fileTypes: [], injectTo: ["source.vue", "text.html.markdown", "text.html.derivative", "text.pug"], injectionSelector: "L:meta.tag -meta.attribute -meta.ng-binding -entity.name.tag.pug -attribute_value -source.tsx -source.js.jsx, L:meta.element -meta.attribute", name: "vue-directives", patterns: [{ include: "source.vue#vue-directives" }], scopeName: "vue.directives" });
|
|
26
|
+
var j = [
|
|
27
|
+
x
|
|
28
28
|
];
|
|
29
29
|
const k = Object.freeze({ fileTypes: [], injectTo: ["source.vue", "text.html.markdown", "text.html.derivative", "text.pug"], injectionSelector: "L:text.pug -comment -string.comment, L:text.html.derivative -comment.block, L:text.html.markdown -comment.block", name: "vue-interpolations", patterns: [{ include: "source.vue#vue-interpolations" }], scopeName: "vue.interpolations" });
|
|
30
30
|
var z = [
|
|
@@ -35,7 +35,7 @@ var Z = [
|
|
|
35
35
|
...e,
|
|
36
36
|
A
|
|
37
37
|
];
|
|
38
|
-
const w = Object.freeze({ displayName: "Vue", name: "vue", patterns: [{ include: "text.html.basic#comment" }, { include: "#self-closing-tag" }, { begin: "(<)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" } }, end: "(>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, patterns: [{ begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)md\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text.html.markdown", patterns: [{ include: "text.html.markdown" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)html\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text.html.derivative", patterns: [{ include: "#html-stuff" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)pug\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text.pug", patterns: [{ include: "text.pug" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)stylus\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.stylus", patterns: [{ include: "source.stylus" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)postcss\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.postcss", patterns: [{ include: "source.postcss" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)sass\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.sass", patterns: [{ include: "source.sass" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)css\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.css", patterns: [{ include: "source.css" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)scss\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.css.scss", patterns: [{ include: "source.css.scss" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)less\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.css.less", patterns: [{ include: "source.css.less" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)js\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.js", patterns: [{ include: "source.js" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)ts\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.ts", patterns: [{ include: "source.ts" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)jsx\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.js.jsx", patterns: [{ include: "source.js.jsx" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)tsx\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.tsx", patterns: [{ include: "source.tsx" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)coffee\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.coffee", patterns: [{ include: "source.coffee" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)json\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.json", patterns: [{ include: "source.json" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)jsonc\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.json.comments", patterns: [{ include: "source.json.comments" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)json5\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.json5", patterns: [{ include: "source.json5" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)yaml\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.yaml", patterns: [{ include: "source.yaml" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)toml\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.toml", patterns: [{ include: "source.toml" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)(gql|graphql)\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.graphql", patterns: [{ include: "source.graphql" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)vue\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.vue", patterns: [{ include: "source.vue" }] }] }, { begin: "(template)\\b", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/template\\b)", name: "text.html.derivative", patterns: [{ include: "#html-stuff" }] }] }, { begin: "(script)\\b", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/script\\b)", name: "source.js", patterns: [{ include: "source.js" }] }] }, { begin: "(style)\\b", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/style\\b)", name: "source.css", patterns: [{ include: "source.css" }] }] }, { begin: "([a-zA-Z0-9:-]+)", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text" }] }] }], repository: { "html-stuff": { patterns: [{ include: "#template-tag" }, { include: "text.html.derivative" }, { include: "text.html.basic" }] }, "self-closing-tag": { begin: "(<)([a-zA-Z0-9:-]+)(?=([^>]+/>))", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, end: "(/>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "self-closing-tag", patterns: [{ include: "#tag-stuff" }] }, "tag-stuff": { begin: "\\G", end: "(?=/>)|(>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "meta.tag-stuff", patterns: [{ include: "#vue-directives" }, { include: "text.html.basic#attribute" }] }, "template-tag": { patterns: [{ include: "#template-tag-1" }, { include: "#template-tag-2" }] }, "template-tag-1": { begin: "(<)(template)\\b(>)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" }, 3: { name: "punctuation.definition.tag.end.html.vue" } }, end: "(/?>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "meta.template-tag.start", patterns: [{ begin: "\\G", end: "(?=/>)|((</)(template)\\b)", endCaptures: { 2: { name: "punctuation.definition.tag.begin.html.vue" }, 3: { name: "entity.name.tag.$3.html.vue" } }, name: "meta.template-tag.end", patterns: [{ include: "#html-stuff" }] }] }, "template-tag-2": { begin: "(<)(template)\\b", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, end: "(/?>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "meta.template-tag.start", patterns: [{ begin: "\\G", end: "(?=/>)|((</)(template)\\b)", endCaptures: { 2: { name: "punctuation.definition.tag.begin.html.vue" }, 3: { name: "entity.name.tag.$3.html.vue" } }, name: "meta.template-tag.end", patterns: [{ include: "#tag-stuff" }, { include: "#html-stuff" }] }] }, "vue-directives": { patterns: [{ include: "#vue-directives-control" }, { include: "#vue-directives-style-attr" }, { include: "#vue-directives-original" }, { include: "#vue-directives-generic-attr" }] }, "vue-directives-control": { begin: "(v-for)|(v-if|v-else-if|v-else)", captures: { 1: { name: "keyword.control.loop.vue" }, 2: { name: "keyword.control.conditional.vue" } }, end: "(?=\\s*+[^=\\s])", name: "meta.attribute.directive.control.vue", patterns: [{ include: "#vue-directives-expression" }] }, "vue-directives-expression": { patterns: [{ begin: "(=)\\s*('|\"|`)", beginCaptures: { 1: { name: "punctuation.separator.key-value.html.vue" }, 2: { name: "punctuation.definition.string.begin.html.vue" } }, end: "(\\2)", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, patterns: [{ begin: "(?<=('|\"|`))", end: "(?=\\1)", name: "source.ts.embedded.html.vue", patterns: [{ include: "source.ts#expression" }] }] }, { begin: "(=)\\s*(?=[^'\"`])", beginCaptures: { 1: { name: "punctuation.separator.key-value.html.vue" } }, end: "(?=(\\s|>|\\/>))", patterns: [{ begin: "(?=[^'\"`])", end: "(?=(\\s|>|\\/>))", name: "source.ts.embedded.html.vue", patterns: [{ include: "source.ts#expression" }] }] }] }, "vue-directives-generic-attr": { begin: "\\b(generic)\\s*(=)", captures: { 1: { name: "entity.other.attribute-name.html.vue" }, 2: { name: "punctuation.separator.key-value.html.vue" } }, end: `(?<='|")`, name: "meta.attribute.generic.vue", patterns: [{ begin: `('|")`, beginCaptures: { 1: { name: "punctuation.definition.string.begin.html.vue" } }, comment: "https://github.com/microsoft/vscode/blob/fd4346210f59135fad81a8b8c4cea7bf5a9ca6b4/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json#L4002-L4020", end: "(\\1)", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, name: "meta.type.parameters.vue", patterns: [{ include: "source.ts#comment" }, { match: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(extends|in|out)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", name: "storage.modifier.ts" }, { include: "source.ts#type" }, { include: "source.ts#punctuation-comma" }, { match: "(=)(?!>)", name: "keyword.operator.assignment.ts" }] }] }, "vue-directives-original": { begin: "(?:\\b(v-)|([:\\.])|(@)|(#))(\\[?)([\\w\\-]*)(\\]?)(?:\\.([\\w\\-]*))*", beginCaptures: { 1: { name: "entity.other.attribute-name.html.vue" }, 2: { name: "punctuation.attribute-shorthand.bind.html.vue" }, 3: { name: "punctuation.attribute-shorthand.event.html.vue" }, 4: { name: "punctuation.attribute-shorthand.slot.html.vue" }, 5: { name: "punctuation.separator.key-value.html.vue" }, 6: { name: "entity.other.attribute-name.html.vue" }, 7: { name: "punctuation.separator.key-value.html.vue" }, 8: { name: "entity.other.attribute-name.html.vue" }, 9: { name: "punctuation.separator.key-value.html.vue" } }, end: "(?=\\s*+[^=\\s])", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, name: "meta.attribute.directive.vue", patterns: [{ include: "#vue-directives-expression" }] }, "vue-directives-style-attr": { begin: "\\b(style)\\s*(=)", captures: { 1: { name: "entity.other.attribute-name.html.vue" }, 2: { name: "punctuation.separator.key-value.html.vue" } }, end: `(?<='|")`, name: "meta.attribute.style.vue", patterns: [{ begin: `('|")`, beginCaptures: { 1: { name: "punctuation.definition.string.begin.html.vue" } }, comment: "Copy from source.css#rule-list-innards", end: "(\\1)", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, name: "source.css.embedded.html.vue", patterns: [{ include: "source.css#comment-block" }, { include: "source.css#escapes" }, { include: "source.css#font-features" }, { match: `(?x) (?<![\\w-])
|
|
38
|
+
const w = Object.freeze({ displayName: "Vue", name: "vue", patterns: [{ include: "text.html.basic#comment" }, { include: "#self-closing-tag" }, { begin: "(<)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" } }, end: "(>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, patterns: [{ begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)md\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text.html.markdown", patterns: [{ include: "text.html.markdown" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)html\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text.html.derivative", patterns: [{ include: "#html-stuff" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)pug\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text.pug", patterns: [{ include: "text.pug" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)stylus\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.stylus", patterns: [{ include: "source.stylus" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)postcss\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.postcss", patterns: [{ include: "source.postcss" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)sass\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.sass", patterns: [{ include: "source.sass" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)css\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.css", patterns: [{ include: "source.css" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)scss\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.css.scss", patterns: [{ include: "source.css.scss" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)less\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.css.less", patterns: [{ include: "source.css.less" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)js\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.js", patterns: [{ include: "source.js" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)ts\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.ts", patterns: [{ include: "source.ts" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)jsx\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.js.jsx", patterns: [{ include: "source.js.jsx" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)tsx\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.tsx", patterns: [{ include: "source.tsx" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)coffee\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.coffee", patterns: [{ include: "source.coffee" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)json\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.json", patterns: [{ include: "source.json" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)jsonc\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.json.comments", patterns: [{ include: "source.json.comments" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)json5\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.json5", patterns: [{ include: "source.json5" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)yaml\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.yaml", patterns: [{ include: "source.yaml" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)toml\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.toml", patterns: [{ include: "source.toml" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)(gql|graphql)\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.graphql", patterns: [{ include: "source.graphql" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)vue\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.vue", patterns: [{ include: "source.vue" }] }] }, { begin: "(template)\\b", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/template\\b)", name: "text.html.derivative", patterns: [{ include: "#html-stuff" }] }] }, { begin: "(script)\\b", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/script\\b)", name: "source.js", patterns: [{ include: "source.js" }] }] }, { begin: "(style)\\b", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/style\\b)", name: "source.css", patterns: [{ include: "source.css" }] }] }, { begin: "([a-zA-Z0-9:-]+)", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text" }] }] }], repository: { "html-stuff": { patterns: [{ include: "#template-tag" }, { include: "text.html.derivative" }, { include: "text.html.basic" }] }, "self-closing-tag": { begin: "(<)([a-zA-Z0-9:-]+)(?=([^>]+/>))", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, end: "(/>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "self-closing-tag", patterns: [{ include: "#tag-stuff" }] }, "tag-stuff": { begin: "\\G", end: "(?=/>)|(>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "meta.tag-stuff", patterns: [{ include: "#vue-directives" }, { include: "text.html.basic#attribute" }] }, "template-tag": { patterns: [{ include: "#template-tag-1" }, { include: "#template-tag-2" }] }, "template-tag-1": { begin: "(<)(template)\\b(>)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" }, 3: { name: "punctuation.definition.tag.end.html.vue" } }, end: "(/?>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "meta.template-tag.start", patterns: [{ begin: "\\G", end: "(?=/>)|((</)(template)\\b)", endCaptures: { 2: { name: "punctuation.definition.tag.begin.html.vue" }, 3: { name: "entity.name.tag.$3.html.vue" } }, name: "meta.template-tag.end", patterns: [{ include: "#html-stuff" }] }] }, "template-tag-2": { begin: "(<)(template)\\b", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, end: "(/?>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "meta.template-tag.start", patterns: [{ begin: "\\G", end: "(?=/>)|((</)(template)\\b)", endCaptures: { 2: { name: "punctuation.definition.tag.begin.html.vue" }, 3: { name: "entity.name.tag.$3.html.vue" } }, name: "meta.template-tag.end", patterns: [{ include: "#tag-stuff" }, { include: "#html-stuff" }] }] }, "vue-directives": { patterns: [{ include: "#vue-directives-control" }, { include: "#vue-directives-style-attr" }, { include: "#vue-directives-original" }, { include: "#vue-directives-generic-attr" }] }, "vue-directives-control": { begin: "(v-for)|(v-if|v-else-if|v-else)", captures: { 1: { name: "keyword.control.loop.vue" }, 2: { name: "keyword.control.conditional.vue" } }, end: "(?=\\s*+[^=\\s])", name: "meta.attribute.directive.control.vue", patterns: [{ include: "#vue-directives-expression" }] }, "vue-directives-expression": { patterns: [{ begin: "(=)\\s*('|\"|`)", beginCaptures: { 1: { name: "punctuation.separator.key-value.html.vue" }, 2: { name: "punctuation.definition.string.begin.html.vue" } }, end: "(\\2)", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, patterns: [{ begin: "(?<=('|\"|`))", end: "(?=\\1)", name: "source.ts.embedded.html.vue", patterns: [{ include: "source.ts#expression" }] }] }, { begin: "(=)\\s*(?=[^'\"`])", beginCaptures: { 1: { name: "punctuation.separator.key-value.html.vue" } }, end: "(?=(\\s|>|\\/>))", patterns: [{ begin: "(?=[^'\"`])", end: "(?=(\\s|>|\\/>))", name: "source.ts.embedded.html.vue", patterns: [{ include: "source.ts#expression" }] }] }] }, "vue-directives-generic-attr": { begin: "\\b(generic)\\s*(=)", captures: { 1: { name: "entity.other.attribute-name.html.vue" }, 2: { name: "punctuation.separator.key-value.html.vue" } }, end: `(?<='|")`, name: "meta.attribute.generic.vue", patterns: [{ begin: `('|")`, beginCaptures: { 1: { name: "punctuation.definition.string.begin.html.vue" } }, comment: "https://github.com/microsoft/vscode/blob/fd4346210f59135fad81a8b8c4cea7bf5a9ca6b4/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json#L4002-L4020", end: "(\\1)", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, name: "meta.type.parameters.vue", patterns: [{ include: "source.ts#comment" }, { match: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(extends|in|out)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", name: "storage.modifier.ts" }, { include: "source.ts#type" }, { include: "source.ts#punctuation-comma" }, { match: "(=)(?!>)", name: "keyword.operator.assignment.ts" }] }] }, "vue-directives-original": { begin: "(?:(?:(v-[\\w-]+)(:)?)|([:\\.])|(@)|(#))(?:(?:(\\[)([^\\]]*)(\\]))|([\\w-]+))?", beginCaptures: { 1: { name: "entity.other.attribute-name.html.vue" }, 2: { name: "punctuation.separator.key-value.html.vue" }, 3: { name: "punctuation.attribute-shorthand.bind.html.vue" }, 4: { name: "punctuation.attribute-shorthand.event.html.vue" }, 5: { name: "punctuation.attribute-shorthand.slot.html.vue" }, 6: { name: "punctuation.separator.key-value.html.vue" }, 7: { name: "source.ts.embedded.html.vue", patterns: [{ include: "source.ts#expression" }] }, 8: { name: "punctuation.separator.key-value.html.vue" }, 9: { name: "entity.other.attribute-name.html.vue" } }, end: "(?=\\s*[^=\\s])", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, name: "meta.attribute.directive.vue", patterns: [{ 1: { name: "punctuation.separator.key-value.html.vue" }, 2: { name: "entity.other.attribute-name.html.vue" }, match: "(\\.)([\\w-]*)" }, { include: "#vue-directives-expression" }] }, "vue-directives-style-attr": { begin: "\\b(style)\\s*(=)", captures: { 1: { name: "entity.other.attribute-name.html.vue" }, 2: { name: "punctuation.separator.key-value.html.vue" } }, end: `(?<='|")`, name: "meta.attribute.style.vue", patterns: [{ begin: `('|")`, beginCaptures: { 1: { name: "punctuation.definition.string.begin.html.vue" } }, comment: "Copy from source.css#rule-list-innards", end: "(\\1)", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, name: "source.css.embedded.html.vue", patterns: [{ include: "source.css#comment-block" }, { include: "source.css#escapes" }, { include: "source.css#font-features" }, { match: `(?x) (?<![\\w-])
|
|
39
39
|
--
|
|
40
40
|
(?:[-a-zA-Z_] | [^\\x00-\\x7F])
|
|
41
41
|
(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F]
|
|
@@ -63,7 +63,7 @@ var Q = [
|
|
|
63
63
|
...h,
|
|
64
64
|
...y,
|
|
65
65
|
...$,
|
|
66
|
-
...
|
|
66
|
+
...j,
|
|
67
67
|
...z,
|
|
68
68
|
...Z,
|
|
69
69
|
w
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import t from "./vue-
|
|
1
|
+
import t from "./vue-CdtKg2_f-Bw_hVDv3.js";
|
|
2
2
|
import e from "./javascript-DqVBMyXe-DqVBMyXe.js";
|
|
3
3
|
const n = Object.freeze({ displayName: "Vue HTML", fileTypes: [], name: "vue-html", patterns: [{ include: "source.vue#vue-interpolations" }, { begin: "(<)([A-Z][a-zA-Z0-9:-]*)(?=[^>]*></\\2>)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html" }, 2: { name: "support.class.component.html" } }, end: "(>)(<)(/)(\\2)(>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html" }, 2: { name: "punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html" }, 3: { name: "punctuation.definition.tag.begin.html" }, 4: { name: "support.class.component.html" }, 5: { name: "punctuation.definition.tag.end.html" } }, name: "meta.tag.any.html", patterns: [{ include: "#tag-stuff" }] }, { begin: "(<)([a-z][a-zA-Z0-9:-]*)(?=[^>]*></\\2>)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html" }, 2: { name: "entity.name.tag.html" } }, end: "(>)(<)(/)(\\2)(>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html" }, 2: { name: "punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html" }, 3: { name: "punctuation.definition.tag.begin.html" }, 4: { name: "entity.name.tag.html" }, 5: { name: "punctuation.definition.tag.end.html" } }, name: "meta.tag.any.html", patterns: [{ include: "#tag-stuff" }] }, { begin: "(<\\?)(xml)", captures: { 1: { name: "punctuation.definition.tag.html" }, 2: { name: "entity.name.tag.xml.html" } }, end: "(\\?>)", name: "meta.tag.preprocessor.xml.html", patterns: [{ include: "#tag-generic-attribute" }, { include: "#string-double-quoted" }, { include: "#string-single-quoted" }] }, { begin: "<!--", captures: { 0: { name: "punctuation.definition.comment.html" } }, end: "-->", name: "comment.block.html" }, { begin: "<!", captures: { 0: { name: "punctuation.definition.tag.html" } }, end: ">", name: "meta.tag.sgml.html", patterns: [{ begin: "(?i:DOCTYPE)", captures: { 1: { name: "entity.name.tag.doctype.html" } }, end: "(?=>)", name: "meta.tag.sgml.doctype.html", patterns: [{ match: '"[^">]*"', name: "string.quoted.double.doctype.identifiers-and-DTDs.html" }] }, { begin: "\\[CDATA\\[", end: "]](?=>)", name: "constant.other.inline-data.html" }, { match: "(\\s*)(?!--|>)\\S(\\s*)", name: "invalid.illegal.bad-comments-or-CDATA.html" }] }, { begin: "(</?)([A-Z][a-zA-Z0-9:-]*\\b)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html" }, 2: { name: "support.class.component.html" } }, end: "(>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html" } }, name: "meta.tag.block.any.html", patterns: [{ include: "#tag-stuff" }] }, { begin: "(</?)([a-z][a-zA-Z0-9:-]*\\b)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html" }, 2: { name: "entity.name.tag.block.any.html" } }, end: "(>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html" } }, name: "meta.tag.block.any.html", patterns: [{ include: "#tag-stuff" }] }, { begin: "(</?)((?i:body|head|html)\\b)", captures: { 1: { name: "punctuation.definition.tag.begin.html" }, 2: { name: "entity.name.tag.structure.any.html" } }, end: "(>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html" } }, name: "meta.tag.structure.any.html", patterns: [{ include: "#tag-stuff" }] }, { begin: "(</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)(?!-)\\b)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html" }, 2: { name: "entity.name.tag.block.any.html" } }, end: "(>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html" } }, name: "meta.tag.block.any.html", patterns: [{ include: "#tag-stuff" }] }, { begin: "(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?!-)\\b)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html" }, 2: { name: "entity.name.tag.inline.any.html" } }, end: "(/?>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html" } }, name: "meta.tag.inline.any.html", patterns: [{ include: "#tag-stuff" }] }, { begin: "(</?)([a-zA-Z0-9:-]+)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html" }, 2: { name: "entity.name.tag.other.html" } }, end: "(/?>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html" } }, name: "meta.tag.other.html", patterns: [{ include: "#tag-stuff" }] }, { include: "#entities" }, { match: "<>", name: "invalid.illegal.incomplete.html" }, { match: "<", name: "invalid.illegal.bad-angle-bracket.html" }], repository: { entities: { patterns: [{ captures: { 1: { name: "punctuation.definition.entity.html" }, 3: { name: "punctuation.definition.entity.html" } }, match: "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)", name: "constant.character.entity.html" }, { match: "&", name: "invalid.illegal.bad-ampersand.html" }] }, "string-double-quoted": { begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.html" } }, end: '"', endCaptures: { 0: { name: "punctuation.definition.string.end.html" } }, name: "string.quoted.double.html", patterns: [{ include: "source.vue#vue-interpolations" }, { include: "#entities" }] }, "string-single-quoted": { begin: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.html" } }, end: "'", endCaptures: { 0: { name: "punctuation.definition.string.end.html" } }, name: "string.quoted.single.html", patterns: [{ include: "source.vue#vue-interpolations" }, { include: "#entities" }] }, "tag-generic-attribute": { match: "(?<=[^=])\\b([a-zA-Z0-9:\\-_]+)", name: "entity.other.attribute-name.html" }, "tag-id-attribute": { begin: "\\b(id)\\b\\s*(=)", captures: { 1: { name: "entity.other.attribute-name.id.html" }, 2: { name: "punctuation.separator.key-value.html" } }, end: `(?!\\G)(?<='|"|[^\\s<>/])`, name: "meta.attribute-with-value.id.html", patterns: [{ begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.html" } }, contentName: "meta.toc-list.id.html", end: '"', endCaptures: { 0: { name: "punctuation.definition.string.end.html" } }, name: "string.quoted.double.html", patterns: [{ include: "source.vue#vue-interpolations" }, { include: "#entities" }] }, { begin: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.html" } }, contentName: "meta.toc-list.id.html", end: "'", endCaptures: { 0: { name: "punctuation.definition.string.end.html" } }, name: "string.quoted.single.html", patterns: [{ include: "source.vue#vue-interpolations" }, { include: "#entities" }] }, { captures: { 0: { name: "meta.toc-list.id.html" } }, match: `(?<==)(?:[^\\s<>/'"]|/(?!>))+`, name: "string.unquoted.html" }] }, "tag-stuff": { patterns: [{ include: "#vue-directives" }, { include: "#tag-id-attribute" }, { include: "#tag-generic-attribute" }, { include: "#string-double-quoted" }, { include: "#string-single-quoted" }, { include: "#unquoted-attribute" }] }, "unquoted-attribute": { match: `(?<==)(?:[^\\s<>/'"]|/(?!>))+`, name: "string.unquoted.html" }, "vue-directives": { begin: "(?:\\b(v-)|(:|@|#))([a-zA-Z0-9\\-_]+)(?:\\:([a-zA-Z\\-_]+))?(?:\\.([a-zA-Z\\-_]+))*\\s*(=)", captures: { 1: { name: "entity.other.attribute-name.html" }, 2: { name: "punctuation.separator.key-value.html" }, 3: { name: "entity.other.attribute-name.html" }, 4: { name: "entity.other.attribute-name.html" }, 5: { name: "entity.other.attribute-name.html" }, 6: { name: "punctuation.separator.key-value.html" } }, end: "(?<='|\")|(?=[\\s<>`])", name: "meta.directive.vue", patterns: [{ begin: "`", beginCaptures: { 0: { name: "punctuation.definition.string.begin.html" } }, end: "`", endCaptures: { 0: { name: "punctuation.definition.string.end.html" } }, name: "source.directive.vue", patterns: [{ include: "source.js#expression" }] }, { begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.html" } }, end: '"', endCaptures: { 0: { name: "punctuation.definition.string.end.html" } }, name: "source.directive.vue", patterns: [{ include: "source.js#expression" }] }, { begin: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.html" } }, end: "'", endCaptures: { 0: { name: "punctuation.definition.string.end.html" } }, name: "source.directive.vue", patterns: [{ include: "source.js#expression" }] }] } }, scopeName: "text.html.vue-html", embeddedLangs: ["vue", "javascript"] });
|
|
4
4
|
var m = [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { aZ as Ft, a_ as at, aK as At, aJ as Nt, s as Ot, g as Vt, v as Wt, x as St, a as Xt, b as Yt, z as Ut, l as wt, aI as Ht, i as Qt, d as Gt } from "./index-
|
|
2
|
-
import { Q as jt } from "./createText-423428c9-
|
|
1
|
+
import { aZ as Ft, a_ as at, aK as At, aJ as Nt, s as Ot, g as Vt, v as Wt, x as St, a as Xt, b as Yt, z as Ut, l as wt, aI as Ht, i as Qt, d as Gt } from "./index-DwEVUtAn.js";
|
|
2
|
+
import { Q as jt } from "./createText-423428c9-DeHbckoy-BD9j3egy.js";
|
|
3
3
|
import { t as Zt } from "./init-DjUOC4st-C8Nwz6AJ.js";
|
|
4
4
|
import { h as Kt } from "./ordinal-MUacOSdK-B1MUT0BL.js";
|
|
5
|
-
import { Z as dt } from "./linear-
|
|
6
|
-
import { P as pt } from "./line-
|
|
5
|
+
import { Z as dt } from "./linear-cwTFOJBq-CaAAYk8b.js";
|
|
6
|
+
import { P as pt } from "./line-JCh8JM-V-BbfA3RBV.js";
|
|
7
7
|
function Jt(e, t, i) {
|
|
8
8
|
e = +e, t = +t, i = (n = arguments.length) < 2 ? (t = e, e = 0, 1) : n < 3 ? 1 : +i;
|
|
9
9
|
for (var s = -1, n = Math.max(0, Math.ceil((t - e) / i)) | 0, o = new Array(n); ++s < n; )
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = Object.freeze({ displayName: "YAML", name: "yaml", patterns: [{ include: "#comment" }, { include: "#property" }, { include: "#directive" }, { match: "^---", name: "entity.other.document.begin.yaml" }, { match: "^\\.{3}", name: "entity.other.document.end.yaml" }, { include: "#node" }], repository: { "block-collection": { patterns: [{ include: "#block-sequence" }, { include: "#block-mapping" }] }, "block-mapping": { patterns: [{ include: "#block-pair" }] }, "block-node": { patterns: [{ include: "#prototype" }, { include: "#block-scalar" }, { include: "#block-collection" }, { include: "#flow-scalar-plain-out" }, { include: "#flow-node" }] }, "block-pair": { patterns: [{ begin: "\\?", beginCaptures: { 1: { name: "punctuation.definition.key-value.begin.yaml" } }, end: "(?=\\?)|^ *(:)|(:)", endCaptures: { 1: { name: "punctuation.separator.key-value.mapping.yaml" }, 2: { name: "invalid.illegal.expected-newline.yaml" } }, name: "meta.block-mapping.yaml", patterns: [{ include: "#block-node" }] }, { begin: `(?x)
|
|
1
|
+
const e = Object.freeze({ displayName: "YAML", fileTypes: ["yaml", "yml", "rviz", "reek", "clang-format", "yaml-tmlanguage", "syntax", "sublime-syntax"], firstLineMatch: "^%YAML( ?1.\\d+)?", name: "yaml", patterns: [{ include: "#comment" }, { include: "#property" }, { include: "#directive" }, { match: "^---", name: "entity.other.document.begin.yaml" }, { match: "^\\.{3}", name: "entity.other.document.end.yaml" }, { include: "#node" }], repository: { "block-collection": { patterns: [{ include: "#block-sequence" }, { include: "#block-mapping" }] }, "block-mapping": { patterns: [{ include: "#block-pair" }] }, "block-node": { patterns: [{ include: "#prototype" }, { include: "#block-scalar" }, { include: "#block-collection" }, { include: "#flow-scalar-plain-out" }, { include: "#flow-node" }] }, "block-pair": { patterns: [{ begin: "\\?", beginCaptures: { 1: { name: "punctuation.definition.key-value.begin.yaml" } }, end: "(?=\\?)|^ *(:)|(:)", endCaptures: { 1: { name: "punctuation.separator.key-value.mapping.yaml" }, 2: { name: "invalid.illegal.expected-newline.yaml" } }, name: "meta.block-mapping.yaml", patterns: [{ include: "#block-node" }] }, { begin: `(?x)
|
|
2
2
|
(?=
|
|
3
3
|
(?x:
|
|
4
4
|
[^\\s[-?:,\\[\\]{}#&*!|>'"%@\`]]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/documentation",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/documentation.umd.js",
|
|
6
6
|
"module": "./dist/documentation.es.js",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kong/icons": "^1.14.
|
|
25
|
-
"@kong/markdown": "1.7.
|
|
26
|
-
"@kong-ui-public/entities-shared": "^3.4.
|
|
24
|
+
"@kong/icons": "^1.14.2",
|
|
25
|
+
"@kong/markdown": "1.7.6",
|
|
26
|
+
"@kong-ui-public/entities-shared": "^3.4.2"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@kong/kongponents": "^9.0.
|
|
29
|
+
"@kong/kongponents": "^9.0.8",
|
|
30
30
|
"vue": "^3.4.27",
|
|
31
31
|
"@kong-ui-public/i18n": "^2.2.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@kong/design-tokens": "1.15.1",
|
|
35
|
-
"@kong/kongponents": "9.0.
|
|
35
|
+
"@kong/kongponents": "9.0.8",
|
|
36
36
|
"axios": "^1.6.8",
|
|
37
37
|
"vue": ">= 3.3.13 < 4",
|
|
38
38
|
"@kong-ui-public/i18n": "^2.2.2"
|