@kong-ui-public/documentation 0.7.15 → 0.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{arc-CinmSIDH-Dcn7KGvc.js → arc-TomPQHIy---TPh_09.js} +1 -1
- package/dist/{blockDiagram-6b2b5046-lWu5MHZ2-BoOEWYD6.js → blockDiagram-6b2b5046-ZGxr7RGf-EFYzImkx.js} +5 -5
- package/dist/{c4Diagram-b947cdbb-_2ZSBCRj-BUDh5aYq.js → c4Diagram-b947cdbb-Bo6xALld-By3Ipo31.js} +2 -2
- package/dist/{channel-DxVjAaZy-IJf5_8CK.js → channel-BX3TjCqa-BSbXCWf0.js} +1 -1
- package/dist/{classDiagram-35230388-C7cMop8F-DuBGfvGp.js → classDiagram-35230388-C60SAKfJ-BIzFDuBu.js} +5 -5
- package/dist/{classDiagram-v2-412acd34-Sr_pGTUt-AuJo5LIE.js → classDiagram-v2-412acd34-CHK1KDqU-6VImEfmh.js} +5 -5
- package/dist/{clone-BaxuDe_X-CSbtQIgr.js → clone-BSWoNj0I-tckXyhCL.js} +1 -1
- package/dist/{cpp-DizfY48B-CA38N4Mn.js → cpp-Cxnlk9aI-CRrZJBoZ.js} +45 -14
- package/dist/{createText-423428c9-DSXJlj3p-CmtLQWob.js → createText-423428c9-DeHbckoy-BD9j3egy.js} +1 -1
- package/dist/{csharp-uGDiXTZn-uGDiXTZn.js → csharp-lrxu4vbW-lrxu4vbW.js} +1 -1
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +120 -95
- package/dist/{edges-d417c7a0-D20zX-94-B8CphGxt.js → edges-d417c7a0-D7e9Y4V--CivEDAj5.js} +3 -3
- package/dist/{erDiagram-0ea73325-p8FwyJvU-C0OgYqUN.js → erDiagram-0ea73325-E3jchkiK-BxNGtI50.js} +4 -4
- package/dist/{flowDb-d35e309a-Ca4FSAVM-WQMmXDja.js → flowDb-d35e309a-Dch1VW7i-WcIHFymz.js} +1 -1
- package/dist/{flowDiagram-d949d7c1-OwxKQJQE-D3HzuONU.js → flowDiagram-d949d7c1-CxjmKfBF-fN72q9OZ.js} +6 -6
- package/dist/{flowDiagram-v2-49332944-CmJFqFX3-BpyxAjBd.js → flowDiagram-v2-49332944-Duf6j7PN-F_OgPOA9.js} +5 -5
- package/dist/{flowchart-elk-definition-27cc417a-BK-QJI5S-CNQPwu_u.js → flowchart-elk-definition-27cc417a-M-lK4i48-BrhcUjqH.js} +4 -4
- package/dist/{ganttDiagram-5c869e3b-DsJMAz4f-CtgkK1FL.js → ganttDiagram-5c869e3b-CgjZsm2H-Cz1ShEgl.js} +2 -2
- package/dist/{gitGraphDiagram-b9d81de9-CgW7vwTs-Dww-gIrc.js → gitGraphDiagram-b9d81de9-DhOfBQfl-XNLvuj9e.js} +1 -1
- package/dist/go-vGwKyyRt-vGwKyyRt.js +7 -0
- package/dist/{graph-_GyIwSxm-B_vR7apB.js → graph-Ch18bQn5-DLZlxaOx.js} +1 -1
- package/dist/{haml-BW9Ug1pj-rFDS-Rd4.js → haml-DADkvXbc--0AW274F.js} +1 -1
- package/dist/{handlebars-Cr5ro0bH-CLcCNLtV.js → handlebars-Cs7BocNX-Bbsv9Jpf.js} +1 -1
- package/dist/{index-8fae9850-CyqCz_ca-cnk5n7Fe.js → index-8fae9850-kUIz8xNo-DThnA9iZ.js} +6 -6
- package/dist/{index-BIPKSlhn.js → index-DwEVUtAn.js} +1216 -1158
- package/dist/{infoDiagram-db7b18fc-0P3OTShw-Bp1eVumE.js → infoDiagram-db7b18fc-BpBtHVy2-CzlbkPep.js} +1 -1
- package/dist/{journeyDiagram-d5636530-DaBgA-aj-Z9L2Q9UD.js → journeyDiagram-d5636530-CZUFMDTA-B6x8SC3m.js} +3 -3
- package/dist/{latex-BOFs-Cxs-XUibdaju.js → latex-BQR4t-v7-DUtGkmwG.js} +3 -3
- package/dist/{layout-Bk7AdqJz-DRyrmTYm.js → layout-BzV691RN-Dwqgf_2b.js} +2 -2
- package/dist/{line-B7Dd0TiT-HVx0CjRf.js → line-JCh8JM-V-BbfA3RBV.js} +1 -1
- package/dist/{linear-bMW21eJn-BiTwGlLg.js → linear-cwTFOJBq-CaAAYk8b.js} +1 -1
- package/dist/{markdown-BXjY0Nyq-BXjY0Nyq.js → markdown-QuoPq0lm-QuoPq0lm.js} +1 -1
- package/dist/{material-theme-lighter-BRE1Bis3-BRE1Bis3.js → material-theme-lighter-CtwOYHJ5-CtwOYHJ5.js} +4 -4
- package/dist/{material-theme-palenight-Dhz61Tee-Dhz61Tee.js → material-theme-palenight-LzvMi3a5-LzvMi3a5.js} +4 -4
- package/dist/{mdc-B5nxCaLl-DMu34E1J.js → mdc-BZ-izL1S-5yLspiGp.js} +2 -2
- package/dist/mermaid-BDRJ-IyY-BDRJ-IyY.js +7 -0
- package/dist/{mindmap-definition-377f8f1f-ufN3tUA6-DrATq7p8.js → mindmap-definition-377f8f1f-BzIPdpBG-DGui0RqE.js} +2 -2
- package/dist/{pieDiagram-b0208e96-DrO8Y6_Q-qz1Vqf8G.js → pieDiagram-b0208e96-BQfpnZHG-CVSpIMRU.js} +2 -2
- package/dist/{quadrantDiagram-0332be45-DIp67xs6-CWxwUwJf.js → quadrantDiagram-0332be45-CNL4JCrn-B-f5sqU9.js} +2 -2
- package/dist/{requirementDiagram-bf7890df-BSzVPfZD-CzxSaoYW.js → requirementDiagram-bf7890df-NBqqCuPF-DAcckKVN.js} +4 -4
- package/dist/{rst-BrJuKOw1-B4ad15qt.js → rst-C6H9eA63-CVvBdizz.js} +2 -2
- package/dist/{sankeyDiagram-0acdec17-prPA1qqX-DBebH8FH.js → sankeyDiagram-0acdec17-YE0ROy8d-BWnyTcog.js} +1 -1
- package/dist/{sequenceDiagram-c18d009d-BAWs2OYL-Cl7Uk4w9.js → sequenceDiagram-c18d009d-Yucxrjw7-DpvimznV.js} +2 -2
- package/dist/{stateDiagram-43596fc0-DXEJ0R4o-cB0WlEf9.js → stateDiagram-43596fc0-D9IY4Ssi-CWdS8tlp.js} +5 -5
- package/dist/{stateDiagram-v2-2ead4f9c-DnzyCUgr-DQ4IkVrl.js → stateDiagram-v2-2ead4f9c-5IZQWbnV-6NEZ7lDP.js} +5 -5
- package/dist/{styles-6860f46c-DzVPBoYT-g58cIxdl.js → styles-6860f46c-DHqkrPDU-CvROn0Ze.js} +1 -1
- package/dist/{styles-7383a064-BL-LjhLx-DdruT6_O.js → styles-7383a064-DLbSva3T-D6oc5Ax7.js} +4 -4
- package/dist/{styles-b2c874b6-BCYk3bdu-CLfur12t.js → styles-b2c874b6-pUAi9-OK-C2ht5iWP.js} +1 -1
- package/dist/{svelte-BmPQnTph-DumSF5rK.js → svelte-DQ3ivDeH-pP8_2byG.js} +1 -1
- package/dist/{svgDrawCommon-0ee1b4e9-CUz2naLo-Bok-bE1n.js → svgDrawCommon-0ee1b4e9-rbw7BPwi-Do627-9u.js} +1 -1
- package/dist/{swift-x2DVyVjN-Bz5PC9YM.js → swift-DZjxY9Jt-5mfhvx3X.js} +2 -2
- package/dist/{timeline-definition-d977decf-BSETSy08-C-kk4S0n.js → timeline-definition-d977decf-CtlVf6FF-DxPrMfc5.js} +2 -2
- package/dist/{vue-DoU_Nr9K-Cj2gXb1y.js → vue-CdtKg2_f-Bw_hVDv3.js} +7 -7
- package/dist/{vue-html-iC7i5f9n-Cfh5ktA3.js → vue-html-CSuHLn0Q-CWbLQcnI.js} +1 -1
- package/dist/{xychartDiagram-e50adddc-C82b8cby-B-sVwnzU.js → xychartDiagram-e50adddc-B9qgoJob-BowGMlAq.js} +4 -4
- package/dist/{yaml-PGla5xPP-HJurM_FJ.js → yaml-BEu5ErCD-82IBfEy4.js} +1 -1
- package/package.json +6 -6
- package/dist/go-BEtjQGEI-BEtjQGEI.js +0 -7
- package/dist/mermaid-D-iYNLeg-D-iYNLeg.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as R, c as w, d as F, am as q, h as _, l as f, y as N, an as lt } from "./index-
|
|
2
|
-
import { U as nt } from "./createText-423428c9-
|
|
3
|
-
import { P as ot } from "./line-
|
|
1
|
+
import { p as R, c as w, d as F, am as q, h as _, l as f, y as N, an as lt } from "./index-DwEVUtAn.js";
|
|
2
|
+
import { U as nt } from "./createText-423428c9-DeHbckoy-BD9j3egy.js";
|
|
3
|
+
import { P as ot } from "./line-JCh8JM-V-BbfA3RBV.js";
|
|
4
4
|
const dt = (e, t, a, s) => {
|
|
5
5
|
t.forEach((l) => {
|
|
6
6
|
bt[l](e, a, s);
|
package/dist/{erDiagram-0ea73325-p8FwyJvU-C0OgYqUN.js → erDiagram-0ea73325-E3jchkiK-BxNGtI50.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as Z, s as ft, g as mt, b as Et, a as gt, v as bt, x as kt, l as Q, z as Ot, h as et, y as Rt, i as Nt, an as xt, aq as Tt } from "./index-
|
|
2
|
-
import { Y as At } from "./graph-
|
|
3
|
-
import { O as Mt } from "./layout-
|
|
4
|
-
import { P as It } from "./line-
|
|
1
|
+
import { c as Z, s as ft, g as mt, b as Et, a as gt, v as bt, x as kt, l as Q, z as Ot, h as et, y as Rt, i as Nt, an as xt, aq as Tt } from "./index-DwEVUtAn.js";
|
|
2
|
+
import { Y as At } from "./graph-Ch18bQn5-DLZlxaOx.js";
|
|
3
|
+
import { O as Mt } from "./layout-BzV691RN-Dwqgf_2b.js";
|
|
4
|
+
import { P as It } from "./line-JCh8JM-V-BbfA3RBV.js";
|
|
5
5
|
const vt = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
6
6
|
function St(t) {
|
|
7
7
|
return typeof t == "string" && vt.test(t);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ee, u as Bt, s as mt, g as xt, a as vt, b as Lt, v as $t, x as It, l as Z1, y as de, z as Rt, j as Nt, h as R1 } from "./index-
|
|
1
|
+
import { c as ee, u as Bt, s as mt, g as xt, a as vt, b as Lt, v as $t, x as It, l as Z1, y as de, z as Rt, j as Nt, h as R1 } from "./index-DwEVUtAn.js";
|
|
2
2
|
var pe = function() {
|
|
3
3
|
var t = function(j, a, o, n) {
|
|
4
4
|
for (o = o || {}, n = j.length; n--; o[j[n]] = a)
|
package/dist/{flowDiagram-d949d7c1-OwxKQJQE-D3HzuONU.js → flowDiagram-d949d7c1-CxjmKfBF-fN72q9OZ.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { X as mt, j as O } from "./flowDb-d35e309a-
|
|
2
|
-
import { Y as kt, E as k, v as K } from "./graph-
|
|
3
|
-
import { h as w, o as q, p as J, c as H, j as tt, l as U, q as W, r as R, t as St } from "./index-
|
|
4
|
-
import { e as _t, N as Lt, V as It, O as At, k as C } from "./layout-
|
|
5
|
-
import { u as Tt, w as Et, O as et, Q as Mt, Z as T, d as rt, f as L, p as at, b as nt } from "./styles-7383a064-
|
|
6
|
-
import { P as Nt } from "./line-
|
|
1
|
+
import { X as mt, j as O } from "./flowDb-d35e309a-Dch1VW7i-WcIHFymz.js";
|
|
2
|
+
import { Y as kt, E as k, v as K } from "./graph-Ch18bQn5-DLZlxaOx.js";
|
|
3
|
+
import { h as w, o as q, p as J, c as H, j as tt, l as U, q as W, r as R, t as St } from "./index-DwEVUtAn.js";
|
|
4
|
+
import { e as _t, N as Lt, V as It, O as At, k as C } from "./layout-BzV691RN-Dwqgf_2b.js";
|
|
5
|
+
import { u as Tt, w as Et, O as et, Q as Mt, Z as T, d as rt, f as L, p as at, b as nt } from "./styles-7383a064-DLbSva3T-D6oc5Ax7.js";
|
|
6
|
+
import { P as Nt } from "./line-JCh8JM-V-BbfA3RBV.js";
|
|
7
7
|
function Bt(r) {
|
|
8
8
|
if (!r.ok)
|
|
9
9
|
throw new Error(r.status + " " + r.statusText);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { X as e, j as o } from "./flowDb-d35e309a-
|
|
2
|
-
import { u as a, w as t } from "./styles-7383a064-
|
|
3
|
-
import { ap as s } from "./index-
|
|
4
|
-
import "./graph-
|
|
5
|
-
import "./layout-
|
|
1
|
+
import { X as e, j as o } from "./flowDb-d35e309a-Dch1VW7i-WcIHFymz.js";
|
|
2
|
+
import { u as a, w as t } from "./styles-7383a064-DLbSva3T-D6oc5Ax7.js";
|
|
3
|
+
import { ap as s } from "./index-DwEVUtAn.js";
|
|
4
|
+
import "./graph-Ch18bQn5-DLZlxaOx.js";
|
|
5
|
+
import "./layout-BzV691RN-Dwqgf_2b.js";
|
|
6
6
|
const p = {
|
|
7
7
|
parser: e,
|
|
8
8
|
db: o,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { H as RNn, X as KNn } from "./flowDb-d35e309a-
|
|
2
|
-
import { ax as Don, az as FNn, b1 as CG, l as Rl, h as PA, a_ as AG, t as BNn, o as y0t, q as k0t, r as OG, j as _Nn } from "./index-
|
|
3
|
-
import { h as HNn, o as UNn, M as GNn, d as qNn, r as XNn, a as VNn } from "./edges-d417c7a0-
|
|
4
|
-
import { P as zNn } from "./line-
|
|
1
|
+
import { H as RNn, X as KNn } from "./flowDb-d35e309a-Dch1VW7i-WcIHFymz.js";
|
|
2
|
+
import { ax as Don, az as FNn, b1 as CG, l as Rl, h as PA, a_ as AG, t as BNn, o as y0t, q as k0t, r as OG, j as _Nn } from "./index-DwEVUtAn.js";
|
|
3
|
+
import { h as HNn, o as UNn, M as GNn, d as qNn, r as XNn, a as VNn } from "./edges-d417c7a0-D7e9Y4V--CivEDAj5.js";
|
|
4
|
+
import { P as zNn } from "./line-JCh8JM-V-BbfA3RBV.js";
|
|
5
5
|
var Fon = { exports: {} };
|
|
6
6
|
(function(ae, Ge) {
|
|
7
7
|
(function(We) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { at as Ne, au as Ve, av as Ge, aw as Ze, ax as me, ay as R, az as ye, c as wt, s as Cn, g as Dn, v as _n, x as Sn, b as Mn, a as $n, aA as An, z as Yn, m as Fn, l as Zt, h as Pt, i as Un, j as Ln, y as En, aB as Jt, aC as On } from "./index-
|
|
2
|
-
import { Z as In, X as Hn, O as Wn, W as zn, w as Me } from "./linear-
|
|
1
|
+
import { at as Ne, au as Ve, av as Ge, aw as Ze, ax as me, ay as R, az as ye, c as wt, s as Cn, g as Dn, v as _n, x as Sn, b as Mn, a as $n, aA as An, z as Yn, m as Fn, l as Zt, h as Pt, i as Un, j as Ln, y as En, aB as Jt, aC as On } from "./index-DwEVUtAn.js";
|
|
2
|
+
import { Z as In, X as Hn, O as Wn, W as zn, w as Me } from "./linear-cwTFOJBq-CaAAYk8b.js";
|
|
3
3
|
import { t as Pn } from "./init-DjUOC4st-C8Nwz6AJ.js";
|
|
4
4
|
function Bn(t, e) {
|
|
5
5
|
let n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as v, s as Le, g as Me, a as Ie, b as ve, v as Ae, x as Ce, l as H, j as z, z as Oe, h as Se, y as Pe, ar as Be, as as Ge } from "./index-
|
|
1
|
+
import { c as v, s as Le, g as Me, a as Ie, b as ve, v as Ae, x as Ce, l as H, j as z, z as Oe, h as Se, y as Pe, ar as Be, as as Ge } from "./index-DwEVUtAn.js";
|
|
2
2
|
var he = function() {
|
|
3
3
|
var r = function(R, o, d, a) {
|
|
4
4
|
for (d = d || {}, a = R.length; a--; d[R[a]] = o)
|
|
@@ -0,0 +1,7 @@
|
|
|
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" }] }, { begin: "(?:(\\bmake\\b)(?:(\\()((?:(?:(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+(?:\\([^\\)]+\\))?)?(?:[\\[\\]\\*]+)?(?:(?!\\bmap\\b)(?:[\\w\\.]+))?(\\[(?:(?:[\\S]+)(?:(?:\\,\\s*(?:[\\S]+))*))?\\])?(?:\\,)?)?))", beginCaptures: { 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" }] } }, comment: "make keyword", end: "\\)", endCaptures: { 0: { name: "punctuation.definition.end.bracket.round.go" } }, patterns: [{ include: "$self" }] }] }, 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)(\\((?:[\\w\\.\\[\\]\\*\\&]+)\\))(?=\\())" }, field_hover: { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.other.property.go" }] }, 2: { patterns: [{ match: "\\binvalid\\b\\s+\\btype\\b", name: "invalid.field.go" }, { include: "#type-declarations-without-brackets" }, { include: "#parameter-variable-types" }, { match: "\\w+", name: "entity.name.type.go" }] } }, comment: "struct field property and types when hovering with the mouse", match: "(?:(?<=^\\bfield\\b)\\s+([\\w\\*\\.]+)\\s+([\\s\\S]+))" }, 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" }] } }, 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: "#interface_variables_types" }, { include: "#type-declarations-without-brackets" }, { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.parameter.go" }] } }, comment: "struct/interface type declaration", match: "((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)\\s+(?=(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\[\\]\\*]+)?\\b(?:struct|interface)\\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: "#struct_variables_types" }, { include: "#interface_variables_types" }, { include: "#type-declarations-without-brackets" }, { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.parameter.go" }] } }, comment: "struct/interface type declaration", match: "((?:(?:\\b\\w+\\,\\s*)+)?\\b\\w+)\\s+(?=(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:[\\[\\]\\*]+)?\\b(?:struct|interface)\\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" }] }, 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: { 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: [{ include: "#interface_variables_types_field" }, { include: "$self" }] }, interface_variables_types_field: { comment: "interface variable type fields", patterns: [{ include: "#support_functions" }, { include: "#type-declarations-without-brackets" }, { 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" }] }, { captures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "entity.name.type.go" }] } }, comment: "other types", match: "([\\w\\.]+)" }] }, 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: { captures: { 1: { name: "constant.language.boolean.go" }, 2: { name: "constant.language.null.go" }, 3: { name: "constant.language.iota.go" } }, comment: "Language constants", match: "\\b(?:(true|false)|(nil)|(iota))\\b" }, 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\\.]+)(?:\\[(?:(?:[\\w\\.\\*\\[\\]\\{\\}]+)(?:(?:\\,\\s*(?:[\\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: "#parameter-variable-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: "#interface_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: { comment: "all other variables", match: "\\w+", name: "variable.other.go" }, 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" }] } }, comment: "Property variables in struct", match: "((?:\\b[\\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+)(?!(?:\\=\\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\\.\\-\\*\\[\\]]+(?:\\,\\s+[\\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" }, { include: "#field_hover" }] }, 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: { comment: "struct variable and type fields with multi lines", patterns: [{ begin: "(?:((?:\\w+(?:\\,\\s*\\w+)*)(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:\\s+)(?:[\\[\\]\\*]+)?)(\\bstruct\\b)(?:\\s*)(\\{))", beginCaptures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.other.property.go" }] }, 2: { name: "keyword.struct.go" }, 3: { name: "punctuation.definition.begin.bracket.curly.go" } }, comment: "struct in struct types", end: "\\}", endCaptures: { 0: { name: "punctuation.definition.end.bracket.curly.go" } }, patterns: [{ include: "#struct_variables_types_fields" }, { include: "$self" }] }, { begin: "(?:((?:\\w+(?:\\,\\s*\\w+)*)(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:\\s+)(?:[\\[\\]\\*]+)?)(\\binterface\\b)(?:\\s*)(\\{))", beginCaptures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.other.property.go" }] }, 2: { name: "keyword.interface.go" }, 3: { name: "punctuation.definition.begin.bracket.curly.go" } }, comment: "interface in struct types", end: "\\}", endCaptures: { 0: { name: "punctuation.definition.end.bracket.curly.go" } }, patterns: [{ include: "#interface_variables_types_field" }, { include: "$self" }] }, { begin: "(?:((?:\\w+(?:\\,\\s*\\w+)*)(?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?:\\s+)(?:[\\[\\]\\*]+)?)(\\bfunc\\b)(?:\\s*)(\\())", beginCaptures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "variable.other.property.go" }] }, 2: { name: "keyword.function.go" }, 3: { name: "punctuation.definition.begin.bracket.round.go" } }, comment: "function in struct types", end: "\\)", endCaptures: { 0: { name: "punctuation.definition.end.bracket.round.go" } }, patterns: [{ include: "#function_param_types" }, { include: "$self" }] }, { begin: "(?:((?:(?:\\s*(?:[\\*\\[\\]]+)?(?:\\<\\-\\s*)?\\bchan\\b(?:\\s*\\<\\-)?\\s*)+)?(?<!\\,\\s*)(?:[\\w\\.\\*]+)\\s*)(?=\\`))", beginCaptures: { 1: { patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "entity.name.type.go" }] } }, comment: "one type only with multi line raw string", end: "(?=\\`)", patterns: [{ include: "#raw_string_literals" }] }, { include: "#parameter-variable-types" }] }, struct_variables_types: { 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*)+)?(?:[\\S]+)(?:\\;)?))" }] } }, 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*)+)?(?:[\\S]+)(?:\\;)?))+)\\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+))([^\\`]+))" }] }, 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: `(?:(?:((?<=\\.)\\b\\w+)|(\\b\\w+))(\\[(?:(?:[\\w\\.\\*\\[\\]\\{\\}"\\']+)(?:(?:\\,\\s*(?:[\\w\\.\\*\\[\\]\\{\\}]+))*))?\\])?(?=\\())` }, switch_select_case_variables: { captures: { 1: { name: "keyword.control.go" }, 2: { patterns: [{ include: "#type-declarations" }, { include: "#support_functions" }, { include: "#variable_assignment" }, { match: "\\w+", name: "variable.other.go" }] } }, comment: "variables after case control keyword in switch/select expression, to not scope them as property variables", 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" } }, comment: "switch type assertions, only highlights types after case keyword", end: "(?:\\})", endCaptures: { 0: { name: "punctuation.definition.end.bracket.curly.go" } }, patterns: [{ 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" }] } }, comment: "types after case keyword with single line", match: "(?:^\\s*(\\bcase\\b))(?:\\s+)([\\w\\.\\,\\*\\=\\<\\>\\!\\s]+)(:)(\\s*/(?:/|\\*)\\s*.*)?$" }, { begin: "\\bcase\\b", beginCaptures: { 0: { name: "keyword.control.go" } }, comment: "types after case keyword with multi lines", end: "\\:", endCaptures: { 0: { name: "punctuation.other.colon.go" } }, patterns: [{ include: "#type-declarations" }, { match: "\\w+", name: "entity.name.type.go" }] }, { 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
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as w, A as x, B as z, C as Vt, D as Ht, E as Yt, M as qt, F as p, G as jt, H as mt, I, J as et, K as wt, L as Wt, N as Jt, O as nt, P as D, Q as Qt, R as S, T as At, U as Xt, V as Zt, W as tr, X as rr, Y as N, Z as V, _ as er, $ as nr, a0 as ir, a1 as ur, a2 as B, a3 as Y, a4 as or, a5 as Ot, a6 as Ct, a7 as sr, a8 as it, a9 as ar } from "./index-
|
|
1
|
+
import { S as w, A as x, B as z, C as Vt, D as Ht, E as Yt, M as qt, F as p, G as jt, H as mt, I, J as et, K as wt, L as Wt, N as Jt, O as nt, P as D, Q as Qt, R as S, T as At, U as Xt, V as Zt, W as tr, X as rr, Y as N, Z as V, _ as er, $ as nr, a0 as ir, a1 as ur, a2 as B, a3 as Y, a4 as or, a5 as Ot, a6 as Ct, a7 as sr, a8 as it, a9 as ar } from "./index-DwEVUtAn.js";
|
|
2
2
|
var cr = "[object Symbol]";
|
|
3
3
|
function q(t) {
|
|
4
4
|
return typeof t == "symbol" || D(t) && Qt(t) == cr;
|
|
@@ -2,7 +2,7 @@ import e from "./ruby-Dzi2-c05-DYZjO5pl.js";
|
|
|
2
2
|
import n from "./javascript-DqVBMyXe-DqVBMyXe.js";
|
|
3
3
|
import t from "./sass-LqXmC1Fh-LqXmC1Fh.js";
|
|
4
4
|
import { a } from "./coffee-CRlSxcc3-CY091_1T.js";
|
|
5
|
-
import s from "./markdown-
|
|
5
|
+
import s from "./markdown-QuoPq0lm-QuoPq0lm.js";
|
|
6
6
|
import r from "./css-CAzixsid-CEpuX1HY.js";
|
|
7
7
|
const m = Object.freeze({ displayName: "Ruby Haml", fileTypes: ["haml", "html.haml"], foldingStartMarker: "^\\s*([-%#\\:\\.\\w\\=].*)\\s$", foldingStopMarker: "^\\s*$", name: "haml", patterns: [{ begin: "^(\\s*)==", contentName: "string.quoted.double.ruby", end: "$\\n*", patterns: [{ include: "#interpolated_ruby" }] }, { begin: "^(\\s*):ruby", end: "^(?!\\1\\s+|$\\n*)", name: "source.ruby.embedded.filter.haml", patterns: [{ include: "source.ruby" }] }, { captures: { 1: { name: "punctuation.definition.prolog.haml" } }, match: "^(!!!)($|\\s.*)", name: "meta.prolog.haml" }, { begin: "^(\\s*):javascript", end: "^(?!\\1\\s+|$\\n*)", name: "js.haml", patterns: [{ include: "source.js" }] }, { begin: "^(\\s*)%script", end: "^(?!\\1\\s+|$\\n*)", name: "js.inline.haml", patterns: [{ include: "source.js" }] }, { begin: "^(\\s*):ruby$", end: "^(?!\\1\\s+|$\\n*)", name: "source.ruby.embedded.filter.haml", patterns: [{ include: "source.ruby" }] }, { captures: { 1: { name: "punctuation.section.comment.haml" } }, match: "^(\\s*)(\\/\\[[^\\]].*?$\\n?)", name: "comment.line.slash.haml" }, { begin: "^(\\s*)(\\-\\#|\\/|\\-\\s*\\/\\*+)", beginCaptures: { 2: { name: "punctuation.section.comment.haml" } }, end: "^(?!\\1\\s+|\\n)", name: "comment.block.haml", patterns: [{ include: "text.haml" }] }, { begin: "^\\s*(?:((%)([-\\w:]+))|(?=\\.|#))", captures: { 1: { name: "meta.tag.haml" }, 2: { name: "punctuation.definition.tag.haml" }, 3: { name: "entity.name.tag.haml" } }, end: "$|(?!\\.|#|\\{|\\(|\\[|&|=|-|~|!=|&=|/)", patterns: [{ begin: "==", contentName: "string.quoted.double.ruby", end: "$\\n?", patterns: [{ include: "#interpolated_ruby" }] }, { captures: { 1: { name: "entity.other.attribute-name.class" } }, match: "(\\.[\\w\\-\\:]+)", name: "meta.selector.css" }, { captures: { 1: { name: "entity.other.attribute-name.id" } }, match: "(#[\\w-]+)", name: "meta.selector.css" }, { begin: "(?<!\\#)\\{(?=.*(,|(do)|\\{|\\}|\\||(\\#.*)|\\R)\\s*)", end: "\\s*\\}(?!\\s*\\,)(?!\\s*\\|)(?!\\#\\{.*\\})", name: "meta.section.attributes.haml", patterns: [{ include: "source.ruby" }, { include: "#continuation" }, { include: "#rubyline" }] }, { begin: "\\(", end: "\\)", name: "meta.section.attributes.plain.haml", patterns: [{ match: "([\\w-]+)", name: "constant.other.symbol.ruby" }, { match: "\\=", name: "punctuation" }, { include: "#variables" }, { begin: '"', end: '"', name: "string.quoted.double.ruby", patterns: [{ match: "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)", name: "constant.character.escape.ruby" }, { include: "#interpolated_ruby" }] }, { include: "#interpolated_ruby" }] }, { begin: "\\[(?=.+(,|\\[|\\]|\\||(\\#.*))\\s*)", end: "\\s*\\](?!.*(?!\\#\\[)\\])", name: "meta.section.object.haml", patterns: [{ include: "source.ruby" }, { include: "#continuation" }, { include: "#rubyline" }] }, { include: "#interpolated_ruby_line" }, { include: "#rubyline" }, { match: "/", name: "punctuation.terminator.tag.haml" }] }, { begin: "^(\\s*):(ruby|opal)$", end: "^(?!\\1\\s+|$\\n*)", name: "source.ruby.embedded.filter.haml", patterns: [{ include: "source.ruby" }] }, { begin: "^(\\s*):ruby$", end: "^(?!\\1\\s+|$\\n*)", name: "source.ruby.embedded.filter.haml", patterns: [{ include: "source.ruby" }] }, { begin: "^(\\s*):(style|sass)$", end: "^(?=\\1\\s+|$\\n*)", name: "source.sass.embedded.filter.haml", patterns: [{ include: "source.sass" }] }, { begin: "^(\\s*):coffee(script)?", end: "^(?!\\1\\s+|$\\n*)", name: "source.coffee.embedded.filter.haml", patterns: [{ include: "source.coffee" }] }, { begin: "^(\\s*):plain$", end: "^(?=\\1\\s+|$\\n*)", name: "text.plain.embedded.filter.haml", patterns: [{ include: "text.plain" }] }, { begin: "^(\\s*)(:ruby)", beginCaptures: { 2: { name: "keyword.control.filter.haml" } }, end: "(?m:(?<=\\n)(?!\\1\\s+|$\\n*))", name: "source.ruby.embedded.filter.haml", patterns: [{ include: "source.ruby" }] }, { begin: "^(\\s*)(:sass)", beginCaptures: { 2: { name: "keyword.control.filter.haml" } }, end: "^(?!\\1\\s+|$\\n*)", name: "source.embedded.filter.sass", patterns: [{ include: "source.sass" }] }, { begin: "^(\\s*):(styles|sass)$", end: "^(?=\\1\\s+|$\\n*)", name: "source.sass.embedded.filter.haml", patterns: [{ include: "source.sass" }] }, { begin: "^(\\s*):plain$", end: "^(?=\\1\\s+|$\\n*)", name: "text.plain.embedded.filter.haml", patterns: [{ include: "text.plain" }] }, { captures: { 1: { name: "meta.escape.haml" } }, match: "^\\s*(\\.)" }, { begin: "^\\s*(?==|-|~|!=|&=)", end: "$", patterns: [{ include: "#interpolated_ruby_line" }, { include: "#rubyline" }] }, { begin: "^(\\s*)(:php)", captures: { 2: { name: "entity.name.tag.haml" } }, end: "^(?!\\1\\s+|$\\n*)", name: "meta.embedded.php", patterns: [{ include: "text.html.php#language" }] }, { begin: "^(\\s*)(:markdown)", captures: { 2: { name: "entity.name.tag.haml" } }, end: "^(?!\\1\\s+|$\\n*)", name: "meta.embedded.markdown", patterns: [{ include: "text.html.markdown" }] }, { begin: "^(\\s*)(:(css|styles?))$", captures: { 2: { name: "entity.name.tag.haml" } }, end: "^(?!\\1\\s+|$\\n*)", name: "meta.embedded.css", patterns: [{ include: "source.css" }] }, { begin: "^(\\s*)(:sass)$", captures: { 2: { name: "entity.name.tag.haml" } }, end: "^(?!\\1\\s+|$\\n*)", name: "meta.embedded.sass", patterns: [{ include: "source.sass" }] }, { begin: "^(\\s*)(:scss)$", captures: { 2: { name: "entity.name.tag.haml" } }, end: "^(?!\\1\\s+|$\\n*)", name: "meta.embedded.scss", patterns: [{ include: "source.scss" }] }], repository: { continuation: { captures: { 1: { name: "punctuation.separator.continuation.haml" } }, match: "(\\|)\\s*\\n" }, interpolated_ruby: { patterns: [{ captures: { 0: { name: "punctuation.section.embedded.ruby" }, 1: { name: "source.ruby.embedded.source.empty" } }, match: "#\\{(\\})", name: "source.ruby.embedded.source" }, { begin: "#\\{", captures: { 0: { name: "punctuation.section.embedded.ruby" } }, end: "(\\})", name: "source.ruby.embedded.source", patterns: [{ include: "#nest_curly_and_self" }, { include: "source.ruby" }] }, { include: "#variables" }] }, interpolated_ruby_line: { begin: "!?==", contentName: "string.source.ruby.embedded.haml", end: "$", name: "meta.line.ruby.interpolated.haml", patterns: [{ include: "#interpolated_ruby" }, { include: "source.ruby#escaped_char" }] }, nest_curly_and_self: { patterns: [{ begin: "\\{", captures: { 0: { name: "punctuation.section.scope.ruby" } }, end: "\\}", patterns: [{ include: "#nest_curly_and_self" }, { include: "source.ruby" }] }] }, rubyline: { begin: "(&|!)?(=|-|~)", contentName: "source.ruby.embedded.haml", end: "((do|\\{)( \\|[.*]+\\|)?)$|$|^(?!.*\\|\\s*)$\\n?", endCaptures: { 1: { name: "source.ruby.embedded.html" }, 2: { name: "keyword.control.ruby.start-block" } }, name: "meta.line.ruby.haml", patterns: [{ captures: { 1: { name: "keyword.control.php" } }, match: "\\s+((elseif|foreach|switch|declare|default|use))(?=\\s|\\()" }, { captures: { 1: { name: "keyword.control.import.include.php" } }, match: "\\s+(require_once|include_once)(?=\\s|\\()" }, { match: "\\s+(catch|try|throw|exception|finally|die)(?=\\s|\\(|\\n*)", name: "keyword.control.exception.php" }, { captures: { 1: { name: "storage.type.function.php" } }, match: "\\s+(function\\s*)((?=\\())" }, { captures: { 1: { name: "keyword.control.php" } }, match: "\\s+(use\\s*)((?=\\())" }, { match: "(\\||,|<|do|\\{)\\s*(\\#.*)?$\\n*", name: "source.ruby", patterns: [{ include: "#rubyline" }] }, { comment: "Hack to let ruby comments work in this context properly", match: "#.*$", name: "comment.line.number-sign.ruby" }, { include: "source.ruby" }, { include: "#continuation" }] }, variables: { patterns: [{ captures: { 1: { name: "punctuation.definition.variable.ruby" } }, match: "(#@)[a-zA-Z_]\\w*", name: "variable.other.readwrite.instance.ruby" }, { captures: { 1: { name: "punctuation.definition.variable.ruby" } }, match: "(#@@)[a-zA-Z_]\\w*", name: "variable.other.readwrite.class.ruby" }, { captures: { 1: { name: "punctuation.definition.variable.ruby" } }, match: "(#\\$)[a-zA-Z_]\\w*", name: "variable.other.readwrite.global.ruby" }] } }, scopeName: "text.haml", embeddedLangs: ["ruby", "javascript", "sass", "coffee", "markdown", "css"] });
|
|
8
8
|
var b = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./html-BZB5lEhh-B74zAnWx.js";
|
|
2
2
|
import t from "./css-CAzixsid-CEpuX1HY.js";
|
|
3
3
|
import n from "./javascript-DqVBMyXe-DqVBMyXe.js";
|
|
4
|
-
import a from "./yaml-
|
|
4
|
+
import a from "./yaml-BEu5ErCD-82IBfEy4.js";
|
|
5
5
|
const i = Object.freeze({ displayName: "Handlebars", name: "handlebars", patterns: [{ include: "#yfm" }, { include: "#extends" }, { include: "#block_comments" }, { include: "#comments" }, { include: "#block_helper" }, { include: "#end_block" }, { include: "#else_token" }, { include: "#partial_and_var" }, { include: "#inline_script" }, { include: "#html_tags" }, { include: "text.html.basic" }], repository: { block_comments: { patterns: [{ begin: "\\{\\{!--", end: "--\\}\\}", name: "comment.block.handlebars", patterns: [{ match: "@\\w*", name: "keyword.annotation.handlebars" }, { include: "#comments" }] }, { begin: "<!--", captures: { 0: { name: "punctuation.definition.comment.html" } }, end: "-{2,3}\\s*>", name: "comment.block.html", patterns: [{ match: "--", name: "invalid.illegal.bad-comments-or-CDATA.html" }] }] }, block_helper: { begin: "(\\{\\{)(~?\\#)([-a-zA-Z0-9_\\./>]+)\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*", beginCaptures: { 1: { name: "support.constant.handlebars" }, 2: { name: "support.constant.handlebars keyword.control" }, 3: { name: "support.constant.handlebars keyword.control" }, 4: { name: "variable.parameter.handlebars" }, 5: { name: "support.constant.handlebars" }, 6: { name: "variable.parameter.handlebars" }, 7: { name: "support.constant.handlebars" } }, end: "(~?\\}\\})", endCaptures: { 1: { name: "support.constant.handlebars" } }, name: "meta.function.block.start.handlebars", patterns: [{ include: "#string" }, { include: "#handlebars_attribute" }] }, comments: { patterns: [{ begin: "\\{\\{!", end: "\\}\\}", name: "comment.block.handlebars", patterns: [{ match: "@\\w*", name: "keyword.annotation.handlebars" }, { include: "#comments" }] }, { begin: "<!--", captures: { 0: { name: "punctuation.definition.comment.html" } }, end: "-{2,3}\\s*>", name: "comment.block.html", patterns: [{ match: "--", name: "invalid.illegal.bad-comments-or-CDATA.html" }] }] }, else_token: { begin: "(\\{\\{)(~?else)(@?\\s(if)\\s([-a-zA-Z0-9_\\.\\(\\s\\)/]+))?", beginCaptures: { 1: { name: "support.constant.handlebars" }, 2: { name: "support.constant.handlebars keyword.control" }, 3: { name: "support.constant.handlebars" }, 4: { name: "variable.parameter.handlebars" } }, end: "(~?\\}\\}\\}*)", endCaptures: { 1: { name: "support.constant.handlebars" } }, name: "meta.function.inline.else.handlebars" }, end_block: { begin: "(\\{\\{)(~?/)([a-zA-Z0-9/_\\.-]+)\\s*", beginCaptures: { 1: { name: "support.constant.handlebars" }, 2: { name: "support.constant.handlebars keyword.control" }, 3: { name: "support.constant.handlebars keyword.control" } }, end: "(~?\\}\\})", endCaptures: { 1: { name: "support.constant.handlebars" } }, name: "meta.function.block.end.handlebars", patterns: [] }, 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" }] }, "escaped-double-quote": { match: '\\\\"', name: "constant.character.escape.js" }, "escaped-single-quote": { match: "\\\\'", name: "constant.character.escape.js" }, extends: { patterns: [{ begin: "(\\{\\{!<)\\s([-a-zA-Z0-9_\\./]+)", beginCaptures: { 1: { name: "support.function.handlebars" }, 2: { name: "support.class.handlebars" } }, end: "(\\}\\})", endCaptures: { 1: { name: "support.function.handlebars" } }, name: "meta.preprocessor.handlebars" }] }, handlebars_attribute: { patterns: [{ include: "#handlebars_attribute_name" }, { include: "#handlebars_attribute_value" }] }, handlebars_attribute_name: { begin: "\\b([-a-zA-Z0-9_\\.]+)\\b=", captures: { 1: { name: "variable.parameter.handlebars" } }, end: `(?='|"|)`, name: "entity.other.attribute-name.handlebars" }, handlebars_attribute_value: { begin: "([-a-zA-Z0-9_\\./]+)\\b", captures: { 1: { name: "variable.parameter.handlebars" } }, end: `('|"|)`, name: "entity.other.attribute-value.handlebars", patterns: [{ include: "#string" }] }, html_tags: { patterns: [{ begin: "(<)([a-zA-Z0-9:-]+)(?=[^>]*></\\2>)", beginCaptures: { 1: { name: "punctuation.definition.tag.html" }, 2: { name: "entity.name.tag.html" } }, end: "(>(<)/)(\\2)(>)", endCaptures: { 1: { name: "punctuation.definition.tag.html" }, 2: { name: "meta.scope.between-tag-pair.html" }, 3: { name: "entity.name.tag.html" }, 4: { name: "punctuation.definition.tag.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" }] }, { begin: "<!--", captures: { 0: { name: "punctuation.definition.comment.html" } }, end: "--\\s*>", name: "comment.block.html", patterns: [{ match: "--", name: "invalid.illegal.bad-comments-or-CDATA.html" }] }, { begin: "<!", captures: { 0: { name: "punctuation.definition.tag.html" } }, end: ">", name: "meta.tag.sgml.html", patterns: [{ begin: "(DOCTYPE|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: "(?:^\\s+)?(<)((?i:style))\\b(?![^>]*/>)", captures: { 1: { name: "punctuation.definition.tag.html" }, 2: { name: "entity.name.tag.style.html" }, 3: { name: "punctuation.definition.tag.html" } }, end: "(</)((?i:style))(>)(?:\\s*\\n)?", name: "source.css.embedded.html", patterns: [{ include: "#tag-stuff" }, { begin: "(>)", beginCaptures: { 1: { name: "punctuation.definition.tag.html" } }, end: "(?=</(?i:style))", patterns: [{ include: "source.css" }] }] }, { begin: "(?:^\\s+)?(<)((?i:script))\\b(?![^>]*/>)", beginCaptures: { 1: { name: "punctuation.definition.tag.html" }, 2: { name: "entity.name.tag.script.html" } }, end: "(?<=</(script|SCRIPT))(>)(?:\\s*\\n)?", endCaptures: { 2: { name: "punctuation.definition.tag.html" } }, name: "source.js.embedded.html", patterns: [{ include: "#tag-stuff" }, { begin: "(?<!</(?:script|SCRIPT))(>)", captures: { 1: { name: "punctuation.definition.tag.html" }, 2: { name: "entity.name.tag.script.html" } }, end: "(</)((?i:script))", patterns: [{ captures: { 1: { name: "punctuation.definition.comment.js" } }, match: "(//).*?((?=<\/script)|$\\n?)", name: "comment.line.double-slash.js" }, { begin: "/\\*", captures: { 0: { name: "punctuation.definition.comment.js" } }, end: "\\*/|(?=<\/script)", name: "comment.block.js" }, { include: "source.js" }] }] }, { begin: "(</?)((?i:body|head|html)\\b)", captures: { 1: { name: "punctuation.definition.tag.html" }, 2: { name: "entity.name.tag.structure.any.html" } }, end: "(>)", name: "meta.tag.structure.any.html", patterns: [{ include: "#tag-stuff" }] }, { begin: "(</?)((?i:address|blockquote|dd|div|header|section|footer|aside|nav|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)", captures: { 1: { name: "punctuation.definition.tag.html" }, 2: { name: "entity.name.tag.block.any.html" } }, end: "(>)", 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)", captures: { 1: { name: "punctuation.definition.tag.html" }, 2: { name: "entity.name.tag.inline.any.html" } }, end: "((?: ?/)?>)", name: "meta.tag.inline.any.html", patterns: [{ include: "#tag-stuff" }] }, { begin: "(</?)([a-zA-Z0-9:-]+)", captures: { 1: { name: "punctuation.definition.tag.html" }, 2: { name: "entity.name.tag.other.html" } }, end: "(>)", name: "meta.tag.other.html", patterns: [{ include: "#tag-stuff" }] }, { begin: "(</?)([a-zA-Z0-9{}:-]+)", captures: { 1: { name: "punctuation.definition.tag.html" }, 2: { name: "entity.name.tag.tokenised.html" } }, end: "(>)", name: "meta.tag.tokenised.html", patterns: [{ include: "#tag-stuff" }] }, { include: "#entities" }, { match: "<>", name: "invalid.illegal.incomplete.html" }, { match: "<", name: "invalid.illegal.bad-angle-bracket.html" }] }, inline_script: { begin: `(?:^\\s+)?(<)((?i:script))\\b(?:.*(type)=(["'](?:text/x-handlebars-template|text/x-handlebars|text/template|x-tmpl-handlebars)["']))(?![^>]*/>)`, beginCaptures: { 1: { name: "punctuation.definition.tag.html" }, 2: { name: "entity.name.tag.script.html" }, 3: { name: "entity.other.attribute-name.html" }, 4: { name: "string.quoted.double.html" } }, end: "(?<=</(script|SCRIPT))(>)(?:\\s*\\n)?", endCaptures: { 2: { name: "punctuation.definition.tag.html" } }, name: "source.handlebars.embedded.html", patterns: [{ include: "#tag-stuff" }, { begin: "(?<!</(?:script|SCRIPT))(>)", captures: { 1: { name: "punctuation.definition.tag.html" }, 2: { name: "entity.name.tag.script.html" } }, end: "(</)((?i:script))", patterns: [{ include: "#block_comments" }, { include: "#comments" }, { include: "#block_helper" }, { include: "#end_block" }, { include: "#else_token" }, { include: "#partial_and_var" }, { include: "#html_tags" }, { include: "text.html.basic" }] }] }, partial_and_var: { begin: "(\\{\\{~?\\{*(>|!<)*)\\s*(@?[-a-zA-Z0-9$_\\./]+)*", beginCaptures: { 1: { name: "support.constant.handlebars" }, 3: { name: "variable.parameter.handlebars" } }, end: "(~?\\}\\}\\}*)", endCaptures: { 1: { name: "support.constant.handlebars" } }, name: "meta.function.inline.other.handlebars", patterns: [{ include: "#string" }, { include: "#handlebars_attribute" }] }, string: { patterns: [{ include: "#string-single-quoted" }, { include: "#string-double-quoted" }] }, "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.handlebars", patterns: [{ include: "#escaped-double-quote" }, { include: "#block_comments" }, { include: "#comments" }, { include: "#block_helper" }, { include: "#else_token" }, { include: "#end_block" }, { include: "#partial_and_var" }] }, "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.handlebars", patterns: [{ include: "#escaped-single-quote" }, { include: "#block_comments" }, { include: "#comments" }, { include: "#block_helper" }, { include: "#else_token" }, { include: "#end_block" }, { include: "#partial_and_var" }] }, "tag-stuff": { patterns: [{ include: "#tag_id_attribute" }, { include: "#tag_generic_attribute" }, { include: "#string" }, { include: "#block_comments" }, { include: "#comments" }, { include: "#block_helper" }, { include: "#end_block" }, { include: "#else_token" }, { include: "#partial_and_var" }] }, tag_generic_attribute: { begin: "\\b([a-zA-Z0-9_-]+)\\b\\s*(=)", captures: { 1: { name: "entity.other.attribute-name.generic.html" }, 2: { name: "punctuation.separator.key-value.html" } }, end: `(?<='|"|)`, name: "entity.other.attribute-name.html", patterns: [{ include: "#string" }] }, 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: `(?<='|"|)`, name: "meta.attribute-with-value.id.html", patterns: [{ include: "#string" }] }, yfm: { patterns: [{ begin: "(?<!\\s)---\\n$", end: "^---\\s", name: "markup.raw.yaml.front-matter", patterns: [{ include: "source.yaml" }] }] } }, scopeName: "text.html.handlebars", embeddedLangs: ["html", "css", "javascript", "yaml"], aliases: ["hbs"] });
|
|
6
6
|
var d = [
|
|
7
7
|
...e,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as E, Y as j } from "./graph-
|
|
2
|
-
import { m as J, O as U } from "./layout-
|
|
3
|
-
import { a as Y } from "./clone-
|
|
4
|
-
import { h as A, m as H, y as W, o as q, d as z, t as T, f as D, u as K, g as Q, p as V, x as Z, R, E as O } from "./edges-d417c7a0-
|
|
5
|
-
import { l as i, c as B, p as N, h as G } from "./index-
|
|
6
|
-
import { U as _ } from "./createText-423428c9-
|
|
1
|
+
import { c as E, Y as j } from "./graph-Ch18bQn5-DLZlxaOx.js";
|
|
2
|
+
import { m as J, O as U } from "./layout-BzV691RN-Dwqgf_2b.js";
|
|
3
|
+
import { a as Y } from "./clone-BSWoNj0I-tckXyhCL.js";
|
|
4
|
+
import { h as A, m as H, y as W, o as q, d as z, t as T, f as D, u as K, g as Q, p as V, x as Z, R, E as O } from "./edges-d417c7a0-D7e9Y4V--CivEDAj5.js";
|
|
5
|
+
import { l as i, c as B, p as N, h as G } from "./index-DwEVUtAn.js";
|
|
6
|
+
import { U as _ } from "./createText-423428c9-DeHbckoy-BD9j3egy.js";
|
|
7
7
|
function y(r) {
|
|
8
8
|
var e = {
|
|
9
9
|
options: {
|