@kong-ui-public/documentation 0.4.3 → 0.4.4

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.
Files changed (57) hide show
  1. package/dist/{arc-BSRpyMf3-DfiBlVQ8.js → arc-C2t0ExPw-C4e2PVYy.js} +1 -1
  2. package/dist/astro-D4FIwVxr-CovDYZfT.js +58 -0
  3. package/dist/{blockDiagram-6b2b5046-D02VCbQO-Biw8a3Gb.js → blockDiagram-6b2b5046-BabM1eIl-B1WAFoFS.js} +5 -5
  4. package/dist/{c4Diagram-b947cdbb-gYcL5VzP-DRzIbvKU.js → c4Diagram-b947cdbb-BBGJ9ivn-D2lIt2__.js} +2 -2
  5. package/dist/{channel-DHTQ8Ynn-Dw_fpJTx.js → channel-DXyvEer2-B9963nMw.js} +1 -1
  6. package/dist/{classDiagram-35230388-JdSKLSZv-DXcBaf87.js → classDiagram-35230388-CRYNduH8-BHU1sLy9.js} +5 -5
  7. package/dist/{classDiagram-v2-412acd34-DFFRHXE_-BhiEisbZ.js → classDiagram-v2-412acd34-5HbyJrnL-CN8uWqLr.js} +5 -5
  8. package/dist/{clone-p6h9XXNm-C78-TaP0.js → clone-BoeTe_OS-BEC7l3rJ.js} +1 -1
  9. package/dist/{createText-423428c9-LivTKT7b-C3-P5SOF.js → createText-423428c9-Q0HfccbL-BLtEGSzf.js} +1 -1
  10. package/dist/documentation.es.js +1 -1
  11. package/dist/documentation.umd.js +231 -200
  12. package/dist/{edges-d417c7a0-C1ggiwWz-BLkdrJ5R.js → edges-d417c7a0-DEJA2PwU-BNRQat2t.js} +3 -3
  13. package/dist/{erDiagram-0ea73325-mz0Z_-DA-DkNi0ZZN.js → erDiagram-0ea73325-C3DQ6B1e-B5Rrft4o.js} +4 -4
  14. package/dist/{flowDb-d35e309a-CPyxEMIt-ZRSiJ40G.js → flowDb-d35e309a-RvFFqjek-D-9nhzeX.js} +1 -1
  15. package/dist/{flowDiagram-d949d7c1-DqCa0HNN-B1nXTfQy.js → flowDiagram-d949d7c1-Boa20b_n-e2wSrZzt.js} +6 -6
  16. package/dist/{flowDiagram-v2-49332944-UMosz1sZ-DrLBh-E0.js → flowDiagram-v2-49332944-BJtijxhz-eRcYpz1M.js} +5 -5
  17. package/dist/{flowchart-elk-definition-27cc417a-D2UKpS6N-BDlq2G6v.js → flowchart-elk-definition-27cc417a-BBD3LS9k-C6RPoRDj.js} +4 -4
  18. package/dist/{ganttDiagram-5c869e3b-CVBHw4pG-Cli439MO.js → ganttDiagram-5c869e3b-CRDFjzTp-DZo39g5w.js} +2 -2
  19. package/dist/{gitGraphDiagram-b9d81de9-BGm3fU0n-B1sNBQdo.js → gitGraphDiagram-b9d81de9-D1rNIGL0-h0UkRNJn.js} +1 -1
  20. package/dist/go-DH2kSaeI-DH2kSaeI.js +7 -0
  21. package/dist/{graph-4FyIWFHN-BscqHiRD.js → graph-BIq67vWs-LA_m-7g5.js} +1 -1
  22. package/dist/{haml-8RvrfhLO-Bbc4xoLP.js → haml-BT5dFrjs-CmYUmNQ_.js} +1 -1
  23. package/dist/http-DSIFYUfg-BZm1KGvb.js +15 -0
  24. package/dist/{index-8fae9850-_CN7MNjP-il_sEjrK.js → index-8fae9850-CaUboB89-DMTF3atd.js} +6 -6
  25. package/dist/index-DvRFVEGL.js +29995 -0
  26. package/dist/{infoDiagram-db7b18fc-V446j9uR-B1DH0Ehl.js → infoDiagram-db7b18fc-DKsewKnu-DiUcCTtI.js} +1 -1
  27. package/dist/{journeyDiagram-d5636530-CFiu7dnV-wCbflCBb.js → journeyDiagram-d5636530-ClddNDmR-Cno3ZZVv.js} +3 -3
  28. package/dist/{latex-Bw_ghldO-BlUAi6pB.js → latex-QX-FNvxY-DfqkUAVR.js} +1 -1
  29. package/dist/{layout-2-aEcfuw-DKVVk2ac.js → layout-Cz0dAJah-C2Ql7ZSU.js} +2 -2
  30. package/dist/{line-nVq5kEiy-BMvfHXF7.js → line-BCVITS7s-Anu55pMJ.js} +1 -1
  31. package/dist/{linear-Bz4oRFvQ-s25kUfv8.js → linear-CLHAbj67-BGejs378.js} +1 -1
  32. package/dist/{markdown-DYKdIx5--DYKdIx5-.js → markdown-BTiqg07I-BTiqg07I.js} +1 -1
  33. package/dist/{mdc-D0DPLwil-BfE3hy8_.js → mdc-CnRHmEvX-kCov4J3y.js} +1 -1
  34. package/dist/{mindmap-definition-377f8f1f-C2vFYDMs-DKU2Q4vn.js → mindmap-definition-377f8f1f-BwEJ-DVg-BQTqrlTd.js} +2 -2
  35. package/dist/nginx-Di_jaaDw-DY2n-P23.js +9 -0
  36. package/dist/{pieDiagram-b0208e96-DhA_SoTh-qvgo6Ar8.js → pieDiagram-b0208e96-Cyz2Kcfu-jdhZLsVz.js} +2 -2
  37. package/dist/{quadrantDiagram-0332be45-C8q96Ohm-Butl4dmM.js → quadrantDiagram-0332be45-CDMkEQj0-Dq8vjQCi.js} +2 -2
  38. package/dist/{requirementDiagram-bf7890df-D30zCZjB-FCxgWWKE.js → requirementDiagram-bf7890df-Jk3SQ-Q1-CFh95_JW.js} +4 -4
  39. package/dist/{sankeyDiagram-0acdec17-B4vNjMaS-Blbu4o4R.js → sankeyDiagram-0acdec17-BJuIUJd_-2lpR33Xi.js} +1 -1
  40. package/dist/{sequenceDiagram-c18d009d-BniqGSPK-BWzZ6_e1.js → sequenceDiagram-c18d009d-B4IxGCEM-DnDAtNoF.js} +2 -2
  41. package/dist/{stateDiagram-43596fc0-F0V9suMd-_20qXzGz.js → stateDiagram-43596fc0-0xEMkbt_-DgAwRqrW.js} +5 -5
  42. package/dist/{stateDiagram-v2-2ead4f9c-DUgJH8tF-Bk2moq9L.js → stateDiagram-v2-2ead4f9c-DS4afpcC-DubjvGN9.js} +5 -5
  43. package/dist/{styles-6860f46c-Dflmq0ac-CCWTr3Qc.js → styles-6860f46c-ZdhsT5S9-DzxtwCvw.js} +1 -1
  44. package/dist/{styles-7383a064-Dg7mXkpq-CTa7dpTX.js → styles-7383a064-C7WyH3qz-CEHVo3tw.js} +4 -4
  45. package/dist/{styles-b2c874b6-HpcOhE4Y-ByOXSbWi.js → styles-b2c874b6-BFg-Nblp-jsWmR-cD.js} +1 -1
  46. package/dist/{svelte-DAxjO8Sh-D0e501jC.js → svelte-55Eq-wPD-ukfPHbmn.js} +1 -1
  47. package/dist/{svgDrawCommon-0ee1b4e9-CNkCfzsJ-B5FYSDYt.js → svgDrawCommon-0ee1b4e9-CpOZq9bS-B5XnrcWY.js} +1 -1
  48. package/dist/{timeline-definition-d977decf-Cl38e_0g-oZIJDTGt.js → timeline-definition-d977decf-BqZwyTB6-B8SbuwHB.js} +2 -2
  49. package/dist/{vue-Dz-azHaT-B9qBHMZi.js → vue-CSburxZD-BLgngoKd.js} +2 -2
  50. package/dist/{vue-html-DIGKAAs4-BeHSIJcx.js → vue-html-Dqg1mUyY-DQ3h4F3M.js} +1 -1
  51. package/dist/{xychartDiagram-e50adddc-JdLmRUgg-VZfrihSd.js → xychartDiagram-e50adddc-C1fuuOEQ-CFqyDwCV.js} +4 -4
  52. package/package.json +2 -2
  53. package/dist/astro-mwoSwJnq-CNh-xuM0.js +0 -27
  54. package/dist/go-BCCWZWY1-BCCWZWY1.js +0 -7
  55. package/dist/index-B45pn_Hn.js +0 -29996
  56. package/dist/nginx-C082G13W-vryM9k1W.js +0 -9
  57. package/dist/onig-BonMD2gC-BonMD2gC.js +0 -4
@@ -1,8 +1,8 @@
1
- import { D as T, v as N, A as G } from "./styles-b2c874b6-HpcOhE4Y-ByOXSbWi.js";
2
- import { c as t, h as M, l as k, i as L, j as z, ao as O, y as P } from "./index-B45pn_Hn.js";
3
- import { Z as U } from "./graph-4FyIWFHN-BscqHiRD.js";
4
- import { A as I } from "./layout-2-aEcfuw-DKVVk2ac.js";
5
- import { P as R } from "./line-nVq5kEiy-BMvfHXF7.js";
1
+ import { D as T, v as N, A as G } from "./styles-b2c874b6-BFg-Nblp-jsWmR-cD.js";
2
+ import { c as t, h as M, l as k, i as L, j as z, ao as O, y as P } from "./index-DvRFVEGL.js";
3
+ import { Z as U } from "./graph-BIq67vWs-LA_m-7g5.js";
4
+ import { A as I } from "./layout-Cz0dAJah-C2Ql7ZSU.js";
5
+ import { P as R } from "./line-BCVITS7s-Anu55pMJ.js";
6
6
  const C = (e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), W = (e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), $ = (e, i) => {
7
7
  const g = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), s = g.node().getBBox();
8
8
  return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", s.width + 2 * t().state.padding).attr("height", s.height + 2 * t().state.padding).attr("rx", t().state.radius), g;
@@ -1,8 +1,8 @@
1
- import { D as U, v as I, A as Y, E as M, t as F, I as H, _ as Q, C as X } from "./styles-b2c874b6-HpcOhE4Y-ByOXSbWi.js";
2
- import { Z as tt } from "./graph-4FyIWFHN-BscqHiRD.js";
3
- import { l as p, c as S, h as A, y as et, i as st, j as B } from "./index-B45pn_Hn.js";
4
- import { b as ot } from "./index-8fae9850-_CN7MNjP-il_sEjrK.js";
5
- import "./layout-2-aEcfuw-DKVVk2ac.js";
1
+ import { D as U, v as I, A as Y, E as M, t as F, I as H, _ as Q, C as X } from "./styles-b2c874b6-BFg-Nblp-jsWmR-cD.js";
2
+ import { Z as tt } from "./graph-BIq67vWs-LA_m-7g5.js";
3
+ import { l as p, c as S, h as A, y as et, i as st, j as B } from "./index-DvRFVEGL.js";
4
+ import { b as ot } from "./index-8fae9850-CaUboB89-DMTF3atd.js";
5
+ import "./layout-Cz0dAJah-C2Ql7ZSU.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", q = "c", Z = "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 He, h as M, d as At, as as xe } from "./index-B45pn_Hn.js";
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 He, h as M, d as At, as as xe } from "./index-DvRFVEGL.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 { Z as P } from "./graph-4FyIWFHN-BscqHiRD.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, ag as j, ah as M, ai as R, aj as Z, ak as U, J } from "./index-B45pn_Hn.js";
3
- import { b as Q } from "./index-8fae9850-_CN7MNjP-il_sEjrK.js";
4
- import { t as W } from "./channel-DHTQ8Ynn-Dw_fpJTx.js";
1
+ import { Z as P } from "./graph-BIq67vWs-LA_m-7g5.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, ag as j, ah as M, ai as R, aj as Z, ak as U, J } from "./index-DvRFVEGL.js";
3
+ import { b as Q } from "./index-8fae9850-CaUboB89-DMTF3atd.js";
4
+ import { t as W } from "./channel-DXyvEer2-B9963nMw.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, b2 as Vt } from "./index-B45pn_Hn.js";
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, b2 as Vt } from "./index-DvRFVEGL.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-CW2GmQHL-CW2GmQHL.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-DYKdIx5--DYKdIx5-.js";
11
+ import o from "./markdown-BTiqg07I-BTiqg07I.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-B45pn_Hn.js";
1
+ import { m as i, n as o } from "./index-DvRFVEGL.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,5 +1,5 @@
1
- import { b4 as yt, z as gt, c as ft, l as w, h as V, t as mt, b5 as xt, b6 as _t, b7 as bt } from "./index-B45pn_Hn.js";
2
- import { v as Z } from "./arc-BSRpyMf3-DfiBlVQ8.js";
1
+ import { b4 as yt, z as gt, c as ft, l as w, h as V, t as mt, b5 as xt, b6 as _t, b7 as bt } from "./index-DvRFVEGL.js";
2
+ import { v as Z } from "./arc-C2t0ExPw-C4e2PVYy.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-DYKdIx5--DYKdIx5-.js";
2
+ import n from "./markdown-BTiqg07I-BTiqg07I.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";
@@ -21,7 +21,7 @@ const y = Object.freeze({ fileTypes: [], injectTo: ["text.html.markdown"], injec
21
21
  var C = [
22
22
  y
23
23
  ];
24
- const $ = Object.freeze({ fileTypes: [], injectTo: ["source.vue", "text.html.markdown", "text.html.derivative", "text.pug"], injectionSelector: "L:meta.tag -meta.attribute -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" });
24
+ const $ = 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" });
25
25
  var j = [
26
26
  $
27
27
  ];
@@ -1,4 +1,4 @@
1
- import t from "./vue-Dz-azHaT-B9qBHMZi.js";
1
+ import t from "./vue-CSburxZD-BLgngoKd.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 { a$ as Ft, b0 as at, aM as At, aL as Nt, s as Ot, g as Bt, v as Vt, x as St, a as Xt, b as Yt, z as Ut, l as wt, aK as Ht, i as Qt, d as Gt } from "./index-B45pn_Hn.js";
2
- import { Q as jt } from "./createText-423428c9-LivTKT7b-C3-P5SOF.js";
1
+ import { a$ as Ft, b0 as at, aM as At, aL as Nt, s as Ot, g as Bt, v as Vt, x as St, a as Xt, b as Yt, z as Ut, l as wt, aK as Ht, i as Qt, d as Gt } from "./index-DvRFVEGL.js";
2
+ import { Q as jt } from "./createText-423428c9-Q0HfccbL-BLtEGSzf.js";
3
3
  import { t as Kt } from "./init-DjUOC4st-C8Nwz6AJ.js";
4
4
  import { h as Zt } from "./ordinal-MUacOSdK-B1MUT0BL.js";
5
- import { Z as dt } from "./linear-Bz4oRFvQ-s25kUfv8.js";
6
- import { P as pt } from "./line-nVq5kEiy-BMvfHXF7.js";
5
+ import { Z as dt } from "./linear-CLHAbj67-BGejs378.js";
6
+ import { P as pt } from "./line-BCVITS7s-Anu55pMJ.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; )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/documentation",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "type": "module",
5
5
  "main": "./dist/documentation.umd.js",
6
6
  "module": "./dist/documentation.es.js",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@kong/icons": "^1.8.14",
25
- "@kong/markdown": "1.3.3",
25
+ "@kong/markdown": "1.3.4",
26
26
  "@kong-ui-public/entities-shared": "^3.0.2"
27
27
  },
28
28
  "peerDependencies": {
@@ -1,27 +0,0 @@
1
- import e from "./json-B12k4-6m-B12k4-6m.js";
2
- import t from "./javascript-DqVBMyXe-DqVBMyXe.js";
3
- import a from "./typescript-AEg-ehu7-AEg-ehu7.js";
4
- import n from "./stylus-CAHdVuhm-CAHdVuhm.js";
5
- import s from "./sass-LqXmC1Fh-LqXmC1Fh.js";
6
- import r from "./css-CAzixsid-CEpuX1HY.js";
7
- import o from "./scss-DjxgF7f7-DGTzny6p.js";
8
- import i from "./less-CW2GmQHL-CW2GmQHL.js";
9
- import m from "./postcss-Cz2vjx_4-Cz2vjx_4.js";
10
- import c from "./tsx-BmwsDeeh-BmwsDeeh.js";
11
- const u = Object.freeze({ displayName: "Astro", fileTypes: ["astro"], injections: { "L:(meta.script.astro) (meta.lang.js | meta.lang.javascript | meta.lang.partytown | meta.lang.node) - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.js", end: "(?=</)", name: "meta.embedded.block.astro", patterns: [{ include: "source.js" }] }] }, "L:(meta.script.astro) (meta.lang.json) - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.json", end: "(?=</)", name: "meta.embedded.block.astro", patterns: [{ include: "source.json" }] }] }, "L:(meta.script.astro) (meta.lang.ts | meta.lang.typescript) - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.ts", end: "(?=</)", name: "meta.embedded.block.astro", patterns: [{ include: "source.ts" }] }] }, "L:meta.script.astro - meta.lang - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.js", end: "(?=</)", name: "meta.embedded.block.astro", patterns: [{ include: "source.js" }] }] }, "L:meta.style.astro - meta.lang - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.css", end: "(?=</)", name: "meta.embedded.block.astro", patterns: [{ include: "source.css" }] }] }, "L:meta.style.astro meta.lang.css - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.css", end: "(?=</)", name: "meta.embedded.block.astro", patterns: [{ include: "source.css" }] }] }, "L:meta.style.astro meta.lang.less - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.css.less", end: "(?=</)", name: "meta.embedded.block.astro", patterns: [{ include: "source.css.less" }] }] }, "L:meta.style.astro meta.lang.postcss - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.css.postcss", end: "(?=</)", name: "meta.embedded.block.astro", patterns: [{ include: "source.css.postcss" }] }] }, "L:meta.style.astro meta.lang.sass - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.sass", end: "(?=</)", name: "meta.embedded.block.astro", patterns: [{ include: "source.sass" }] }] }, "L:meta.style.astro meta.lang.scss - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.css.scss", end: "(?=</)", name: "meta.embedded.block.astro", patterns: [{ include: "source.css.scss" }] }] }, "L:meta.style.astro meta.lang.stylus - (meta source)": { patterns: [{ begin: "(?<=>)(?!</)", contentName: "source.stylus", end: "(?=</)", name: "meta.embedded.block.astro", patterns: [{ include: "source.stylus" }] }] } }, name: "astro", patterns: [{ include: "#scope" }, { include: "#frontmatter" }], repository: { attributes: { patterns: [{ include: "#attributes-events" }, { include: "#attributes-keyvalue" }, { include: "#attributes-interpolated" }] }, "attributes-events": { begin: "(on(s(croll|t(orage|alled)|u(spend|bmit)|e(curitypolicyviolation|ek(ing|ed)|lect))|hashchange|c(hange|o(ntextmenu|py)|u(t|echange)|l(ick|ose)|an(cel|play(through)?))|t(imeupdate|oggle)|in(put|valid)|o(nline|ffline)|d(urationchange|r(op|ag(start|over|e(n(ter|d)|xit)|leave)?)|blclick)|un(handledrejection|load)|p(opstate|lay(ing)?|a(ste|use|ge(show|hide))|rogress)|e(nded|rror|mptied)|volumechange|key(down|up|press)|focus|w(heel|aiting)|l(oad(start|e(nd|d(data|metadata)))?|anguagechange)|a(uxclick|fterprint|bort)|r(e(s(ize|et)|jectionhandled)|atechange)|m(ouse(o(ut|ver)|down|up|enter|leave|move)|essage(error)?)|b(efore(unload|print)|lur)))(?![\\\\w:-])", beginCaptures: { 0: { patterns: [{ match: ".*", name: "entity.other.attribute-name.astro" }] } }, end: "(?=\\s*+[^=\\s])", name: "meta.attribute.$1.astro", patterns: [{ begin: "=", beginCaptures: { 0: { name: "punctuation.separator.key-value.astro" } }, end: "(?<=[^\\s=])(?!\\s*=)|(?=/?>)", patterns: [{ begin: "(?=[^\\s=<>`/]|/(?!>))", end: "(?!\\G)", name: "meta.embedded.line.js", patterns: [{ captures: { 0: { name: "source.js" }, 1: { patterns: [{ include: "source.js" }] } }, match: "(([^\\s\\\"'=<>`/]|/(?!>))+)", name: "string.unquoted.astro" }, { begin: '(["])', beginCaptures: { 0: { name: "punctuation.definition.string.begin.astro" } }, end: "\\1", endCaptures: { 0: { name: "punctuation.definition.string.end.astro" } }, name: "string.quoted.astro", patterns: [{ captures: { 0: { patterns: [{ include: "source.js" }] } }, match: '([^\\n\\"/]|/(?![/*]))+' }, { begin: "//", beginCaptures: { 0: { name: "punctuation.definition.comment.js" } }, end: '(?=\\")|\\n', name: "comment.line.double-slash.js" }, { begin: "/\\*", beginCaptures: { 0: { name: "punctuation.definition.comment.begin.js" } }, end: '(?=\\")|\\*/', endCaptures: { 0: { name: "punctuation.definition.comment.end.js" } }, name: "comment.block.js" }] }, { begin: "(['])", beginCaptures: { 0: { name: "punctuation.definition.string.begin.astro" } }, end: "\\1", endCaptures: { 0: { name: "punctuation.definition.string.end.astro" } }, name: "string.quoted.astro", patterns: [{ captures: { 0: { patterns: [{ include: "source.js" }] } }, match: "([^\\n\\'/]|/(?![/*]))+" }, { begin: "//", beginCaptures: { 0: { name: "punctuation.definition.comment.js" } }, end: "(?=\\')|\\n", name: "comment.line.double-slash.js" }, { begin: "/\\*", beginCaptures: { 0: { name: "punctuation.definition.comment.begin.js" } }, end: "(?=\\')|\\*/", endCaptures: { 0: { name: "punctuation.definition.comment.end.js" } }, name: "comment.block.js" }] }] }] }] }, "attributes-interpolated": { begin: "(?<!:|=)\\s*({)", contentName: "meta.embedded.expression.astro source.tsx", end: "(\\})", patterns: [{ include: "source.tsx" }] }, "attributes-keyvalue": { begin: "([_@$[:alpha:]][:._\\-$[:alnum:]]*)", beginCaptures: { 0: { patterns: [{ match: ".*", name: "entity.other.attribute-name.astro" }] } }, end: "(?=\\s*+[^=\\s])", name: "meta.attribute.$1.astro", patterns: [{ begin: "=", beginCaptures: { 0: { name: "punctuation.separator.key-value.astro" } }, end: "(?<=[^\\s=])(?!\\s*=)|(?=/?>)", patterns: [{ include: "#attributes-value" }] }] }, "attributes-value": { patterns: [{ include: "#interpolation" }, { match: "([^\\s\"'=<>`/]|/(?!>))+", name: "string.unquoted.astro" }, { begin: `(['"])`, beginCaptures: { 0: { name: "punctuation.definition.string.begin.astro" } }, end: "\\1", endCaptures: { 0: { name: "punctuation.definition.string.end.astro" } }, name: "string.quoted.astro" }, { begin: "(`)", end: "\\1", name: "string.template.astro", patterns: [{ include: "source.tsx#template-substitution-element" }, { include: "source.tsx#string-character-escape" }] }] }, comments: { begin: "<!--", captures: { 0: { name: "punctuation.definition.comment.astro" } }, end: "-->", name: "comment.block.astro", patterns: [{ match: "\\G-?>|<!--(?!>)|<!-(?=-->)|--!>", name: "invalid.illegal.characters-not-allowed-here.astro" }] }, frontmatter: { begin: "\\A(-{3})\\s*$", beginCaptures: { 1: { name: "comment" } }, contentName: "source.ts", end: "(^|\\G)(-{3})|\\.{3}\\s*$", endCaptures: { 2: { name: "comment" } }, patterns: [{ include: "source.ts" }] }, interpolation: { patterns: [{ begin: "\\{", beginCaptures: { 0: { name: "punctuation.section.embedded.begin.astro" } }, contentName: "meta.embedded.expression.astro source.tsx", end: "\\}", endCaptures: { 0: { name: "punctuation.section.embedded.end.astro" } }, patterns: [{ begin: "\\G\\s*(?={)", end: "(?<=})", patterns: [{ include: "source.tsx#object-literal" }] }, { include: "source.tsx" }] }] }, scope: { patterns: [{ include: "#comments" }, { include: "#tags" }, { include: "#interpolation" }, { begin: "(?<=>|})", end: "(?=<|{)", name: "text.astro" }] }, tags: { patterns: [{ include: "#tags-raw" }, { include: "#tags-lang" }, { include: "#tags-void" }, { include: "#tags-general-end" }, { include: "#tags-general-start" }] }, "tags-end-node": { captures: { 1: { name: "meta.tag.end.astro punctuation.definition.tag.begin.astro" }, 2: { name: "meta.tag.end.astro", patterns: [{ include: "#tags-name" }] }, 3: { name: "meta.tag.end.astro punctuation.definition.tag.end.astro" }, 4: { name: "meta.tag.start.astro punctuation.definition.tag.end.astro" } }, match: "(</)(.*?)\\s*(>)|(/>)" }, "tags-general-end": { begin: "(</)([^/\\s>]*)", beginCaptures: { 1: { name: "meta.tag.end.astro punctuation.definition.tag.begin.astro" }, 2: { name: "meta.tag.end.astro", patterns: [{ include: "#tags-name" }] } }, end: "(>)", endCaptures: { 1: { name: "meta.tag.end.astro punctuation.definition.tag.end.astro" } }, name: "meta.scope.tag.$2.astro" }, "tags-general-start": { begin: "(<)([^/\\s>/]*)", beginCaptures: { 0: { patterns: [{ include: "#tags-start-node" }] } }, end: "(/?>)", endCaptures: { 1: { name: "meta.tag.start.astro punctuation.definition.tag.end.astro" } }, name: "meta.scope.tag.$2.astro", patterns: [{ include: "#tags-start-attributes" }] }, "tags-lang": { begin: "<(script|style)", beginCaptures: { 0: { patterns: [{ include: "#tags-start-node" }] } }, end: "</\\1\\s*>|/>", endCaptures: { 0: { patterns: [{ include: "#tags-end-node" }] } }, name: "meta.scope.tag.$1.astro meta.$1.astro", patterns: [{ begin: `\\G(?=\\s*[^>]*?(type|lang)\\s*=\\s*(['"]|)(?:text\\/)?(application\\/ld\\+json)\\2)`, end: "(?=</|/>)", name: "meta.lang.json.astro", patterns: [{ include: "#tags-lang-start-attributes" }] }, { begin: `\\G(?=\\s*[^>]*?(type|lang)\\s*=\\s*(['"]|)(module)\\2)`, end: "(?=</|/>)", name: "meta.lang.javascript.astro", patterns: [{ include: "#tags-lang-start-attributes" }] }, { begin: `\\G(?=\\s*[^>]*?(type|lang)\\s*=\\s*(['"]|)(?:text/|application/)?([\\w\\/+]+)\\2)`, end: "(?=</|/>)", name: "meta.lang.$3.astro", 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.astro" } }, name: "meta.tag.start.astro", patterns: [{ include: "#attributes" }] }, "tags-name": { patterns: [{ match: "[A-Z][a-zA-Z0-9_]*", name: "support.class.component.astro" }, { match: "[a-z][\\w0-9:]*-[\\w0-9:-]*", name: "meta.tag.custom.astro entity.name.tag.astro" }, { match: "[a-z][\\w0-9:-]*", name: "entity.name.tag.astro" }] }, "tags-raw": { begin: "<([^/?!\\s<>]+)(?=[^>]+is:raw).*?", beginCaptures: { 0: { patterns: [{ include: "#tags-start-node" }] } }, contentName: "source.unknown", end: "</\\1\\s*>|/>", endCaptures: { 0: { patterns: [{ include: "#tags-end-node" }] } }, name: "meta.scope.tag.$1.astro meta.raw.astro", patterns: [{ include: "#tags-lang-start-attributes" }] }, "tags-start-attributes": { begin: "\\G", end: "(?=/?>)", name: "meta.tag.start.astro", patterns: [{ include: "#attributes" }] }, "tags-start-node": { captures: { 1: { name: "punctuation.definition.tag.begin.astro" }, 2: { patterns: [{ include: "#tags-name" }] } }, match: "(<)([^/\\s>/]*)", name: "meta.tag.start.astro" }, "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.astro" }, 2: { name: "entity.name.tag.astro" } }, end: "/?>", endCaptures: { 0: { name: "punctuation.definition.tag.begin.astro" } }, name: "meta.tag.void.astro", patterns: [{ include: "#attributes" }] } }, scopeName: "source.astro", embeddedLangs: ["json", "javascript", "typescript", "stylus", "sass", "css", "scss", "less", "postcss", "tsx"] });
12
- var k = [
13
- ...e,
14
- ...t,
15
- ...a,
16
- ...n,
17
- ...s,
18
- ...r,
19
- ...o,
20
- ...i,
21
- ...m,
22
- ...c,
23
- u
24
- ];
25
- export {
26
- k as default
27
- };
@@ -1,7 +0,0 @@
1
- const e = Object.freeze({ displayName: "Go", name: "go", patterns: [{ include: "#statements" }], repository: { after_control_variables: { captures: { 1: { patterns: [{ include: "#type-declarations-without-brackets" }, { match: "\\[", name: "punctuation.definition.begin.bracket.square.go" }, { match: "\\]", name: "punctuation.definition.end.bracket.square.go" }, { match: "(?:\\w+)", name: "variable.other.go" }] } }, comment: "After control variables, to not highlight as a struct/interface (before formatting with gofmt)", match: "(?:(?<=\\brange\\b|\\bswitch\\b|\\;|\\bif\\b|\\bfor\\b|\\<|\\>|\\<\\=|\\>\\=|\\=\\=|\\!\\=|\\w(?:\\+|/|\\-|\\*|\\%)|\\w(?:\\+|/|\\-|\\*|\\%)\\=|\\|\\||\\&\\&)(?:\\s*)([[:alnum:]\\-\\_\\!\\.\\[\\]\\<\\>\\=\\*/\\+\\%\\:]+)(?:\\s*)(?=\\{))" }, brackets: { patterns: [{ begin: "\\{", beginCaptures: { 0: { name: "punctuation.definition.begin.bracket.curly.go" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.end.bracket.curly.go" } }, patterns: [{ include: "$self" }] }, { begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.begin.bracket.round.go" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.end.bracket.round.go" } }, patterns: [{ include: "$self" }] }, { begin: "\\[", beginCaptures: { 0: { name: "punctuation.definition.begin.bracket.square.go" } }, end: "\\]", endCaptures: { 0: { name: "punctuation.definition.end.bracket.square.go" } }, patterns: [{ include: "$self" }] }] }, built_in_functions: { comment: "Built-in functions", patterns: [{ match: "\\b(append|cap|close|complex|copy|delete|imag|len|panic|print|println|real|recover|min|max|clear)\\b(?=\\()", name: "entity.name.function.support.builtin.go" }, { begin: "(?:(\\bnew\\b)(\\())", beginCaptures: { 1: { name: "entity.name.function.support.builtin.go" }, 2: { name: "punctuation.definition.begin.bracket.round.go" } }, comment: "new keyword", end: "\\)", endCaptures: { 0: { name: "punctuation.definition.end.bracket.round.go" } }, patterns: [{ include: "#functions" }, { include: "#struct_variables_types" }, { include: "#type-declarations" }, { include: "#generic_types" }, { match: "(?:\\w+)", name: "entity.name.type.go" }, { include: "$self" }] }, { captures: { 1: { name: "entity.name.function.support.builtin.go" }, 2: { name: "punctuation.definition.begin.bracket.round.go" }, 3: { patterns: [{ include: "#type-declarations-without-brackets" }, { include: "#parameter-variable-types" }, { match: "\\w+", name: "entity.name.type.go" }] }, 4: { patterns: [{ include: "$self" }] }, 5: { name: "punctuation.definition.end.bracket.round.go" } }, comment: "make keyword", match: "(?:(\\bmake\\b)(?:(\\()((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?:[\\w\\.\\*\\[\\]\\{\\}]+)?(?:\\[(?:[^\\]]+)?\\])?(?:[\\w\\.\\*\\[\\]\\{\\}]+)?)?((?:\\,\\s*(?:[\\w\\.\\(\\)]+)?)+)?(\\))))" }] }, comments: { patterns: [{ begin: "(\\/\\*)", beginCaptures: { 1: { name: "punctuation.definition.comment.go" } }, end: "(\\*\\/)", endCaptures: { 1: { name: "punctuation.definition.comment.go" } }, name: "comment.block.go" }, { begin: "(\\/\\/)", beginCaptures: { 1: { name: "punctuation.definition.comment.go" } }, end: "(?:\\n|$)", name: "comment.line.double-slash.go" }] }, delimiters: { patterns: [{ match: "\\,", name: "punctuation.other.comma.go" }, { match: "\\.(?!\\.\\.)", name: "punctuation.other.period.go" }, { match: ":(?!=)", name: "punctuation.other.colon.go" }] }, double_parentheses_types: { captures: { 1: { patterns: [{ include: "#type-declarations-without-brackets" }, { match: "\\(", name: "punctuation.definition.begin.bracket.round.go" }, { match: "\\)", name: "punctuation.definition.end.bracket.round.go" }, { match: "\\[", name: "punctuation.definition.begin.bracket.square.go" }, { match: "\\]", name: "punctuation.definition.end.bracket.square.go" }, { match: "\\w+", name: "entity.name.type.go" }] } }, comment: "double parentheses types", match: "(?:(\\((?:[\\w\\.\\[\\]\\*\\&]+)\\))(?=\\())" }, function_declaration: { begin: "(?:^(\\bfunc\\b)(?:\\s*(\\([^\\)]+\\)\\s*)?(?:(\\w+)(?=\\(|\\[))?))", beginCaptures: { 1: { name: "keyword.function.go" }, 2: { patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.begin.bracket.round.go" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.end.bracket.round.go" } }, patterns: [{ captures: { 1: { name: "variable.parameter.go" }, 2: { patterns: [{ include: "#type-declarations-without-brackets" }, { include: "#parameter-variable-types" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, match: "(?:(\\w+(?:\\s+))?((?:[\\w\\.\\*]+)(?:\\[(?:(?:(?:[\\w\\.\\*]+)(?:\\,\\s+)?)+)?\\])?))" }, { include: "$self" }] }] }, 3: { patterns: [{ match: "\\d\\w*", name: "invalid.illegal.identifier.go" }, { match: "\\w+", name: "entity.name.function.go" }] }, patterns: [{ include: "#type-declarations" }] }, comment: "Function declarations", end: "(?:(?<=\\))\\s*((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?!(?:[\\[\\]\\*]+)?(?:\\bstruct\\b|\\binterface\\b))[\\w\\.\\-\\*\\[\\]]+)?\\s*(?=\\{))", endCaptures: { 1: { patterns: [{ include: "#type-declarations-without-brackets" }, { include: "#parameter-variable-types" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.begin.bracket.round.go" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.end.bracket.round.go" } }, patterns: [{ include: "#function_param_types" }] }, { begin: "(?:([\\w\\.\\*]+)?(\\[))", beginCaptures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] }, 2: { name: "punctuation.definition.begin.bracket.square.go" } }, end: "\\]", endCaptures: { 0: { name: "punctuation.definition.end.bracket.square.go" } }, patterns: [{ include: "#generic_param_types" }] }, { captures: { 1: { patterns: [{ include: "#type-declarations-without-brackets" }, { include: "#parameter-variable-types" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, comment: "single function as a type returned type(s) declaration", match: "(?:(?<=\\))\\s+((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?[\\w\\*\\.\\[\\]\\<\\>\\-]+(?:\\s*)(?:\\/(?:\\/|\\*).*)?)$)" }, { include: "$self" }] }, function_param_types: { comment: "function parameter variables and types", patterns: [{ include: "#struct_variables_types" }, { include: "#type-declarations-without-brackets" }, { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.parameter.go" }] } }, comment: "struct type declaration", match: "((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)\\s+(?=(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\[\\]\\*]+)?\\bstruct\\b\\s*\\{)" }, { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.parameter.go" }] } }, comment: "multiple parameters one type -with multilines", match: "(?:(?:(?<=\\()|^\\s*)((?:(?:\\b\\w+\\,\\s*)+)(?:/(?:/|\\*).*)?)$)" }, { captures: { 1: { patterns: [{ include: "#delimiters" }, { match: "\\w+", name: "variable.parameter.go" }] }, 2: { patterns: [{ include: "#type-declarations-without-brackets" }, { include: "#parameter-variable-types" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, comment: "multiple params and types | multiple params one type | one param one type", match: "(?:((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)(?:\\s+)((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:(?:(?:[\\w\\[\\]\\.\\*]+)?(?:(?:\\bfunc\\b\\((?:[^\\)]+)?\\))(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:\\s*))+(?:(?:(?:[\\w\\*\\.\\[\\]]+)|(?:\\((?:[^\\)]+)?\\))))?)|(?:(?:[\\[\\]\\*]+)?[\\w\\*\\.]+(?:\\[(?:[^\\]]+)\\])?(?:[\\w\\.\\*]+)?)+)))" }, { include: "#parameter-variable-types" }, { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, comment: "other types", match: "([\\w\\.]+)" }, { include: "$self" }] }, functions: { begin: "(?:(\\bfunc\\b)(?=\\())", beginCaptures: { 1: { name: "keyword.function.go" } }, comment: "Functions", end: "(?:(?<=\\))(\\s*(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?((?:(?:\\s*(?:(?:[\\[\\]\\*]+)?[\\w\\.\\*]+)?(?:(?:\\[(?:(?:[\\w\\.\\*]+)?(?:\\[(?:[^\\]]+)?\\])?(?:\\,\\s+)?)+\\])|(?:\\((?:[^\\)]+)?\\)))?(?:[\\w\\.\\*]+)?)(?:\\s*)(?=\\{))|(?:\\s*(?:(?:(?:[\\[\\]\\*]+)?(?!\\bfunc\\b)(?:[\\w\\.\\*]+)(?:\\[(?:(?:[\\w\\.\\*]+)?(?:\\[(?:[^\\]]+)?\\])?(?:\\,\\s+)?)+\\])?(?:[\\w\\.\\*]+)?)|(?:\\((?:[^\\)]+)?\\)))))?)", endCaptures: { 1: { patterns: [{ include: "#type-declarations" }] }, 2: { patterns: [{ include: "#type-declarations-without-brackets" }, { include: "#parameter-variable-types" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, patterns: [{ include: "#parameter-variable-types" }] }, functions_inline: { captures: { 1: { name: "keyword.function.go" }, 2: { patterns: [{ include: "#type-declarations-without-brackets" }, { begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.begin.bracket.round.go" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.end.bracket.round.go" } }, patterns: [{ include: "#function_param_types" }, { include: "$self" }] }, { match: "\\[", name: "punctuation.definition.begin.bracket.square.go" }, { match: "\\]", name: "punctuation.definition.end.bracket.square.go" }, { match: "\\{", name: "punctuation.definition.begin.bracket.curly.go" }, { match: "\\}", name: "punctuation.definition.end.bracket.curly.go" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, comment: "functions in-line with multi return types", match: "(?:(\\bfunc\\b)((?:\\((?:[^/]*)\\))(?:\\s+)(?:\\((?:[^/]*)\\)))(?:\\s+)(?=\\{))" }, generic_param_types: { comment: "generic parameter variables and types", patterns: [{ include: "#type-declarations-without-brackets" }, { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.parameter.go" }] } }, comment: "multiple parameters one type -with multilines", match: "(?:(?:(?<=\\()|^\\s*)((?:(?:\\b\\w+\\,\\s*)+)(?:/(?:/|\\*).*)?)$)" }, { captures: { 1: { patterns: [{ include: "#delimiters" }, { match: "\\w+", name: "variable.parameter.go" }] }, 2: { patterns: [{ include: "#type-declarations-without-brackets" }, { include: "#parameter-variable-types" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] }, 3: { patterns: [{ include: "#type-declarations" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, comment: "multiple params and types | multiple types one param", match: "(?:((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)(?:\\s+)((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:(?:(?:[\\w\\[\\]\\.\\*]+)?(?:(?:\\bfunc\\b\\((?:[^\\)]+)?\\))(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:\\s*))+(?:(?:(?:[\\w\\*\\.]+)|(?:\\((?:[^\\)]+)?\\))))?)|(?:(?:(?:[\\w\\*\\.\\~]+)|(?:\\[(?:(?:[\\w\\.\\*]+)?(?:\\[(?:[^\\]]+)?\\])?(?:\\,\\s+)?)+\\]))(?:[\\w\\.\\*]+)?)+)))" }, { include: "#parameter-variable-types" }, { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, comment: "other types", match: "(?:\\b([\\w\\.]+))" }, { include: "$self" }] }, generic_types: { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "entity.name.type.go" }] }, 2: { patterns: [{ include: "#parameter-variable-types" }] } }, comment: "Generic support for all types", match: "(?:([\\w\\.\\*]+)(\\[(?:[^\\]]+)?\\]))" }, "group-functions": { comment: "all statements related to functions", patterns: [{ include: "#function_declaration" }, { include: "#functions_inline" }, { include: "#functions" }, { include: "#built_in_functions" }, { include: "#support_functions" }] }, "group-types": { comment: "all statements related to types", patterns: [{ include: "#other_struct_interface_expressions" }, { include: "#type_assertion_inline" }, { include: "#struct_variables_types" }, { include: "#interface_variables_types" }, { include: "#single_type" }, { include: "#multi_types" }, { include: "#struct_interface_declaration" }, { include: "#double_parentheses_types" }, { include: "#switch_types" }, { include: "#type-declarations" }] }, "group-variables": { comment: "all statements related to variables", patterns: [{ include: "#var_const_assignment" }, { include: "#variable_assignment" }, { include: "#label_loop_variables" }, { include: "#slice_index_variables" }, { include: "#property_variables" }, { include: "#switch_select_case_variables" }, { include: "#other_variables" }] }, import: { comment: "import", patterns: [{ begin: "\\b(import)\\s+", beginCaptures: { 1: { name: "keyword.control.import.go" } }, comment: "import", end: "(?!\\G)", patterns: [{ include: "#imports" }] }] }, imports: { comment: "import package(s)", patterns: [{ captures: { 1: { patterns: [{ include: "#delimiters" }, { match: "(?:\\w+)", name: "variable.other.import.go" }] }, 2: { name: "string.quoted.double.go" }, 3: { name: "punctuation.definition.string.begin.go" }, 4: { name: "entity.name.import.go" }, 5: { name: "punctuation.definition.string.end.go" } }, match: '(\\s*[\\w\\.]+)?\\s*((")([^"]*)("))' }, { begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.imports.begin.bracket.round.go" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.imports.end.bracket.round.go" } }, patterns: [{ include: "#comments" }, { include: "#imports" }] }, { include: "$self" }] }, interface_variables_types: { patterns: [{ begin: "(\\binterface\\b)\\s*(\\{)", beginCaptures: { 1: { name: "keyword.interface.go" }, 2: { name: "punctuation.definition.begin.bracket.curly.go" } }, comment: "interface variable types", end: "\\}", endCaptures: { 0: { name: "punctuation.definition.end.bracket.curly.go" } }, patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.begin.bracket.round.go" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.end.bracket.round.go" } }, patterns: [{ include: "#function_param_types" }, { include: "$self" }] }, { include: "#support_functions" }, { captures: { 1: { patterns: [{ include: "#type-declarations" }, { include: "#generic_types" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, comment: "single declaration | with or declarations", match: "((?:\\s+\\|)?(?:[\\w\\.\\[\\]\\*]+)(?:\\s+\\|)?)" }, { include: "$self" }] }] }, keywords: { patterns: [{ comment: "Flow control keywords", match: "\\b(break|case|continue|default|defer|else|fallthrough|for|go|goto|if|range|return|select|switch)\\b", name: "keyword.control.go" }, { match: "\\bchan\\b", name: "keyword.channel.go" }, { match: "\\bconst\\b", name: "keyword.const.go" }, { match: "\\bvar\\b", name: "keyword.var.go" }, { match: "\\bfunc\\b", name: "keyword.function.go" }, { match: "\\binterface\\b", name: "keyword.interface.go" }, { match: "\\bmap\\b", name: "keyword.map.go" }, { match: "\\bstruct\\b", name: "keyword.struct.go" }, { match: "\\bimport\\b", name: "keyword.control.import.go" }, { match: "\\btype\\b", name: "keyword.type.go" }] }, label_loop_variables: { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.other.label.go" }] } }, comment: "labeled loop variable name", match: "((?:^\\s*\\w+:\\s*$)|(?:^\\s*(?:\\bbreak\\b|\\bgoto\\b|\\bcontinue\\b)\\s+\\w+(?:\\s*/(?:/|\\*)\\s*.*)?$))" }, language_constants: { comment: "Language constants", match: "\\b(true|false|nil|iota)\\b", name: "constant.language.go" }, map_types: { begin: "(?:(\\bmap\\b)(\\[))", beginCaptures: { 1: { name: "keyword.map.go" }, 2: { name: "punctuation.definition.begin.bracket.square.go" } }, comment: "map types", end: "(?:(\\])((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?!(?:[\\[\\]\\*]+)?\\b(?:func|struct|map)\\b)[\\w\\.\\[\\]\\*]+)?)", endCaptures: { 1: { name: "punctuation.definition.end.bracket.square.go" }, 2: { patterns: [{ include: "#type-declarations-without-brackets" }, { match: "\\[", name: "punctuation.definition.begin.bracket.square.go" }, { match: "\\]", name: "punctuation.definition.end.bracket.square.go" }, { match: "\\w+", name: "entity.name.type.go" }] } }, patterns: [{ include: "#type-declarations-without-brackets" }, { include: "#generic_types" }, { include: "#functions" }, { match: "\\[", name: "punctuation.definition.begin.bracket.square.go" }, { match: "\\]", name: "punctuation.definition.end.bracket.square.go" }, { match: "\\{", name: "punctuation.definition.begin.bracket.curly.go" }, { match: "\\}", name: "punctuation.definition.end.bracket.curly.go" }, { match: "\\(", name: "punctuation.definition.begin.bracket.round.go" }, { match: "\\)", name: "punctuation.definition.end.bracket.round.go" }, { match: "\\w+", name: "entity.name.type.go" }] }, multi_types: { begin: "(\\btype\\b)\\s*(\\()", beginCaptures: { 1: { name: "keyword.type.go" }, 2: { name: "punctuation.definition.begin.bracket.round.go" } }, comment: "multi type declaration", end: "\\)", endCaptures: { 0: { name: "punctuation.definition.end.bracket.round.go" } }, patterns: [{ include: "#struct_variables_types" }, { include: "#type-declarations-without-brackets" }, { include: "#parameter-variable-types" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] }, numeric_literals: { captures: { 0: { patterns: [{ begin: "(?=.)", end: "(?:\\n|$)", patterns: [{ captures: { 1: { name: "constant.numeric.decimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 2: { name: "punctuation.separator.constant.numeric.go" }, 3: { name: "constant.numeric.decimal.point.go" }, 4: { name: "constant.numeric.decimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 5: { name: "punctuation.separator.constant.numeric.go" }, 6: { name: "keyword.other.unit.exponent.decimal.go" }, 7: { name: "keyword.operator.plus.exponent.decimal.go" }, 8: { name: "keyword.operator.minus.exponent.decimal.go" }, 9: { name: "constant.numeric.exponent.decimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 10: { name: "keyword.other.unit.imaginary.go" }, 11: { name: "constant.numeric.decimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 12: { name: "punctuation.separator.constant.numeric.go" }, 13: { name: "keyword.other.unit.exponent.decimal.go" }, 14: { name: "keyword.operator.plus.exponent.decimal.go" }, 15: { name: "keyword.operator.minus.exponent.decimal.go" }, 16: { name: "constant.numeric.exponent.decimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 17: { name: "keyword.other.unit.imaginary.go" }, 18: { name: "constant.numeric.decimal.point.go" }, 19: { name: "constant.numeric.decimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 20: { name: "punctuation.separator.constant.numeric.go" }, 21: { name: "keyword.other.unit.exponent.decimal.go" }, 22: { name: "keyword.operator.plus.exponent.decimal.go" }, 23: { name: "keyword.operator.minus.exponent.decimal.go" }, 24: { name: "constant.numeric.exponent.decimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 25: { name: "keyword.other.unit.imaginary.go" }, 26: { name: "keyword.other.unit.hexadecimal.go" }, 27: { name: "constant.numeric.hexadecimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 28: { name: "punctuation.separator.constant.numeric.go" }, 29: { name: "constant.numeric.hexadecimal.go" }, 30: { name: "constant.numeric.hexadecimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 31: { name: "punctuation.separator.constant.numeric.go" }, 32: { name: "keyword.other.unit.exponent.hexadecimal.go" }, 33: { name: "keyword.operator.plus.exponent.hexadecimal.go" }, 34: { name: "keyword.operator.minus.exponent.hexadecimal.go" }, 35: { name: "constant.numeric.exponent.hexadecimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 36: { name: "keyword.other.unit.imaginary.go" }, 37: { name: "keyword.other.unit.hexadecimal.go" }, 38: { name: "constant.numeric.hexadecimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 39: { name: "punctuation.separator.constant.numeric.go" }, 40: { name: "keyword.other.unit.exponent.hexadecimal.go" }, 41: { name: "keyword.operator.plus.exponent.hexadecimal.go" }, 42: { name: "keyword.operator.minus.exponent.hexadecimal.go" }, 43: { name: "constant.numeric.exponent.hexadecimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 44: { name: "keyword.other.unit.imaginary.go" }, 45: { name: "keyword.other.unit.hexadecimal.go" }, 46: { name: "constant.numeric.hexadecimal.go" }, 47: { name: "constant.numeric.hexadecimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 48: { name: "punctuation.separator.constant.numeric.go" }, 49: { name: "keyword.other.unit.exponent.hexadecimal.go" }, 50: { name: "keyword.operator.plus.exponent.hexadecimal.go" }, 51: { name: "keyword.operator.minus.exponent.hexadecimal.go" }, 52: { name: "constant.numeric.exponent.hexadecimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 53: { name: "keyword.other.unit.imaginary.go" } }, match: "(?:(?:(?:(?:(?:\\G(?=[0-9.])(?!0[xXbBoO])([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)((?:(?<=[0-9])\\.|\\.(?=[0-9])))([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)?(?:(?<!_)([eE])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)))?(i(?!\\w))?(?:\\n|$)|\\G(?=[0-9.])(?!0[xXbBoO])([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([eE])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))|\\G((?:(?<=[0-9])\\.|\\.(?=[0-9])))([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?:(?<!_)([eE])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)))?(i(?!\\w))?(?:\\n|$))|(\\G0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)((?:(?<=[0-9a-fA-F])\\.|\\.(?=[0-9a-fA-F])))([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)?(?<!_)([pP])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))|(\\G0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([pP])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))|(\\G0[xX])((?:(?<=[0-9a-fA-F])\\.|\\.(?=[0-9a-fA-F])))([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(?<!_)([pP])(\\+?)(\\-?)((?:[0-9](?:[0-9]|(?:(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*))(i(?!\\w))?(?:\\n|$))" }, { captures: { 1: { name: "constant.numeric.decimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 2: { name: "punctuation.separator.constant.numeric.go" }, 3: { name: "keyword.other.unit.imaginary.go" }, 4: { name: "keyword.other.unit.binary.go" }, 5: { name: "constant.numeric.binary.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 6: { name: "punctuation.separator.constant.numeric.go" }, 7: { name: "keyword.other.unit.imaginary.go" }, 8: { name: "keyword.other.unit.octal.go" }, 9: { name: "constant.numeric.octal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 10: { name: "punctuation.separator.constant.numeric.go" }, 11: { name: "keyword.other.unit.imaginary.go" }, 12: { name: "keyword.other.unit.hexadecimal.go" }, 13: { name: "constant.numeric.hexadecimal.go", patterns: [{ match: "(?<=[0-9a-fA-F])_(?=[0-9a-fA-F])", name: "punctuation.separator.constant.numeric.go" }] }, 14: { name: "punctuation.separator.constant.numeric.go" }, 15: { name: "keyword.other.unit.imaginary.go" } }, match: "(?:(?:(?:\\G(?=[0-9.])(?!0[xXbBoO])([0-9](?:[0-9]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?!\\w))?(?:\\n|$)|(\\G0[bB])_?([01](?:[01]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?!\\w))?(?:\\n|$))|(\\G0[oO]?)_?((?:[0-7]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))+)(i(?!\\w))?(?:\\n|$))|(\\G0[xX])_?([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])_(?=[0-9a-fA-F])))*)(i(?!\\w))?(?:\\n|$))" }, { match: "(?:(?:[0-9a-zA-Z_\\.])|(?<=[eEpP])[+-])+", name: "invalid.illegal.constant.numeric.go" }] }] } }, match: "(?<!\\w)\\.?\\d(?:(?:[0-9a-zA-Z_\\.])|(?<=[eEpP])[+-])*" }, operators: { comment: "Note that the order here is very important!", patterns: [{ match: "((?:\\*|&)+)(?:(?!\\d)(?=(?:[\\w\\[\\]])|(?:\\<\\-)))", name: "keyword.operator.address.go" }, { match: "<\\-", name: "keyword.operator.channel.go" }, { match: "\\-\\-", name: "keyword.operator.decrement.go" }, { match: "\\+\\+", name: "keyword.operator.increment.go" }, { match: "(==|!=|<=|>=|<(?!<)|>(?!>))", name: "keyword.operator.comparison.go" }, { match: "(&&|\\|\\||!)", name: "keyword.operator.logical.go" }, { match: "(=|\\+=|\\-=|\\|=|\\^=|\\*=|/=|:=|%=|<<=|>>=|&\\^=|&=)", name: "keyword.operator.assignment.go" }, { match: "(\\+|\\-|\\*|/|%)", name: "keyword.operator.arithmetic.go" }, { match: "(&(?!\\^)|\\||\\^|&\\^|<<|>>|\\~)", name: "keyword.operator.arithmetic.bitwise.go" }, { match: "\\.\\.\\.", name: "keyword.operator.ellipsis.go" }] }, other_struct_interface_expressions: { comment: "struct and interface expression in-line (before curly bracket)", patterns: [{ comment: "after control variables must be added exactly here, do not move it! (changing may not affect tests, so be careful!)", include: "#after_control_variables" }, { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "entity.name.type.go" }] }, 2: { patterns: [{ begin: "\\[", beginCaptures: { 0: { name: "punctuation.definition.begin.bracket.square.go" } }, end: "\\]", endCaptures: { 0: { name: "punctuation.definition.end.bracket.square.go" } }, patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "entity.name.type.go" }, { include: "$self" }] }] } }, match: "(\\b[\\w\\.]+)(\\[(?:[^\\]]+)?\\])?(?=\\{)(?<!\\bstruct\\b|\\binterface\\b)" }] }, other_variables: { match: "(?:\\w+)", name: "variable.other.go", patterns: [{ include: "#storage_types" }, { include: "$self" }] }, package_name: { patterns: [{ begin: "\\b(package)\\s+", beginCaptures: { 1: { name: "keyword.package.go" } }, comment: "package name", end: "(?!\\G)", patterns: [{ match: "\\d\\w*", name: "invalid.illegal.identifier.go" }, { match: "\\w+", name: "entity.name.type.package.go" }] }] }, "parameter-variable-types": { comment: "function and generic parameter types", patterns: [{ match: "\\{", name: "punctuation.definition.begin.bracket.curly.go" }, { match: "\\}", name: "punctuation.definition.end.bracket.curly.go" }, { begin: "(?:([\\w\\.\\*]+)?(\\[))", beginCaptures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] }, 2: { name: "punctuation.definition.begin.bracket.square.go" } }, end: "\\]", endCaptures: { 0: { name: "punctuation.definition.end.bracket.square.go" } }, patterns: [{ include: "#generic_param_types" }] }, { begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.begin.bracket.round.go" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.end.bracket.round.go" } }, patterns: [{ include: "#function_param_types" }] }] }, property_variables: { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.other.property.go" }] }, 2: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.other.go" }, { include: "$self" }] }, 3: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.other.property.field.go" }, { include: "$self" }] }, 4: { patterns: [{ captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.other.go" }] }, 2: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.other.property.field.go" }] } }, match: "([\\w\\.\\*\\&\\[\\]]+)(\\.\\w+)" }, { include: "$self" }] } }, comment: "Property variables in struct | parameter field in struct initialization", match: "(?:(?:((?:\\b[\\w\\.]+)(?:\\:(?!\\=))))(?:(?:\\s*([\\w\\.\\*\\&\\[\\]]+)(\\.\\w+)(?![\\w\\.\\*\\&\\[\\]]*(?:\\{|\\()))((?:\\s*(?:\\<|\\>|\\<\\=|\\>\\=|\\=\\=|\\!\\=|\\|\\||\\&\\&|\\+|/|\\-|\\*|\\%|\\||\\&)\\s*(?:[\\w\\.\\*\\&\\[\\]]+)(?:\\.\\w+)(?![\\w\\.\\*\\&\\[\\]]*(?:\\{|\\()))*))?)" }, raw_string_literals: { begin: "`", beginCaptures: { 0: { name: "punctuation.definition.string.begin.go" } }, comment: "Raw string literals", end: "`", endCaptures: { 0: { name: "punctuation.definition.string.end.go" } }, name: "string.quoted.raw.go", patterns: [{ include: "#string_placeholder" }] }, runes: { patterns: [{ begin: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.go" } }, end: "'", endCaptures: { 0: { name: "punctuation.definition.string.end.go" } }, name: "string.quoted.rune.go", patterns: [{ match: `\\G(\\\\([0-7]{3}|[abfnrtv\\\\'"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})|.)(?=')`, name: "constant.other.rune.go" }, { match: "[^']+", name: "invalid.illegal.unknown-rune.go" }] }] }, single_type: { patterns: [{ captures: { 1: { name: "keyword.type.go" }, 2: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "entity.name.type.go" }] }, 3: { patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.begin.bracket.round.go" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.end.bracket.round.go" } }, patterns: [{ include: "#function_param_types" }, { include: "$self" }] }, { include: "#type-declarations" }, { include: "#generic_types" }, { match: "\\w+", name: "entity.name.type.go" }] } }, comment: "single type declaration", match: "(?:(?:^\\s*)(\\btype\\b)(?:\\s*)([\\w\\.\\*]+)(?:\\s+)(?!(?:[\\[\\]\\*]+)?\\b(?:struct|interface)\\b)([\\s\\S]+))" }, { begin: "(?:(?:^|\\s+)(\\btype\\b)(?:\\s*)([\\w\\.\\*]+)(?=\\[))", beginCaptures: { 1: { name: "keyword.type.go" }, 2: { patterns: [{ include: "#type-declarations-without-brackets" }, { match: "\\w+", name: "entity.name.type.go" }] } }, comment: "single type declaration with generics", end: "(?:(?<=\\])((?:\\s+)(?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:(?!(?:[\\[\\]\\*]+)?(?:\\bstruct\\b|\\binterface\\b|\\bfunc\\b))[\\w\\.\\-\\*\\[\\]]+))?)", endCaptures: { 1: { patterns: [{ include: "#type-declarations-without-brackets" }, { match: "\\[", name: "punctuation.definition.begin.bracket.square.go" }, { match: "\\]", name: "punctuation.definition.end.bracket.square.go" }, { match: "\\w+", name: "entity.name.type.go" }] } }, patterns: [{ include: "#struct_variables_types" }, { include: "#type-declarations-without-brackets" }, { include: "#parameter-variable-types" }, { match: "\\[", name: "punctuation.definition.begin.bracket.square.go" }, { match: "\\]", name: "punctuation.definition.end.bracket.square.go" }, { match: "\\{", name: "punctuation.definition.begin.bracket.curly.go" }, { match: "\\}", name: "punctuation.definition.end.bracket.curly.go" }, { match: "\\(", name: "punctuation.definition.begin.bracket.round.go" }, { match: "\\)", name: "punctuation.definition.end.bracket.round.go" }, { match: "\\w+", name: "entity.name.type.go" }] }] }, slice_index_variables: { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.other.go" }] } }, comment: "slice index and capacity variables, to not scope them as property variables", match: "(?<=\\w\\[)((?:(?:\\b[\\w\\.\\*\\+/\\-\\*\\%\\<\\>\\|\\&]+\\:)|(?:\\:\\b[\\w\\.\\*\\+/\\-\\*\\%\\<\\>\\|\\&]+))(?:\\b[\\w\\.\\*\\+/\\-\\*\\%\\<\\>\\|\\&]+)?(?:\\:\\b[\\w\\.\\*\\+/\\-\\*\\%\\<\\>\\|\\&]+)?)(?=\\])" }, statements: { patterns: [{ include: "#package_name" }, { include: "#import" }, { include: "#syntax_errors" }, { include: "#group-functions" }, { include: "#group-types" }, { include: "#group-variables" }] }, storage_types: { patterns: [{ match: "\\bbool\\b", name: "storage.type.boolean.go" }, { match: "\\bbyte\\b", name: "storage.type.byte.go" }, { match: "\\berror\\b", name: "storage.type.error.go" }, { match: "\\b(complex(64|128)|float(32|64)|u?int(8|16|32|64)?)\\b", name: "storage.type.numeric.go" }, { match: "\\brune\\b", name: "storage.type.rune.go" }, { match: "\\bstring\\b", name: "storage.type.string.go" }, { match: "\\buintptr\\b", name: "storage.type.uintptr.go" }, { match: "\\bany\\b", name: "entity.name.type.any.go" }] }, string_escaped_char: { patterns: [{ match: `\\\\([0-7]{3}|[abfnrtv\\\\'"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})`, name: "constant.character.escape.go" }, { match: `\\\\[^0-7xuUabfnrtv\\'"]`, name: "invalid.illegal.unknown-escape.go" }] }, string_literals: { patterns: [{ begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.go" } }, comment: "Interpreted string literals", end: '"', endCaptures: { 0: { name: "punctuation.definition.string.end.go" } }, name: "string.quoted.double.go", patterns: [{ include: "#string_escaped_char" }, { include: "#string_placeholder" }] }] }, string_placeholder: { patterns: [{ match: "%(\\[\\d+\\])?([\\+#\\-0\\x20]{,2}((\\d+|\\*)?(\\.?(\\d+|\\*|(\\[\\d+\\])\\*?)?(\\[\\d+\\])?)?))?[vT%tbcdoqxXUbeEfFgGspw]", name: "constant.other.placeholder.go" }] }, struct_interface_declaration: { captures: { 1: { name: "keyword.type.go" }, 2: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "entity.name.type.go" }] } }, comment: "struct, interface type declarations (related to: struct_variables_types, interface_variables_types)", match: "(?:(?:^\\s*)(\\btype\\b)(?:\\s*)([\\w\\.]+))" }, struct_variable_types_fields_multi: { patterns: [{ begin: "(?:\\s*)?([\\s\\,\\w]+)(?:\\s+)(?:(?:[\\[\\]\\*])+)?(\\bstruct\\b)\\s*(\\{)", beginCaptures: { 1: { match: "(?:\\w+)", name: "variable.other.property.go" }, 2: { name: "keyword.struct.go" }, 3: { name: "punctuation.definition.begin.bracket.curly.go" } }, comment: "Struct variable for struct in struct types", end: "\\}", endCaptures: { 0: { name: "punctuation.definition.end.bracket.curly.go" } }, patterns: [{ include: "#struct_variables_types_fields" }, { include: "$self" }] }] }, struct_variables_types: { patterns: [{ begin: "(\\bstruct\\b)\\s*(\\{)", beginCaptures: { 1: { name: "keyword.struct.go" }, 2: { name: "punctuation.definition.begin.bracket.curly.go" } }, comment: "Struct variable type", end: "\\}", endCaptures: { 0: { name: "punctuation.definition.end.bracket.curly.go" } }, patterns: [{ include: "#struct_variables_types_fields" }, { include: "$self" }] }] }, struct_variables_types_fields: { comment: "Struct variable type fields", patterns: [{ include: "#struct_variable_types_fields_multi" }, { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, comment: "one line - single type", match: "(?:(?<=\\{)\\s*((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\w\\.\\*\\[\\]]+))\\s*(?=\\}))" }, { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "(?:\\w+)", name: "variable.other.property.go" }] }, 2: { patterns: [{ include: "#type-declarations" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, comment: "one line - property variables and types", match: "(?:(?<=\\{)\\s*((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\w\\.\\*\\[\\]]+))\\s*(?=\\}))" }, { captures: { 1: { patterns: [{ captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "(?:\\w+)", name: "variable.other.property.go" }] }, 2: { patterns: [{ include: "#type-declarations" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, match: "(?:((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))?((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\w\\.\\*\\[\\]]+)(?:\\;)?))" }] } }, comment: "one line with semicolon(;) without formatting gofmt - single type | property variables and types", match: "(?:(?<=\\{)((?:\\s*(?:(?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))?(?:(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\w\\.\\*\\[\\]\\(\\)\\{\\}]+)(?:\\;)?))+)\\s*(?=\\}))" }, { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, comment: "one type only", match: '(?:((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?<!\\,\\s*)(?:[\\w\\.\\*]+)\\s*(?:(?:(?:".*")|(?:\\`.*\\`))\\s*)?(?:/(?:/|\\*).*)?)$)' }, { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "(?:\\w+)", name: "variable.other.property.go" }] }, 2: { patterns: [{ include: "#type-declarations-without-brackets" }, { include: "#parameter-variable-types" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, comment: "property variables and types", match: "(?:((?:(?:\\w+\\,\\s*)+)?(?:\\w+\\s+))([\\s\\S]+))" }] }, support_functions: { captures: { 1: { name: "entity.name.function.support.go" }, 2: { patterns: [{ include: "#type-declarations" }, { match: "\\d\\w*", name: "invalid.illegal.identifier.go" }, { match: "\\w+", name: "entity.name.function.support.go" }] }, 3: { patterns: [{ include: "#type-declarations-without-brackets" }, { match: "\\[", name: "punctuation.definition.begin.bracket.square.go" }, { match: "\\]", name: "punctuation.definition.end.bracket.square.go" }, { match: "\\{", name: "punctuation.definition.begin.bracket.curly.go" }, { match: "\\}", name: "punctuation.definition.end.bracket.curly.go" }, { match: "\\w+", name: "entity.name.type.go" }] } }, comment: "Support Functions", match: `(?:(?:((?<=\\.)\\w+)|(\\w+))(\\[(?:(?:[\\w\\.\\*\\[\\]\\{\\}"\\']+)(?:(?:\\,\\s*(?:[\\w\\.\\*\\[\\]\\{\\}]+))*))?\\])?(?=\\())` }, switch_select_case_variables: { captures: { 1: { name: "keyword.control.go" }, 2: { patterns: [{ include: "#type-declarations" }, { include: "#support_functions" }, { match: "\\w+", name: "variable.other.go" }] } }, comment: "variables after case control keyword in switch/select expression", match: "(?:(?:^\\s*(\\bcase\\b))(?:\\s+)([\\s\\S]+(?:\\:)\\s*(?:/(?:/|\\*).*)?)$)" }, switch_types: { begin: "(?<=\\bswitch\\b)(?:\\s*)(?:(\\w+\\s*\\:\\=)?\\s*([\\w\\.\\*\\(\\)\\[\\]]+))(\\.\\(\\btype\\b\\)\\s*)(\\{)", beginCaptures: { 1: { patterns: [{ include: "#operators" }, { match: "(?:\\w+)", name: "variable.other.assignment.go" }] }, 2: { patterns: [{ include: "#support_functions" }, { include: "#type-declarations" }, { match: "(?:\\w+)", name: "variable.other.go" }] }, 3: { patterns: [{ include: "#delimiters" }, { include: "#brackets" }, { match: "\\btype\\b", name: "keyword.type.go" }] }, 4: { name: "punctuation.definition.begin.bracket.curly.go" } }, end: "(?:\\})", endCaptures: { 0: { name: "punctuation.definition.end.bracket.curly.go" } }, patterns: [{ include: "#type-declarations" }, { captures: { 1: { name: "keyword.control.go" }, 2: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "entity.name.type.go" }] }, 3: { name: "punctuation.other.colon.go" }, 4: { patterns: [{ include: "#comments" }] } }, match: "(?:^\\s*(\\bcase\\b))(?:\\s+)([\\w\\.\\,\\*\\=\\<\\>\\!\\s]+)(:)(\\s*/(?:/|\\*)\\s*.*)?$" }, { include: "$self" }] }, syntax_errors: { patterns: [{ captures: { 1: { name: "invalid.illegal.slice.go" } }, comment: "Syntax error using slices", match: "\\[\\](\\s+)" }, { comment: "Syntax error numeric literals", match: "\\b0[0-7]*[89]\\d*\\b", name: "invalid.illegal.numeric.go" }] }, terminators: { comment: "Terminators", match: ";", name: "punctuation.terminator.go" }, "type-declarations": { comment: "includes all type declarations", patterns: [{ include: "#language_constants" }, { include: "#comments" }, { include: "#map_types" }, { include: "#brackets" }, { include: "#delimiters" }, { include: "#keywords" }, { include: "#operators" }, { include: "#runes" }, { include: "#storage_types" }, { include: "#raw_string_literals" }, { include: "#string_literals" }, { include: "#numeric_literals" }, { include: "#terminators" }] }, "type-declarations-without-brackets": { comment: "includes all type declarations without brackets (in some cases, brackets need to be captured manually)", patterns: [{ include: "#language_constants" }, { include: "#comments" }, { include: "#map_types" }, { include: "#delimiters" }, { include: "#keywords" }, { include: "#operators" }, { include: "#runes" }, { include: "#storage_types" }, { include: "#raw_string_literals" }, { include: "#string_literals" }, { include: "#numeric_literals" }, { include: "#terminators" }] }, type_assertion_inline: { captures: { 1: { name: "keyword.type.go" }, 2: { patterns: [{ include: "#type-declarations" }, { match: "(?:\\w+)", name: "entity.name.type.go" }] } }, comment: "struct/interface types in-line (type assertion) | switch type keyword", match: "(?:(?<=\\.\\()(?:(\\btype\\b)|((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?[\\w\\.\\[\\]\\*]+))(?=\\)))" }, var_const_assignment: { comment: "variable assignment with var and const keyword", patterns: [{ captures: { 1: { patterns: [{ include: "#delimiters" }, { match: "\\w+", name: "variable.other.assignment.go" }] }, 2: { patterns: [{ include: "#type-declarations-without-brackets" }, { include: "#generic_types" }, { match: "\\(", name: "punctuation.definition.begin.bracket.round.go" }, { match: "\\)", name: "punctuation.definition.end.bracket.round.go" }, { match: "\\[", name: "punctuation.definition.begin.bracket.square.go" }, { match: "\\]", name: "punctuation.definition.end.bracket.square.go" }, { match: "\\w+", name: "entity.name.type.go" }] } }, comment: "var and const with single type assignment", match: "(?:(?<=\\bvar\\b|\\bconst\\b)(?:\\s*)(\\b[\\w\\.]+(?:\\,\\s*[\\w\\.]+)*)(?:\\s*)((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?!(?:[\\[\\]\\*]+)?\\b(?:struct|func|map)\\b)(?:[\\w\\.\\[\\]\\*]+(?:\\,\\s*[\\w\\.\\[\\]\\*]+)*)?(?:\\s*)(?:\\=)?)?)" }, { begin: "(?:(?<=\\bvar\\b|\\bconst\\b)(?:\\s*)(\\())", beginCaptures: { 1: { name: "punctuation.definition.begin.bracket.round.go" } }, comment: "var and const with multi type assignment", end: "\\)", endCaptures: { 0: { name: "punctuation.definition.end.bracket.round.go" } }, patterns: [{ captures: { 1: { patterns: [{ include: "#delimiters" }, { match: "\\w+", name: "variable.other.assignment.go" }] }, 2: { patterns: [{ include: "#type-declarations-without-brackets" }, { include: "#generic_types" }, { match: "\\(", name: "punctuation.definition.begin.bracket.round.go" }, { match: "\\)", name: "punctuation.definition.end.bracket.round.go" }, { match: "\\[", name: "punctuation.definition.begin.bracket.square.go" }, { match: "\\]", name: "punctuation.definition.end.bracket.square.go" }, { match: "\\w+", name: "entity.name.type.go" }] } }, match: "(?:(?:^\\s*)(\\b[\\w\\.]+(?:\\,\\s*[\\w\\.]+)*)(?:\\s*)((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?!(?:[\\[\\]\\*]+)?\\b(?:struct|func|map)\\b)(?:[\\w\\.\\[\\]\\*]+(?:\\,\\s*[\\w\\.\\[\\]\\*]+)*)?(?:\\s*)(?:\\=)?)?)" }, { include: "$self" }] }] }, variable_assignment: { comment: "variable assignment", patterns: [{ captures: { 0: { patterns: [{ include: "#delimiters" }, { match: "\\d\\w*", name: "invalid.illegal.identifier.go" }, { match: "\\w+", name: "variable.other.assignment.go" }] } }, comment: "variable assignment with :=", match: "\\b\\w+(?:\\,\\s*\\w+)*(?=\\s*:=)" }, { captures: { 0: { patterns: [{ include: "#delimiters" }, { include: "#operators" }, { match: "\\d\\w*", name: "invalid.illegal.identifier.go" }, { match: "\\w+", name: "variable.other.assignment.go" }] } }, comment: "variable assignment with =", match: "\\b[\\w\\.\\*]+(?:\\,\\s*[\\w\\.\\*]+)*(?=\\s*=(?!=))" }] } }, scopeName: "source.go" });
2
- var t = [
3
- e
4
- ];
5
- export {
6
- t as default
7
- };