@vunk/plus 1.10.0 → 1.10.2
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/components/bubble-list/index.css +0 -22
- package/components/bubble-list/index.mjs +413 -9
- package/components/bubble-list/src/core/index.vue.d.ts +57 -0
- package/components/bubble-list/src/index.vue.d.ts +57 -0
- package/components/chat-independent/src/index.vue.d.ts +57 -0
- package/components/drawer/index.mjs +1 -1
- package/components/index3.mjs +20 -79450
- package/components/scrollbar/index.mjs +89 -15
- package/components/scrollbar/src/bar.d.ts +4 -0
- package/components/scrollbar/src/bar.vue.d.ts +26 -0
- package/components/scrollbar/src/index.vue.d.ts +57 -0
- package/components/scrollbar/src/thumb.d.ts +4 -0
- package/components/scrollbar/src/thumb.vue.d.ts +13 -0
- package/components/scrollbar/src/types.d.ts +5 -1
- package/components/tables-v1/src/ctx.d.ts +2 -2
- package/components/tables-v1/src/index.vue.d.ts +6 -6
- package/components/tables-v1-checkbox/src/ctx.d.ts +2 -2
- package/components/tables-v1-checkbox/src/index.vue.d.ts +12 -12
- package/components/text/src/ctx.d.ts +1 -1
- package/components/text/src/index.vue.d.ts +2 -2
- package/components/xgplayer/index.mjs +2 -16357
- package/index.css +0 -22
- package/package.json +1 -1
- package/components/_baseUniq-BXtq6_NW.mjs +0 -239
- package/components/abap-B7h4dtBh.mjs +0 -6
- package/components/actionscript-3-Bmm7RA3Y.mjs +0 -6
- package/components/ada-BZS802Se.mjs +0 -6
- package/components/andromeeda-CrngpmZk.mjs +0 -3
- package/components/apache-D4roVlsU.mjs +0 -6
- package/components/apex-D6mfw0H5.mjs +0 -6
- package/components/apl-DDK-VObo.mjs +0 -18
- package/components/applescript-C43Knf0G.mjs +0 -6
- package/components/ara-DRBH84ND.mjs +0 -6
- package/components/arc-Js_tyW10.mjs +0 -131
- package/components/architecture-O4VJ6CD3-ZoZ2IAk2.mjs +0 -15
- package/components/architectureDiagram-SUXI7LT5-kyYGGrHN.mjs +0 -8678
- package/components/asm-3tg4MVib.mjs +0 -6
- package/components/astro-v4FYbRud.mjs +0 -19
- package/components/aurora-x-wJ4-eM2h.mjs +0 -3
- package/components/awk-ChreaG-G.mjs +0 -6
- package/components/ayu-dark-BEKp3oqs.mjs +0 -3
- package/components/ballerina-B0yt0TYU.mjs +0 -6
- package/components/batch-Ce_EX3Sx.mjs +0 -14
- package/components/beancount-BRIsdQEB.mjs +0 -6
- package/components/berry-Brv4WWdL.mjs +0 -14
- package/components/bibtex-BLeFwAes.mjs +0 -6
- package/components/bicep-BVrgfErX.mjs +0 -6
- package/components/blade-By3Sw_Ex.mjs +0 -22
- package/components/blockDiagram-6J76NXCF-IAr4zDV3.mjs +0 -3610
- package/components/c-C4VtT7JA.mjs +0 -6
- package/components/c4Diagram-6F6E4RAY-Dv27rXcJ.mjs +0 -2492
- package/components/catppuccin-frappe-zLMNRRUx.mjs +0 -3
- package/components/catppuccin-latte-CdF5jC3c.mjs +0 -3
- package/components/catppuccin-macchiato-DyjXeyRt.mjs +0 -3
- package/components/catppuccin-mocha-66IdYxR8.mjs +0 -3
- package/components/cdc-30ktANo3.mjs +0 -14
- package/components/channel-BBZy6zOT.mjs +0 -7
- package/components/chunk-353BL4L5-Dn_Y_Yna.mjs +0 -17
- package/components/chunk-67H74DCK-Br5U8bfD.mjs +0 -102
- package/components/chunk-AACKK3MU-DH_MKxca.mjs +0 -17
- package/components/chunk-BFAMUDN2-DHLCoYMN.mjs +0 -13
- package/components/chunk-E2GYISFI-DQPHyyga.mjs +0 -19
- package/components/chunk-OW32GOEJ-CQOSE6Bn.mjs +0 -1924
- package/components/chunk-SKB7J2MH-BlwHRDiW.mjs +0 -25
- package/components/chunk-SZ463SBG-DEp8buKJ.mjs +0 -1823
- package/components/clarity-6uBl6Vpb.mjs +0 -6
- package/components/classDiagram-M3E45YP4-D0ySDe-v.mjs +0 -32
- package/components/classDiagram-v2-YAWTLIQI-D0ySDe-v.mjs +0 -32
- package/components/clojure-COBRmwo8.mjs +0 -14
- package/components/clone-CEJtuQzg.mjs +0 -8
- package/components/cmake-CDfQILeU.mjs +0 -6
- package/components/cobol-BOOIiISO.mjs +0 -13
- package/components/coffee-DO_RGoZp.mjs +0 -9
- package/components/cpp-DAK8ktHO.mjs +0 -25
- package/components/crystal-CBGbbyVp.mjs +0 -19
- package/components/cs-h3ksD6-P.mjs +0 -14
- package/components/css-BtVcDqlU.mjs +0 -6
- package/components/cue-BFSVLV6N.mjs +0 -6
- package/components/cypher-Dl2CXoXF.mjs +0 -14
- package/components/cytoscape.esm-BojS1z60.mjs +0 -30216
- package/components/d-9qSZPw74.mjs +0 -6
- package/components/dagre-JOIXM2OF-5zx0JY2T.mjs +0 -707
- package/components/dark-plus-DmZ1Dzd4.mjs +0 -3
- package/components/dart-CCSsOg9l.mjs +0 -6
- package/components/dax-CvsmLV-B.mjs +0 -6
- package/components/defaultLocale-DVr69WTU.mjs +0 -202
- package/components/diagram-5UYTHUR4-C19nyAKc.mjs +0 -215
- package/components/diagram-VMROVX33-DkGwo-hj.mjs +0 -861
- package/components/diagram-ZTM2IBQH-CBgHCu9L.mjs +0 -317
- package/components/diff-BEdzuHlE.mjs +0 -6
- package/components/dockerfile-B3DP334t.mjs +0 -14
- package/components/dracula-B8-AVrwI.mjs +0 -3
- package/components/dracula-soft-BHeefow7.mjs +0 -3
- package/components/dream-maker-CNLQpoF-.mjs +0 -6
- package/components/elixir-0rTCSSfp.mjs +0 -11
- package/components/elm-BhwiZPvf.mjs +0 -10
- package/components/erDiagram-3M52JZNH-cttdAJXW.mjs +0 -1169
- package/components/erb-Lra8TlYM.mjs +0 -27
- package/components/erlang-D2NNgvtR.mjs +0 -17
- package/components/everforest-dark-Cg1xdODP.mjs +0 -3
- package/components/everforest-light-BmTD3bxe.mjs +0 -3
- package/components/fish-BU5HSdZy.mjs +0 -6
- package/components/flowDiagram-KYDEHFYC-9HpsqDdB.mjs +0 -2345
- package/components/fs-CdBSddpF.mjs +0 -17
- package/components/ganttDiagram-EK5VF46D-8QB3ofs6.mjs +0 -3497
- package/components/gdresource-CAbkn6H_.mjs +0 -11
- package/components/gdscript-Be_cubqt.mjs +0 -6
- package/components/gdshader-BEzE4j_3.mjs +0 -6
- package/components/gherkin-xCNF9gh8.mjs +0 -6
- package/components/git-commit-PP9xCApN.mjs +0 -9
- package/components/git-rebase-DqdGofLo.mjs +0 -9
- package/components/gitGraph-ZV4HHKMB-BSmtVGRu.mjs +0 -15
- package/components/gitGraphDiagram-GW3U2K7C-DNzc0Vx_.mjs +0 -1227
- package/components/github-dark-O22yVQaY.mjs +0 -3
- package/components/github-dark-default-DB2Hkvqn.mjs +0 -3
- package/components/github-dark-dimmed-CMZ_OfqC.mjs +0 -3
- package/components/github-dark-high-contrast-DmxWVmCU.mjs +0 -3
- package/components/github-light-BTbR9xVK.mjs +0 -3
- package/components/github-light-default-DWEonwFe.mjs +0 -3
- package/components/github-light-high-contrast-WJ_cPDts.mjs +0 -3
- package/components/glimmer-js-BkPYTyD4.mjs +0 -23
- package/components/glsl-CGsiYPcu.mjs +0 -9
- package/components/gnuplot-tV8vezdE.mjs +0 -6
- package/components/go-CBmVHZBz.mjs +0 -6
- package/components/graph-3zJxsO-i.mjs +0 -425
- package/components/graphql-D4pgneW3.mjs +0 -15
- package/components/groovy-Bn4MhXgW.mjs +0 -6
- package/components/gruvbox-dark-hard-C89wZ4s3.mjs +0 -3
- package/components/gruvbox-dark-medium-swz85q_b.mjs +0 -3
- package/components/gruvbox-dark-soft-BYHBHQJW.mjs +0 -3
- package/components/gruvbox-light-hard-DEF_ZxYZ.mjs +0 -3
- package/components/gruvbox-light-medium-ziUMnHJx.mjs +0 -3
- package/components/gruvbox-light-soft-Cuwp0tsB.mjs +0 -3
- package/components/gts-d3WsqAZM.mjs +0 -23
- package/components/hack-CwaBuF5l.mjs +0 -13
- package/components/haml-gLijj4rW.mjs +0 -11
- package/components/hbs-CFi5SpI3.mjs +0 -23
- package/components/hcl-axoq0Ycu.mjs +0 -6
- package/components/hjson-I7LcauIB.mjs +0 -6
- package/components/hlsl-TRzjajlb.mjs +0 -6
- package/components/houston-CF_ws8Cq.mjs +0 -3
- package/components/hs-DXSGqUFF.mjs +0 -14
- package/components/html-CLq-n30c.mjs +0 -11
- package/components/html-derivative-C8POX8SL.mjs +0 -9
- package/components/http-BYUKZ6kX.mjs +0 -20
- package/components/imba-C4923lSV.mjs +0 -6
- package/components/index4.mjs +0 -78
- package/components/info-63CPKGFF-C8sYWczU.mjs +0 -15
- package/components/infoDiagram-LHK5PUON-C-vFFPTf.mjs +0 -44
- package/components/init-ZxktEp_H.mjs +0 -15
- package/components/java-BfXh-0uJ.mjs +0 -6
- package/components/jinja-html-BmW4v_vu.mjs +0 -11
- package/components/jison-C9kAT_Oj.mjs +0 -9
- package/components/journeyDiagram-EWQZEKCU-BJrw4-AG.mjs +0 -1264
- package/components/js-CN_xSsjU.mjs +0 -14
- package/components/json-TjWBGEk1.mjs +0 -6
- package/components/json5-DCGCKrmX.mjs +0 -6
- package/components/jsonc-DLVLp8id.mjs +0 -6
- package/components/jsonl-B-R_pDGg.mjs +0 -6
- package/components/jsonnet-Cs8BnnC6.mjs +0 -6
- package/components/jssm-D_YBQ_cM.mjs +0 -14
- package/components/jsx-BPmvoin2.mjs +0 -6
- package/components/julia-C-JjBobP.mjs +0 -19
- package/components/kanagawa-dragon-DU8n2NNT.mjs +0 -3
- package/components/kanagawa-lotus-Byd0CDet.mjs +0 -3
- package/components/kanagawa-wave-DExoagcR.mjs +0 -3
- package/components/kanban-definition-ZSS6B67P-BptAnqU-.mjs +0 -1059
- package/components/kotlin-BM2ZNTMh.mjs +0 -6
- package/components/kusto-D9MF7CZf.mjs +0 -14
- package/components/laserwave-DF03wMlf.mjs +0 -3
- package/components/latex-BsqkLZB_.mjs +0 -10
- package/components/layout-sGZIJplX.mjs +0 -2043
- package/components/less-BAzLMJNR.mjs +0 -6
- package/components/light-plus-DS08Xg5J.mjs +0 -3
- package/components/linear-DqgVh5FN.mjs +0 -336
- package/components/liquid-f2VHt0dg.mjs +0 -15
- package/components/lisp-DAq1kaby.mjs +0 -6
- package/components/logo-D9l7oEJ8.mjs +0 -6
- package/components/lua-CH3ttzl_.mjs +0 -9
- package/components/makefile-D2qLe7q0.mjs +0 -14
- package/components/marko-DwRyI_--.mjs +0 -15
- package/components/material-theme-B8B2U48Q.mjs +0 -3
- package/components/material-theme-darker-BV0iY_T3.mjs +0 -3
- package/components/material-theme-lighter-DrzybSTF.mjs +0 -3
- package/components/material-theme-ocean-BRPLVReX.mjs +0 -3
- package/components/material-theme-palenight-DSJwsR_D.mjs +0 -3
- package/components/matlab-7XHduepk.mjs +0 -6
- package/components/md-BIvDPr-W.mjs +0 -14
- package/components/mdc-Rx6hWSHn.mjs +0 -16
- package/components/mdx-D5wExp-O.mjs +0 -6
- package/components/mermaid-CUjtoYEe.mjs +0 -6
- package/components/mermaid-parser.core-CH9ryA1K.mjs +0 -16987
- package/components/mermaid.core-CAqkCmS1.mjs +0 -20977
- package/components/min-BngCxx8g.mjs +0 -109
- package/components/min-dark-BNaN9fWk.mjs +0 -3
- package/components/min-light-CMrjentn.mjs +0 -3
- package/components/mindmap-definition-6CBA2TL7-Cp_EeEsh.mjs +0 -5856
- package/components/mojo-CrbF881p.mjs +0 -6
- package/components/monokai-DelygWXa.mjs +0 -3
- package/components/narrat-DOwkIbBe.mjs +0 -14
- package/components/nf-DHfvJ2gH.mjs +0 -14
- package/components/nginx-B_jWsywZ.mjs +0 -10
- package/components/night-owl-DSS199ra.mjs +0 -3
- package/components/nim-yzbnZKJd.mjs +0 -22
- package/components/nix--3K2gyjg.mjs +0 -6
- package/components/nord-CvDbBq5M.mjs +0 -3
- package/components/objective-c-DkOBZg1J.mjs +0 -14
- package/components/objective-cpp-DEoN9Fe5.mjs +0 -6
- package/components/ocaml-B1kfGk9Y.mjs +0 -6
- package/components/one-dark-pro-CsMf0BoJ.mjs +0 -3
- package/components/one-light-BwwAsfsj.mjs +0 -3
- package/components/ordinal-DSZU4PqD.mjs +0 -76
- package/components/packet-HUATNLJX-bfFWFja0.mjs +0 -15
- package/components/pascal-CU8Kjkr_.mjs +0 -6
- package/components/perl-FH6su6vZ.mjs +0 -18
- package/components/php-Dnl1TfYH.mjs +0 -20
- package/components/pie-WTHONI2E-QPrWs3SR.mjs +0 -15
- package/components/pieDiagram-NIOCPIFQ-C46Y_4C6.mjs +0 -250
- package/components/plastic-BjwMpBc0.mjs +0 -3
- package/components/plsql-B3Na24V4.mjs +0 -6
- package/components/poimandres-ChWyhPrn.mjs +0 -3
- package/components/postcss-kj1IbjVd.mjs +0 -6
- package/components/powerquery-B-e1fO-k.mjs +0 -6
- package/components/prisma-bmxcSDxq.mjs +0 -6
- package/components/prolog-BT9GCzqD.mjs +0 -6
- package/components/properties-D6yKO1eW.mjs +0 -14
- package/components/proto-BIXM0k1a.mjs +0 -6
- package/components/ps1-aFyNx8UH.mjs +0 -18
- package/components/pug-BrOx0bSt.mjs +0 -21
- package/components/puppet-N15G4Usj.mjs +0 -6
- package/components/purescript-DrwsEYNH.mjs +0 -6
- package/components/python-D2s92fRP.mjs +0 -14
- package/components/ql-DTm-NCRo.mjs +0 -14
- package/components/quadrantDiagram-2OG54O6I-Dgf6d6F_.mjs +0 -1349
- package/components/r-oprfD2-9.mjs +0 -6
- package/components/radar-NJJJXTRR-BnUCJhQL.mjs +0 -15
- package/components/raku-xArQd_rF.mjs +0 -14
- package/components/razor-BoXCAbWQ.mjs +0 -13
- package/components/red-DByOl5N0.mjs +0 -3
- package/components/reg-CULnG2WX.mjs +0 -6
- package/components/rel-CHRwzjd4.mjs +0 -6
- package/components/requirementDiagram-QOLK2EJ7-CSF6N7HA.mjs +0 -1173
- package/components/riscv-BNQ9cVpw.mjs +0 -6
- package/components/rose-pine-LL9gXmP2.mjs +0 -3
- package/components/rose-pine-dawn-CH9zdisO.mjs +0 -3
- package/components/rose-pine-moon-B1oKSfEJ.mjs +0 -3
- package/components/rst-bEtD1v7N.mjs +0 -36
- package/components/ruby-BmfBy6EV.mjs +0 -44
- package/components/rust-Bf_fdNdL.mjs +0 -14
- package/components/sankeyDiagram-4UZDY2LN-BAHB7dMS.mjs +0 -1201
- package/components/sas-BLBgC3TA.mjs +0 -9
- package/components/sass-BheygBdF.mjs +0 -6
- package/components/scala-B-_7vFVn.mjs +0 -6
- package/components/scheme-BSHdPinv.mjs +0 -6
- package/components/scss-Dq-LbI_c.mjs +0 -9
- package/components/sequenceDiagram-SKLFT4DO-10gLJ50N.mjs +0 -3424
- package/components/shaderlab-BOQRTiQi.mjs +0 -17
- package/components/shellsession-Cu3c0QAc.mjs +0 -17
- package/components/slack-dark-BEe10hxO.mjs +0 -3
- package/components/slack-ochin-BKmu9pBc.mjs +0 -3
- package/components/smalltalk-qxcGy4fT.mjs +0 -6
- package/components/snazzy-light-Dcvd-ZyI.mjs +0 -3
- package/components/solarized-dark-BBl5y5sR.mjs +0 -3
- package/components/solarized-light-DW9b_AY8.mjs +0 -3
- package/components/solidity-CewKZgp-.mjs +0 -6
- package/components/sparql-DswowMAp.mjs +0 -9
- package/components/splunk-gK6Iw_P9.mjs +0 -14
- package/components/sql-DzUuSofg.mjs +0 -6
- package/components/ssh-config-Bk_I5wDR.mjs +0 -6
- package/components/stata-Dl7wDdBE.mjs +0 -9
- package/components/stateDiagram-MI5ZYTHO-D6p6nCaj.mjs +0 -461
- package/components/stateDiagram-v2-5AN5P6BG-DaN5hC-t.mjs +0 -31
- package/components/stylus-qRNkxrFU.mjs +0 -14
- package/components/svelte-B9qv3vkS.mjs +0 -15
- package/components/swift-BRQRsam8.mjs +0 -6
- package/components/synthwave-84-CoUef9sh.mjs +0 -3
- package/components/system-verilog-BcESSvRn.mjs +0 -6
- package/components/tasl-DfOr2qHi.mjs +0 -6
- package/components/tcl-CTsc4-t7.mjs +0 -6
- package/components/tex-CumJx1zu.mjs +0 -9
- package/components/timeline-definition-MYPXXCX6-gLqnWxDu.mjs +0 -1236
- package/components/tokyo-night-DjtLpAEY.mjs +0 -3
- package/components/toml-vHPzWDj6.mjs +0 -6
- package/components/treemap-75Q7IDZK-B2atdfMH.mjs +0 -15
- package/components/tsx-CmGGo4Hm.mjs +0 -6
- package/components/turtle-BnC7StHY.mjs +0 -6
- package/components/twig-0XKNpXN1.mjs +0 -35
- package/components/typescript-CgxwwAuC.mjs +0 -14
- package/components/v-Bmdjo9cy.mjs +0 -6
- package/components/vb-DuF6ZenW.mjs +0 -14
- package/components/verilog-CCb_iTfF.mjs +0 -6
- package/components/vesper-4Q1cEwPL.mjs +0 -3
- package/components/vhdl-DMqk4T2s.mjs +0 -6
- package/components/vimscript-aKp9YbYm.mjs +0 -18
- package/components/vitesse-black-BqNLki8b.mjs +0 -3
- package/components/vitesse-dark-jJ32WhwH.mjs +0 -3
- package/components/vitesse-light-476zM4e6.mjs +0 -3
- package/components/vue-DVNNTw2l.mjs +0 -40
- package/components/vue-html-Cr5wciIP.mjs +0 -16
- package/components/vyper-DYedWgAE.mjs +0 -14
- package/components/wasm-BBh6f151.mjs +0 -6
- package/components/wasm-DDgzZJey.mjs +0 -7
- package/components/wenyan-BdqozpMZ.mjs +0 -6
- package/components/wgsl-Vo-hHVWH.mjs +0 -6
- package/components/wolfram-CRmjUoI4.mjs +0 -6
- package/components/xml-BMzZeaqs.mjs +0 -9
- package/components/xsl-CAhvzxWv.mjs +0 -10
- package/components/xychartDiagram-H2YORKM3-Whqa4ezL.mjs +0 -1895
- package/components/yml-BhSrWWMS.mjs +0 -14
- package/components/zenscript-DFINJL6j.mjs +0 -6
- package/components/zig-CS4FMAZp.mjs +0 -6
- package/components/zsh-hcK4TBd7.mjs +0 -26
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
const lang = Object.freeze(JSON.parse(`{"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"}]}},"match":"(?<=\\\\brange\\\\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":{"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":"\\\\b(new)\\\\b(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.support.builtin.go"},"2":{"name":"punctuation.definition.begin.bracket.round.go"}},"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":"\\\\b(make)\\\\b(\\\\()((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?[]*\\\\[]+{0,1}(?:(?!\\\\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"}]}},"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"}]},"const_assignment":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.other.constant.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":"(?<=\\\\bconst\\\\b)\\\\s*\\\\b([.\\\\w]+(?:,\\\\s*[.\\\\w]+)*)\\\\s*((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?(?![]*\\\\[]+{0,1}\\\\b(?:struct|func|map)\\\\b)(?:[]*.\\\\[\\\\w]+(?:,\\\\s*[]*.\\\\[\\\\w]+)*)?\\\\s*=?)?"},{"begin":"(?<=\\\\bconst\\\\b)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.other.constant.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*((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?(?![]*\\\\[]+{0,1}\\\\b(?:struct|func|map)\\\\b)(?:[]*.\\\\[\\\\w]+(?:,\\\\s*[]*.\\\\[\\\\w]+)*)?\\\\s*=?)?"},{"include":"$self"}]}]},"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":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<!\\\\w)(\\\\([]*\\\\[]+{0,1}[.\\\\w]+(?:\\\\[(?:[]*.\\\\[{}\\\\w]+(?:,\\\\s*[]*.\\\\[{}\\\\w]+)*)?])?\\\\))(?=\\\\()"},"function_declaration":{"begin":"^\\\\b(func)\\\\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+)?)+{0,1}])?)"},{"include":"$self"}]}]},"3":{"patterns":[{"match":"\\\\d\\\\w*","name":"invalid.illegal.identifier.go"},{"match":"\\\\w+","name":"entity.name.function.go"}]}},"end":"(?<=\\\\))\\\\s*((?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?![]*\\\\[]+{0,1}\\\\b(?:struct|interface)\\\\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"}]}},"match":"(?<=\\\\))\\\\s*((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[-\\\\]*.<>\\\\[\\\\w]+\\\\s*(?:/[*/].*)?)$"},{"include":"$self"}]},"function_param_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"}]}},"match":"((?:\\\\b\\\\w+,\\\\s*)+{0,1}\\\\b\\\\w+)\\\\s+(?=(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*\\\\[]+{0,1}\\\\b(?:struct|interface)\\\\b\\\\s*\\\\{)"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.parameter.go"}]}},"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"}]}},"match":"((?:\\\\b\\\\w+,\\\\s*)+{0,1}\\\\b\\\\w+)\\\\s+((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?:[]*.\\\\[\\\\w]+{0,1}(?:\\\\bfunc\\\\b\\\\([^)]+{0,1}\\\\)(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*)+(?:[]*.\\\\[\\\\w]+|\\\\([^)]+{0,1}\\\\))?|(?:[]*\\\\[]+{0,1}[*.\\\\w]+(?:\\\\[[^]]+])?[*.\\\\w]+{0,1})+))"},{"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"}]}},"match":"([.\\\\w]+)"},{"include":"$self"}]},"functions":{"begin":"\\\\b(func)\\\\b(?=\\\\()","beginCaptures":{"1":{"name":"keyword.function.go"}},"end":"(?<=\\\\))(\\\\s*(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+)?(\\\\s*(?:[]*\\\\[]+{0,1}[*.\\\\w]+)?(?:\\\\[(?:[*.\\\\w]+{0,1}(?:\\\\[[^]]+{0,1}])?(?:,\\\\s+)?)+]|\\\\([^)]+{0,1}\\\\))?[*.\\\\w]+{0,1}\\\\s*(?=\\\\{)|\\\\s*(?:[]*\\\\[]+{0,1}(?!\\\\bfunc\\\\b)[*.\\\\w]+(?:\\\\[(?:[*.\\\\w]+{0,1}(?:\\\\[[^]]+{0,1}])?(?:,\\\\s+)?)+])?[*.\\\\w]+{0,1}|\\\\([^)]+{0,1}\\\\)))?","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"}]}},"match":"\\\\b(func)\\\\b(\\\\([^/]*?\\\\)\\\\s+\\\\([^/]*?\\\\))\\\\s+(?=\\\\{)"},"generic_param_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"}]}},"match":"((?:\\\\b\\\\w+,\\\\s*)+{0,1}\\\\b\\\\w+)\\\\s+(?=(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*\\\\[]+{0,1}\\\\b(?:struct|interface)\\\\b\\\\s*\\\\{)"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.parameter.go"}]}},"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"}]}},"match":"((?:\\\\b\\\\w+,\\\\s*)+{0,1}\\\\b\\\\w+)\\\\s+((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?:[]*.\\\\[\\\\w]+{0,1}(?:\\\\bfunc\\\\b\\\\([^)]+{0,1}\\\\)(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*)+(?:[*.\\\\w]+|\\\\([^)]+{0,1}\\\\))?|(?:(?:[*.~\\\\w]+|\\\\[(?:[*.\\\\w]+{0,1}(?:\\\\[[^]]+{0,1}])?(?:,\\\\s+)?)+])[*.\\\\w]+{0,1})+))"},{"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"}]}},"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"}]}},"match":"([*.\\\\w]+)(\\\\[[^]]+{0,1}])"},"group-functions":{"patterns":[{"include":"#function_declaration"},{"include":"#functions_inline"},{"include":"#functions"},{"include":"#built_in_functions"},{"include":"#support_functions"}]},"group-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":{"patterns":[{"include":"#const_assignment"},{"include":"#var_assignment"},{"include":"#variable_assignment"},{"include":"#label_loop_variables"},{"include":"#slice_index_variables"},{"include":"#property_variables"},{"include":"#switch_variables"},{"include":"#other_variables"}]},"hover":{"patterns":[{"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"}]}},"match":"(?<=^\\\\bfield\\\\b)\\\\s+([*.\\\\w]+)\\\\s+([\\\\s\\\\S]+)"},{"captures":{"1":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=^\\\\breturns\\\\b)\\\\s+([\\\\s\\\\S]+)"}]},"import":{"patterns":[{"begin":"\\\\b(import)\\\\s+","beginCaptures":{"1":{"name":"keyword.control.import.go"}},"end":"(?!\\\\G)","patterns":[{"include":"#imports"}]}]},"imports":{"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":"\\\\b(interface)\\\\b\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.interface.go"},"2":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"include":"#interface_variables_types_field"},{"include":"$self"}]},"interface_variables_types_field":{"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"}]}},"match":"([.\\\\w]+)"}]},"keywords":{"patterns":[{"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"}]}},"match":"^(\\\\s*\\\\w+:\\\\s*|\\\\s*\\\\b(?:break|goto|continue)\\\\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"}},"match":"\\\\b(?:(true|false)|(nil)|(iota))\\\\b"},"map_types":{"begin":"\\\\b(map)\\\\b(\\\\[)","beginCaptures":{"1":{"name":"keyword.map.go"},"2":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"(])((?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?![]*\\\\[]+{0,1}\\\\b(?:func|struct|map)\\\\b)[]*\\\\[]+{0,1}[.\\\\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":"\\\\b(type)\\\\b\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.type.go"},"2":{"name":"punctuation.definition.begin.bracket.round.go"}},"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":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"10":{"name":"keyword.other.unit.imaginary.go"},"11":{"name":"constant.numeric.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"53":{"name":"keyword.other.unit.imaginary.go"}},"match":"\\\\G(?:(?:(?:(?:(?:(?=[.0-9])(?!0[BOXbox])([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)((?<=[0-9])\\\\.|\\\\.(?=[0-9]))([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)?(?:(?<!_)([Ee])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*))?(i(?!\\\\w))?(?:\\\\n|$)|(?=[.0-9])(?!0[BOXbox])([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)(?<!_)([Ee])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*)(i(?!\\\\w))?(?:\\\\n|$))|((?<=[0-9])\\\\.|\\\\.(?=[0-9]))([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)(?:(?<!_)([Ee])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*))?(i(?!\\\\w))?(?:\\\\n|$))|(0[Xx])_?(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)((?<=\\\\h)\\\\.|\\\\.(?=\\\\h))(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)?(?<!_)([Pp])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*)(i(?!\\\\w))?(?:\\\\n|$))|(0[Xx])_?(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)(?<!_)([Pp])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*)(i(?!\\\\w))?(?:\\\\n|$))|(0[Xx])((?<=\\\\h)\\\\.|\\\\.(?=\\\\h))(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)(?<!_)([Pp])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*)(i(?!\\\\w))?(?:\\\\n|$))"},{"captures":{"1":{"name":"constant.numeric.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","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":"(?<=\\\\h)_(?=\\\\h)","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[BOXbox])([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)(i(?!\\\\w))?(?:\\\\n|$)|(0[Bb])_?([01](?:[01]|((?<=\\\\h)_(?=\\\\h)))*)(i(?!\\\\w))?(?:\\\\n|$))|(0[Oo]?)_?((?:[0-7]|((?<=\\\\h)_(?=\\\\h)))+)(i(?!\\\\w))?(?:\\\\n|$))|(0[Xx])_?(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)(i(?!\\\\w))?(?:\\\\n|$))"},{"match":"(?:[.0-9A-Z_a-z]|(?<=[EPep])[-+])+","name":"invalid.illegal.constant.numeric.go"}]}]}},"match":"(?<!\\\\w)\\\\.?\\\\d(?:[.0-9A-Z_a-z]|(?<=[EPep])[-+])*"},"operators":{"patterns":[{"match":"(?<!\\\\w)[\\\\&*]+(?!\\\\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":{"patterns":[{"include":"#after_control_variables"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.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":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"\\\\b(?!(?:struct|interface)\\\\b)([.\\\\w]+)(?<brackets>\\\\[(?:[^]\\\\[]|\\\\g<brackets>)*])?(?=\\\\{)"}]},"other_variables":{"match":"\\\\w+","name":"variable.other.go"},"package_name":{"patterns":[{"begin":"\\\\b(package)\\\\s+","beginCaptures":{"1":{"name":"keyword.package.go"}},"end":"(?!\\\\G)","patterns":[{"match":"\\\\d\\\\w*","name":"invalid.illegal.identifier.go"},{"match":"\\\\w+","name":"entity.name.type.package.go"}]}]},"parameter-variable-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"}]}},"match":"\\\\b([.\\\\w]+:(?!=))"},"raw_string_literals":{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.go"}},"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\\\\h{2}|u\\\\h{4}|U\\\\h{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"}]}},"match":"^\\\\s*\\\\b(type)\\\\b\\\\s*([*.\\\\w]+)\\\\s+(?!(?:=\\\\s*)?[]*\\\\[]+{0,1}\\\\b(?:struct|interface)\\\\b)([\\\\s\\\\S]+)"},{"begin":"(?:^|\\\\s+)\\\\b(type)\\\\b\\\\s*([*.\\\\w]+)(?=\\\\[)","beginCaptures":{"1":{"name":"keyword.type.go"},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"end":"(?<=])(\\\\s+(?:=\\\\s*)?(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?![]*\\\\[]+{0,1}\\\\b(?:struct|interface|func)\\\\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"}]}},"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":"#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"},{"match":"\\\\bcomparable\\\\b","name":"entity.name.type.comparable.go"}]},"string_escaped_char":{"patterns":[{"match":"\\\\\\\\([0-7]{3}|[\\"'\\\\\\\\abfnrtv]|x\\\\h{2}|u\\\\h{4}|U\\\\h{8})","name":"constant.character.escape.go"},{"match":"\\\\\\\\[^\\"'0-7Uabfnrtuvx]","name":"invalid.illegal.unknown-escape.go"}]},"string_literals":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.go"}},"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]{0,2}((\\\\d+|\\\\*)?(\\\\.?(\\\\d+|\\\\*|(\\\\[\\\\d+])\\\\*?)?(\\\\[\\\\d+])?)?))?[%EFGTUXb-gopqstvwx]","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"}]}},"match":"^\\\\s*\\\\b(type)\\\\b\\\\s*([.\\\\w]+)"},"struct_variable_types_fields_multi":{"patterns":[{"begin":"\\\\b(\\\\w+(?:,\\\\s*\\\\b\\\\w+)*(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*[]*\\\\[]+{0,1})\\\\b(struct)\\\\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"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"include":"#struct_variables_types_fields"},{"include":"$self"}]},{"begin":"\\\\b(\\\\w+(?:,\\\\s*\\\\b\\\\w+)*(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*[]*\\\\[]+{0,1})\\\\b(interface)\\\\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"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"include":"#interface_variables_types_field"},{"include":"$self"}]},{"begin":"\\\\b(\\\\w+(?:,\\\\s*\\\\b\\\\w+)*(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*[]*\\\\[]+{0,1})\\\\b(func)\\\\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"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"},{"include":"$self"}]},{"include":"#parameter-variable-types"}]},"struct_variables_types":{"begin":"\\\\b(struct)\\\\b\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.struct.go"},"2":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"include":"#struct_variables_types_fields"},{"include":"$self"}]},"struct_variables_types_fields":{"patterns":[{"include":"#struct_variable_types_fields_multi"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=\\\\{)\\\\s*((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*.\\\\[\\\\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"}]}},"match":"(?<=\\\\{)\\\\s*((?:\\\\w+,\\\\s*)+{0,1}\\\\w+\\\\s+)((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*.\\\\[\\\\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*)+{0,1}\\\\w+\\\\s+)?((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[^/\\\\s]+;?)"}]}},"match":"(?<=\\\\{)((?:\\\\s*(?:(?:\\\\w+,\\\\s*)+{0,1}\\\\w+\\\\s+)?(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[^/\\\\s]+;?)+)\\\\s*(?=})"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[*.\\\\w]+\\\\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"}]}},"match":"\\\\b(\\\\w+(?:\\\\s*,\\\\s*\\\\b\\\\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"}]}},"match":"(?:((?<=\\\\.)\\\\b\\\\w+)|\\\\b(\\\\w+))(?<brackets>\\\\[(?:[^]\\\\[]|\\\\g<brackets>)*])?(?=\\\\()"},"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":[{"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*\\\\b(case)\\\\b\\\\s+([!*,.<=>\\\\w\\\\s]+)(:)(\\\\s*/[*/]\\\\s*.*)?$"},{"begin":"\\\\bcase\\\\b","beginCaptures":{"0":{"name":"keyword.control.go"}},"end":":","endCaptures":{"0":{"name":"punctuation.other.colon.go"}},"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},{"include":"$self"}]},"switch_variables":{"patterns":[{"captures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"#type-declarations"},{"include":"#support_functions"},{"include":"#variable_assignment"},{"match":"\\\\w+","name":"variable.other.go"}]}},"match":"^\\\\s*\\\\b(case)\\\\b\\\\s+([\\\\s\\\\S]+:\\\\s*(?:/[*/].*)?)$"},{"begin":"(?<=\\\\bswitch\\\\b)\\\\s*((?:[.\\\\w]+(?:\\\\s*[-!%\\\\&+,/:<=>|]+\\\\s*[.\\\\w]+)*\\\\s*[-!%\\\\&+,/:<=>|]+)?\\\\s*[-\\\\]%\\\\&(-+./<>\\\\[|\\\\w]+{0,1}\\\\s*(?:;\\\\s*[-\\\\]%\\\\&(-+./<>\\\\[|\\\\w]+\\\\s*)?)(\\\\{)","beginCaptures":{"1":{"patterns":[{"include":"#support_functions"},{"include":"#type-declarations"},{"include":"#variable_assignment"},{"match":"\\\\w+","name":"variable.other.go"}]},"2":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"begin":"\\\\bcase\\\\b","beginCaptures":{"0":{"name":"keyword.control.go"}},"end":":","endCaptures":{"0":{"name":"punctuation.other.colon.go"}},"patterns":[{"include":"#support_functions"},{"include":"#type-declarations"},{"include":"#variable_assignment"},{"match":"\\\\w+","name":"variable.other.go"}]},{"include":"$self"}]}]},"syntax_errors":{"patterns":[{"captures":{"1":{"name":"invalid.illegal.slice.go"}},"match":"\\\\[](\\\\s+)"},{"match":"\\\\b0[0-7]*[89]\\\\d*\\\\b","name":"invalid.illegal.numeric.go"}]},"terminators":{"match":";","name":"punctuation.terminator.go"},"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":{"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-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":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=\\\\.\\\\()(?:\\\\b(type)\\\\b|((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*\\\\[]+{0,1}[.\\\\w]+(?:\\\\[(?:[]*.\\\\[{}\\\\w]+(?:,\\\\s*[]*.\\\\[{}\\\\w]+)*)?])?))(?=\\\\))"},"var_assignment":{"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":"(?<=\\\\bvar\\\\b)\\\\s*\\\\b([.\\\\w]+(?:,\\\\s*[.\\\\w]+)*)\\\\s*((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?(?![]*\\\\[]+{0,1}\\\\b(?:struct|func|map)\\\\b)(?:[]*.\\\\[\\\\w]+(?:,\\\\s*[]*.\\\\[\\\\w]+)*)?\\\\s*=?)?"},{"begin":"(?<=\\\\bvar\\\\b)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.round.go"}},"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*((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?(?![]*\\\\[]+{0,1}\\\\b(?:struct|func|map)\\\\b)(?:[]*.\\\\[\\\\w]+(?:,\\\\s*[]*.\\\\[\\\\w]+)*)?\\\\s*=?)?"},{"include":"$self"}]}]},"variable_assignment":{"patterns":[{"captures":{"0":{"patterns":[{"include":"#delimiters"},{"match":"\\\\d\\\\w*","name":"invalid.illegal.identifier.go"},{"match":"\\\\w+","name":"variable.other.assignment.go"}]}},"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"}]}},"match":"\\\\b[*.\\\\w]+(?:,\\\\s*[*.\\\\w]+)*(?=\\\\s*=(?!=))"}]}},"scopeName":"source.go"}`));
|
|
2
|
-
const go = [
|
|
3
|
-
lang
|
|
4
|
-
];
|
|
5
|
-
|
|
6
|
-
export { go as default };
|
|
@@ -1,425 +0,0 @@
|
|
|
1
|
-
import { C as baseFlatten, D as constant, y as isFunction, E as keys, B as isUndefined } from './index3.mjs';
|
|
2
|
-
import { b as baseUniq, f as filter, a as forEach, v as values, r as reduce } from './_baseUniq-BXtq6_NW.mjs';
|
|
3
|
-
import { ar as baseRest, as as isArrayLikeObject, at as isEmpty } from './mermaid.core-CAqkCmS1.mjs';
|
|
4
|
-
|
|
5
|
-
var union = baseRest(function(arrays) {
|
|
6
|
-
return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
|
|
7
|
-
});
|
|
8
|
-
var DEFAULT_EDGE_NAME = "\0";
|
|
9
|
-
var GRAPH_NODE = "\0";
|
|
10
|
-
var EDGE_KEY_DELIM = "";
|
|
11
|
-
class Graph {
|
|
12
|
-
constructor(opts = {}) {
|
|
13
|
-
this._isDirected = Object.prototype.hasOwnProperty.call(opts, "directed") ? opts.directed : true;
|
|
14
|
-
this._isMultigraph = Object.prototype.hasOwnProperty.call(opts, "multigraph") ? opts.multigraph : false;
|
|
15
|
-
this._isCompound = Object.prototype.hasOwnProperty.call(opts, "compound") ? opts.compound : false;
|
|
16
|
-
this._label = void 0;
|
|
17
|
-
this._defaultNodeLabelFn = constant(void 0);
|
|
18
|
-
this._defaultEdgeLabelFn = constant(void 0);
|
|
19
|
-
this._nodes = {};
|
|
20
|
-
if (this._isCompound) {
|
|
21
|
-
this._parent = {};
|
|
22
|
-
this._children = {};
|
|
23
|
-
this._children[GRAPH_NODE] = {};
|
|
24
|
-
}
|
|
25
|
-
this._in = {};
|
|
26
|
-
this._preds = {};
|
|
27
|
-
this._out = {};
|
|
28
|
-
this._sucs = {};
|
|
29
|
-
this._edgeObjs = {};
|
|
30
|
-
this._edgeLabels = {};
|
|
31
|
-
}
|
|
32
|
-
/* === Graph functions ========= */
|
|
33
|
-
isDirected() {
|
|
34
|
-
return this._isDirected;
|
|
35
|
-
}
|
|
36
|
-
isMultigraph() {
|
|
37
|
-
return this._isMultigraph;
|
|
38
|
-
}
|
|
39
|
-
isCompound() {
|
|
40
|
-
return this._isCompound;
|
|
41
|
-
}
|
|
42
|
-
setGraph(label) {
|
|
43
|
-
this._label = label;
|
|
44
|
-
return this;
|
|
45
|
-
}
|
|
46
|
-
graph() {
|
|
47
|
-
return this._label;
|
|
48
|
-
}
|
|
49
|
-
/* === Node functions ========== */
|
|
50
|
-
setDefaultNodeLabel(newDefault) {
|
|
51
|
-
if (!isFunction(newDefault)) {
|
|
52
|
-
newDefault = constant(newDefault);
|
|
53
|
-
}
|
|
54
|
-
this._defaultNodeLabelFn = newDefault;
|
|
55
|
-
return this;
|
|
56
|
-
}
|
|
57
|
-
nodeCount() {
|
|
58
|
-
return this._nodeCount;
|
|
59
|
-
}
|
|
60
|
-
nodes() {
|
|
61
|
-
return keys(this._nodes);
|
|
62
|
-
}
|
|
63
|
-
sources() {
|
|
64
|
-
var self = this;
|
|
65
|
-
return filter(this.nodes(), function(v) {
|
|
66
|
-
return isEmpty(self._in[v]);
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
sinks() {
|
|
70
|
-
var self = this;
|
|
71
|
-
return filter(this.nodes(), function(v) {
|
|
72
|
-
return isEmpty(self._out[v]);
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
setNodes(vs, value) {
|
|
76
|
-
var args = arguments;
|
|
77
|
-
var self = this;
|
|
78
|
-
forEach(vs, function(v) {
|
|
79
|
-
if (args.length > 1) {
|
|
80
|
-
self.setNode(v, value);
|
|
81
|
-
} else {
|
|
82
|
-
self.setNode(v);
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
return this;
|
|
86
|
-
}
|
|
87
|
-
setNode(v, value) {
|
|
88
|
-
if (Object.prototype.hasOwnProperty.call(this._nodes, v)) {
|
|
89
|
-
if (arguments.length > 1) {
|
|
90
|
-
this._nodes[v] = value;
|
|
91
|
-
}
|
|
92
|
-
return this;
|
|
93
|
-
}
|
|
94
|
-
this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
|
|
95
|
-
if (this._isCompound) {
|
|
96
|
-
this._parent[v] = GRAPH_NODE;
|
|
97
|
-
this._children[v] = {};
|
|
98
|
-
this._children[GRAPH_NODE][v] = true;
|
|
99
|
-
}
|
|
100
|
-
this._in[v] = {};
|
|
101
|
-
this._preds[v] = {};
|
|
102
|
-
this._out[v] = {};
|
|
103
|
-
this._sucs[v] = {};
|
|
104
|
-
++this._nodeCount;
|
|
105
|
-
return this;
|
|
106
|
-
}
|
|
107
|
-
node(v) {
|
|
108
|
-
return this._nodes[v];
|
|
109
|
-
}
|
|
110
|
-
hasNode(v) {
|
|
111
|
-
return Object.prototype.hasOwnProperty.call(this._nodes, v);
|
|
112
|
-
}
|
|
113
|
-
removeNode(v) {
|
|
114
|
-
if (Object.prototype.hasOwnProperty.call(this._nodes, v)) {
|
|
115
|
-
var removeEdge = (e) => this.removeEdge(this._edgeObjs[e]);
|
|
116
|
-
delete this._nodes[v];
|
|
117
|
-
if (this._isCompound) {
|
|
118
|
-
this._removeFromParentsChildList(v);
|
|
119
|
-
delete this._parent[v];
|
|
120
|
-
forEach(this.children(v), (child) => {
|
|
121
|
-
this.setParent(child);
|
|
122
|
-
});
|
|
123
|
-
delete this._children[v];
|
|
124
|
-
}
|
|
125
|
-
forEach(keys(this._in[v]), removeEdge);
|
|
126
|
-
delete this._in[v];
|
|
127
|
-
delete this._preds[v];
|
|
128
|
-
forEach(keys(this._out[v]), removeEdge);
|
|
129
|
-
delete this._out[v];
|
|
130
|
-
delete this._sucs[v];
|
|
131
|
-
--this._nodeCount;
|
|
132
|
-
}
|
|
133
|
-
return this;
|
|
134
|
-
}
|
|
135
|
-
setParent(v, parent) {
|
|
136
|
-
if (!this._isCompound) {
|
|
137
|
-
throw new Error("Cannot set parent in a non-compound graph");
|
|
138
|
-
}
|
|
139
|
-
if (isUndefined(parent)) {
|
|
140
|
-
parent = GRAPH_NODE;
|
|
141
|
-
} else {
|
|
142
|
-
parent += "";
|
|
143
|
-
for (var ancestor = parent; !isUndefined(ancestor); ancestor = this.parent(ancestor)) {
|
|
144
|
-
if (ancestor === v) {
|
|
145
|
-
throw new Error("Setting " + parent + " as parent of " + v + " would create a cycle");
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
this.setNode(parent);
|
|
149
|
-
}
|
|
150
|
-
this.setNode(v);
|
|
151
|
-
this._removeFromParentsChildList(v);
|
|
152
|
-
this._parent[v] = parent;
|
|
153
|
-
this._children[parent][v] = true;
|
|
154
|
-
return this;
|
|
155
|
-
}
|
|
156
|
-
_removeFromParentsChildList(v) {
|
|
157
|
-
delete this._children[this._parent[v]][v];
|
|
158
|
-
}
|
|
159
|
-
parent(v) {
|
|
160
|
-
if (this._isCompound) {
|
|
161
|
-
var parent = this._parent[v];
|
|
162
|
-
if (parent !== GRAPH_NODE) {
|
|
163
|
-
return parent;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
children(v) {
|
|
168
|
-
if (isUndefined(v)) {
|
|
169
|
-
v = GRAPH_NODE;
|
|
170
|
-
}
|
|
171
|
-
if (this._isCompound) {
|
|
172
|
-
var children = this._children[v];
|
|
173
|
-
if (children) {
|
|
174
|
-
return keys(children);
|
|
175
|
-
}
|
|
176
|
-
} else if (v === GRAPH_NODE) {
|
|
177
|
-
return this.nodes();
|
|
178
|
-
} else if (this.hasNode(v)) {
|
|
179
|
-
return [];
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
predecessors(v) {
|
|
183
|
-
var predsV = this._preds[v];
|
|
184
|
-
if (predsV) {
|
|
185
|
-
return keys(predsV);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
successors(v) {
|
|
189
|
-
var sucsV = this._sucs[v];
|
|
190
|
-
if (sucsV) {
|
|
191
|
-
return keys(sucsV);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
neighbors(v) {
|
|
195
|
-
var preds = this.predecessors(v);
|
|
196
|
-
if (preds) {
|
|
197
|
-
return union(preds, this.successors(v));
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
isLeaf(v) {
|
|
201
|
-
var neighbors;
|
|
202
|
-
if (this.isDirected()) {
|
|
203
|
-
neighbors = this.successors(v);
|
|
204
|
-
} else {
|
|
205
|
-
neighbors = this.neighbors(v);
|
|
206
|
-
}
|
|
207
|
-
return neighbors.length === 0;
|
|
208
|
-
}
|
|
209
|
-
filterNodes(filter2) {
|
|
210
|
-
var copy = new this.constructor({
|
|
211
|
-
directed: this._isDirected,
|
|
212
|
-
multigraph: this._isMultigraph,
|
|
213
|
-
compound: this._isCompound
|
|
214
|
-
});
|
|
215
|
-
copy.setGraph(this.graph());
|
|
216
|
-
var self = this;
|
|
217
|
-
forEach(this._nodes, function(value, v) {
|
|
218
|
-
if (filter2(v)) {
|
|
219
|
-
copy.setNode(v, value);
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
forEach(this._edgeObjs, function(e) {
|
|
223
|
-
if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
|
|
224
|
-
copy.setEdge(e, self.edge(e));
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
var parents = {};
|
|
228
|
-
function findParent(v) {
|
|
229
|
-
var parent = self.parent(v);
|
|
230
|
-
if (parent === void 0 || copy.hasNode(parent)) {
|
|
231
|
-
parents[v] = parent;
|
|
232
|
-
return parent;
|
|
233
|
-
} else if (parent in parents) {
|
|
234
|
-
return parents[parent];
|
|
235
|
-
} else {
|
|
236
|
-
return findParent(parent);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
if (this._isCompound) {
|
|
240
|
-
forEach(copy.nodes(), function(v) {
|
|
241
|
-
copy.setParent(v, findParent(v));
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
return copy;
|
|
245
|
-
}
|
|
246
|
-
/* === Edge functions ========== */
|
|
247
|
-
setDefaultEdgeLabel(newDefault) {
|
|
248
|
-
if (!isFunction(newDefault)) {
|
|
249
|
-
newDefault = constant(newDefault);
|
|
250
|
-
}
|
|
251
|
-
this._defaultEdgeLabelFn = newDefault;
|
|
252
|
-
return this;
|
|
253
|
-
}
|
|
254
|
-
edgeCount() {
|
|
255
|
-
return this._edgeCount;
|
|
256
|
-
}
|
|
257
|
-
edges() {
|
|
258
|
-
return values(this._edgeObjs);
|
|
259
|
-
}
|
|
260
|
-
setPath(vs, value) {
|
|
261
|
-
var self = this;
|
|
262
|
-
var args = arguments;
|
|
263
|
-
reduce(vs, function(v, w) {
|
|
264
|
-
if (args.length > 1) {
|
|
265
|
-
self.setEdge(v, w, value);
|
|
266
|
-
} else {
|
|
267
|
-
self.setEdge(v, w);
|
|
268
|
-
}
|
|
269
|
-
return w;
|
|
270
|
-
});
|
|
271
|
-
return this;
|
|
272
|
-
}
|
|
273
|
-
/*
|
|
274
|
-
* setEdge(v, w, [value, [name]])
|
|
275
|
-
* setEdge({ v, w, [name] }, [value])
|
|
276
|
-
*/
|
|
277
|
-
setEdge() {
|
|
278
|
-
var v, w, name, value;
|
|
279
|
-
var valueSpecified = false;
|
|
280
|
-
var arg0 = arguments[0];
|
|
281
|
-
if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) {
|
|
282
|
-
v = arg0.v;
|
|
283
|
-
w = arg0.w;
|
|
284
|
-
name = arg0.name;
|
|
285
|
-
if (arguments.length === 2) {
|
|
286
|
-
value = arguments[1];
|
|
287
|
-
valueSpecified = true;
|
|
288
|
-
}
|
|
289
|
-
} else {
|
|
290
|
-
v = arg0;
|
|
291
|
-
w = arguments[1];
|
|
292
|
-
name = arguments[3];
|
|
293
|
-
if (arguments.length > 2) {
|
|
294
|
-
value = arguments[2];
|
|
295
|
-
valueSpecified = true;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
v = "" + v;
|
|
299
|
-
w = "" + w;
|
|
300
|
-
if (!isUndefined(name)) {
|
|
301
|
-
name = "" + name;
|
|
302
|
-
}
|
|
303
|
-
var e = edgeArgsToId(this._isDirected, v, w, name);
|
|
304
|
-
if (Object.prototype.hasOwnProperty.call(this._edgeLabels, e)) {
|
|
305
|
-
if (valueSpecified) {
|
|
306
|
-
this._edgeLabels[e] = value;
|
|
307
|
-
}
|
|
308
|
-
return this;
|
|
309
|
-
}
|
|
310
|
-
if (!isUndefined(name) && !this._isMultigraph) {
|
|
311
|
-
throw new Error("Cannot set a named edge when isMultigraph = false");
|
|
312
|
-
}
|
|
313
|
-
this.setNode(v);
|
|
314
|
-
this.setNode(w);
|
|
315
|
-
this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
|
|
316
|
-
var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
|
|
317
|
-
v = edgeObj.v;
|
|
318
|
-
w = edgeObj.w;
|
|
319
|
-
Object.freeze(edgeObj);
|
|
320
|
-
this._edgeObjs[e] = edgeObj;
|
|
321
|
-
incrementOrInitEntry(this._preds[w], v);
|
|
322
|
-
incrementOrInitEntry(this._sucs[v], w);
|
|
323
|
-
this._in[w][e] = edgeObj;
|
|
324
|
-
this._out[v][e] = edgeObj;
|
|
325
|
-
this._edgeCount++;
|
|
326
|
-
return this;
|
|
327
|
-
}
|
|
328
|
-
edge(v, w, name) {
|
|
329
|
-
var e = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v, w, name);
|
|
330
|
-
return this._edgeLabels[e];
|
|
331
|
-
}
|
|
332
|
-
hasEdge(v, w, name) {
|
|
333
|
-
var e = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v, w, name);
|
|
334
|
-
return Object.prototype.hasOwnProperty.call(this._edgeLabels, e);
|
|
335
|
-
}
|
|
336
|
-
removeEdge(v, w, name) {
|
|
337
|
-
var e = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v, w, name);
|
|
338
|
-
var edge = this._edgeObjs[e];
|
|
339
|
-
if (edge) {
|
|
340
|
-
v = edge.v;
|
|
341
|
-
w = edge.w;
|
|
342
|
-
delete this._edgeLabels[e];
|
|
343
|
-
delete this._edgeObjs[e];
|
|
344
|
-
decrementOrRemoveEntry(this._preds[w], v);
|
|
345
|
-
decrementOrRemoveEntry(this._sucs[v], w);
|
|
346
|
-
delete this._in[w][e];
|
|
347
|
-
delete this._out[v][e];
|
|
348
|
-
this._edgeCount--;
|
|
349
|
-
}
|
|
350
|
-
return this;
|
|
351
|
-
}
|
|
352
|
-
inEdges(v, u) {
|
|
353
|
-
var inV = this._in[v];
|
|
354
|
-
if (inV) {
|
|
355
|
-
var edges = values(inV);
|
|
356
|
-
if (!u) {
|
|
357
|
-
return edges;
|
|
358
|
-
}
|
|
359
|
-
return filter(edges, function(edge) {
|
|
360
|
-
return edge.v === u;
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
outEdges(v, w) {
|
|
365
|
-
var outV = this._out[v];
|
|
366
|
-
if (outV) {
|
|
367
|
-
var edges = values(outV);
|
|
368
|
-
if (!w) {
|
|
369
|
-
return edges;
|
|
370
|
-
}
|
|
371
|
-
return filter(edges, function(edge) {
|
|
372
|
-
return edge.w === w;
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
nodeEdges(v, w) {
|
|
377
|
-
var inEdges = this.inEdges(v, w);
|
|
378
|
-
if (inEdges) {
|
|
379
|
-
return inEdges.concat(this.outEdges(v, w));
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
Graph.prototype._nodeCount = 0;
|
|
384
|
-
Graph.prototype._edgeCount = 0;
|
|
385
|
-
function incrementOrInitEntry(map, k) {
|
|
386
|
-
if (map[k]) {
|
|
387
|
-
map[k]++;
|
|
388
|
-
} else {
|
|
389
|
-
map[k] = 1;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
function decrementOrRemoveEntry(map, k) {
|
|
393
|
-
if (!--map[k]) {
|
|
394
|
-
delete map[k];
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
function edgeArgsToId(isDirected, v_, w_, name) {
|
|
398
|
-
var v = "" + v_;
|
|
399
|
-
var w = "" + w_;
|
|
400
|
-
if (!isDirected && v > w) {
|
|
401
|
-
var tmp = v;
|
|
402
|
-
v = w;
|
|
403
|
-
w = tmp;
|
|
404
|
-
}
|
|
405
|
-
return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM + (isUndefined(name) ? DEFAULT_EDGE_NAME : name);
|
|
406
|
-
}
|
|
407
|
-
function edgeArgsToObj(isDirected, v_, w_, name) {
|
|
408
|
-
var v = "" + v_;
|
|
409
|
-
var w = "" + w_;
|
|
410
|
-
if (!isDirected && v > w) {
|
|
411
|
-
var tmp = v;
|
|
412
|
-
v = w;
|
|
413
|
-
w = tmp;
|
|
414
|
-
}
|
|
415
|
-
var edgeObj = { v, w };
|
|
416
|
-
if (name) {
|
|
417
|
-
edgeObj.name = name;
|
|
418
|
-
}
|
|
419
|
-
return edgeObj;
|
|
420
|
-
}
|
|
421
|
-
function edgeObjToId(isDirected, edgeObj) {
|
|
422
|
-
return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
export { Graph as G };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { j as javascript$1 } from './js-CN_xSsjU.mjs';
|
|
2
|
-
import { t as typescript$1 } from './typescript-CgxwwAuC.mjs';
|
|
3
|
-
import jsx from './jsx-BPmvoin2.mjs';
|
|
4
|
-
import tsx from './tsx-CmGGo4Hm.mjs';
|
|
5
|
-
|
|
6
|
-
const lang = Object.freeze(JSON.parse(`{"displayName":"GraphQL","fileTypes":["graphql","graphqls","gql","graphcool"],"name":"graphql","patterns":[{"include":"#graphql"}],"repository":{"graphql":{"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-fragment-definition"},{"include":"#graphql-directive-definition"},{"include":"#graphql-type-interface"},{"include":"#graphql-enum"},{"include":"#graphql-scalar"},{"include":"#graphql-union"},{"include":"#graphql-schema"},{"include":"#graphql-operation-def"},{"include":"#literal-quasi-embedded"}]},"graphql-ampersand":{"captures":{"1":{"name":"keyword.operator.logical.graphql"}},"match":"\\\\s*(&)"},"graphql-arguments":{"begin":"\\\\s*(\\\\()","beginCaptures":{"1":{"name":"meta.brace.round.directive.graphql"}},"end":"\\\\s*(\\\\))","endCaptures":{"1":{"name":"meta.brace.round.directive.graphql"}},"name":"meta.arguments.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.parameter.graphql"},"2":{"name":"punctuation.colon.graphql"}},"end":"(?=\\\\s*(?:([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)|\\\\)))|\\\\s*(,)","endCaptures":{"3":{"name":"punctuation.comma.graphql"}},"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-value"},{"include":"#graphql-skip-newlines"}]},{"include":"#literal-quasi-embedded"}]},"graphql-boolean-value":{"captures":{"1":{"name":"constant.language.boolean.graphql"}},"match":"\\\\s*\\\\b(true|false)\\\\b"},"graphql-colon":{"captures":{"1":{"name":"punctuation.colon.graphql"}},"match":"\\\\s*(:)"},"graphql-comma":{"captures":{"1":{"name":"punctuation.comma.graphql"}},"match":"\\\\s*(,)"},"graphql-comment":{"patterns":[{"captures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"match":"(\\\\s*)(#).*","name":"comment.line.graphql.js"},{"begin":"(\\"\\"\\")","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"end":"(\\"\\"\\")","name":"comment.line.graphql.js"},{"begin":"(\\")","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"end":"(\\")","name":"comment.line.graphql.js"}]},"graphql-description-docstring":{"begin":"\\"\\"\\"","end":"\\"\\"\\"","name":"comment.block.graphql"},"graphql-description-singleline":{"match":"#(?=([^\\"]*\\"[^\\"]*\\")*[^\\"]*$).*$","name":"comment.line.number-sign.graphql"},"graphql-directive":{"applyEndPatternLast":1,"begin":"\\\\s*((@)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*))","beginCaptures":{"1":{"name":"entity.name.function.directive.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-arguments"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-directive-definition":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(directive)\\\\b\\\\s*(@[A-Z_a-z][0-9A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.directive.graphql"},"2":{"name":"entity.name.function.directive.graphql"},"3":{"name":"keyword.on.graphql"},"4":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-variable-definitions"},{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(on)\\\\b\\\\s*([A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.on.graphql"},"2":{"name":"support.type.location.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-skip-newlines"},{"include":"#graphql-comment"},{"include":"#literal-quasi-embedded"},{"captures":{"2":{"name":"support.type.location.graphql"}},"match":"\\\\s*(\\\\|)\\\\s*([A-Z_a-z]*)"}]},{"include":"#graphql-skip-newlines"},{"include":"#graphql-comment"},{"include":"#literal-quasi-embedded"}]},"graphql-enum":{"begin":"\\\\s*+\\\\b(enum)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.enum.graphql"},"2":{"name":"support.type.enum.graphql"}},"end":"(?<=})","name":"meta.enum.graphql","patterns":[{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.type.object.graphql","patterns":[{"include":"#graphql-object-type"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-enum-value"},{"include":"#literal-quasi-embedded"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"}]},"graphql-enum-value":{"match":"\\\\s*(?!=\\\\b(true|false|null)\\\\b)([A-Z_a-z][0-9A-Z_a-z]*)","name":"constant.character.enum.graphql"},"graphql-field":{"patterns":[{"captures":{"1":{"name":"string.unquoted.alias.graphql"},"2":{"name":"punctuation.colon.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)"},{"captures":{"1":{"name":"variable.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-arguments"},{"include":"#graphql-directive"},{"include":"#graphql-selection-set"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-float-value":{"captures":{"1":{"name":"constant.numeric.float.graphql"}},"match":"\\\\s*(-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?(([Ee])([-+])?[0-9]+)?)"},"graphql-fragment-definition":{"begin":"\\\\s*\\\\b(fragment)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)?\\\\s*\\\\b(on)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.fragment.graphql"},"2":{"name":"entity.name.fragment.graphql"},"3":{"name":"keyword.on.graphql"},"4":{"name":"support.type.graphql"}},"end":"(?<=})","name":"meta.fragment.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-fragment-spread":{"applyEndPatternLast":1,"begin":"\\\\s*(\\\\.\\\\.\\\\.)\\\\s*(?!\\\\bon\\\\b)([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.operator.spread.graphql"},"2":{"name":"variable.fragment.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-ignore-spaces":{"match":"\\\\s*"},"graphql-inline-fragment":{"applyEndPatternLast":1,"begin":"\\\\s*(\\\\.\\\\.\\\\.)\\\\s*(?:\\\\b(on)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*))?","captures":{"1":{"name":"keyword.operator.spread.graphql"},"2":{"name":"keyword.on.graphql"},"3":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-input-types":{"patterns":[{"include":"#graphql-scalar-type"},{"captures":{"1":{"name":"support.type.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?:\\\\s*(!))?"},{"begin":"\\\\s*(\\\\[)","captures":{"1":{"name":"meta.brace.square.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"end":"\\\\s*(])(?:\\\\s*(!))?","name":"meta.type.list.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-input-types"},{"include":"#graphql-comma"},{"include":"#literal-quasi-embedded"}]}]},"graphql-list-value":{"patterns":[{"begin":"\\\\s*+(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.graphql"}},"end":"\\\\s*(])","endCaptures":{"1":{"name":"meta.brace.square.graphql"}},"name":"meta.listvalues.graphql","patterns":[{"include":"#graphql-value"}]}]},"graphql-name":{"captures":{"1":{"name":"entity.name.function.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},"graphql-null-value":{"captures":{"1":{"name":"constant.language.null.graphql"}},"match":"\\\\s*\\\\b(null)\\\\b"},"graphql-object-field":{"captures":{"1":{"name":"constant.object.key.graphql"},"2":{"name":"string.unquoted.graphql"},"3":{"name":"punctuation.graphql"}},"match":"\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*))\\\\s*(:)"},"graphql-object-value":{"patterns":[{"begin":"\\\\s*+(\\\\{)","beginCaptures":{"1":{"name":"meta.brace.curly.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"meta.brace.curly.graphql"}},"name":"meta.objectvalues.graphql","patterns":[{"include":"#graphql-object-field"},{"include":"#graphql-value"}]}]},"graphql-operation-def":{"patterns":[{"include":"#graphql-query-mutation"},{"include":"#graphql-name"},{"include":"#graphql-variable-definitions"},{"include":"#graphql-directive"},{"include":"#graphql-selection-set"}]},"graphql-query-mutation":{"captures":{"1":{"name":"keyword.operation.graphql"}},"match":"\\\\s*\\\\b(query|mutation)\\\\b"},"graphql-scalar":{"captures":{"1":{"name":"keyword.scalar.graphql"},"2":{"name":"entity.scalar.graphql"}},"match":"\\\\s*\\\\b(scalar)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},"graphql-scalar-type":{"captures":{"1":{"name":"support.type.builtin.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"match":"\\\\s*\\\\b(Int|Float|String|Boolean|ID)\\\\b(?:\\\\s*(!))?"},"graphql-schema":{"begin":"\\\\s*\\\\b(schema)\\\\b","beginCaptures":{"1":{"name":"keyword.schema.graphql"}},"end":"(?<=})","patterns":[{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"patterns":[{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.arguments.graphql"}},"end":"(?=\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|(})))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"patterns":[{"captures":{"1":{"name":"support.type.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-colon"},{"include":"#graphql-skip-newlines"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"}]},"graphql-selection-set":{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.selectionset.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-field"},{"include":"#graphql-fragment-spread"},{"include":"#graphql-inline-fragment"},{"include":"#graphql-comma"},{"include":"#native-interpolation"},{"include":"#literal-quasi-embedded"}]},"graphql-skip-newlines":{"match":"\\\\s*\\\\n"},"graphql-string-content":{"patterns":[{"match":"\\\\\\\\[\\"'/\\\\\\\\bfnrt]","name":"constant.character.escape.graphql"},{"match":"\\\\\\\\u(\\\\h{4})","name":"constant.character.escape.graphql"}]},"graphql-string-value":{"begin":"\\\\s*+((\\"))","beginCaptures":{"1":{"name":"string.quoted.double.graphql"},"2":{"name":"punctuation.definition.string.begin.graphql"}},"contentName":"string.quoted.double.graphql","end":"\\\\s*+(?:((\\"))|(\\\\n))","endCaptures":{"1":{"name":"string.quoted.double.graphql"},"2":{"name":"punctuation.definition.string.end.graphql"},"3":{"name":"invalid.illegal.newline.graphql"}},"patterns":[{"include":"#graphql-string-content"},{"include":"#literal-quasi-embedded"}]},"graphql-type-definition":{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.graphql"}},"end":"(?=\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|(})))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-variable-definitions"},{"include":"#graphql-type-object"},{"include":"#graphql-colon"},{"include":"#graphql-input-types"},{"include":"#literal-quasi-embedded"}]},"graphql-type-interface":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(?:(extends?)?\\\\b\\\\s*\\\\b(type)|(interface)|(input))\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)?","captures":{"1":{"name":"keyword.type.graphql"},"2":{"name":"keyword.type.graphql"},"3":{"name":"keyword.interface.graphql"},"4":{"name":"keyword.input.graphql"},"5":{"name":"support.type.graphql"}},"end":"(?=.)","name":"meta.type.interface.graphql","patterns":[{"begin":"\\\\s*\\\\b(implements)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.implements.graphql"}},"end":"\\\\s*(?=\\\\{)","patterns":[{"captures":{"1":{"name":"support.type.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-ampersand"},{"include":"#graphql-comma"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-type-object"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-ignore-spaces"}]},"graphql-type-object":{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.type.object.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-object-type"},{"include":"#graphql-type-definition"},{"include":"#literal-quasi-embedded"}]},"graphql-union":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(union)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.union.graphql"},"2":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"applyEndPatternLast":1,"begin":"\\\\s*(=)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"punctuation.assignment.graphql"},"2":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"},{"captures":{"1":{"name":"punctuation.or.graphql"},"2":{"name":"support.type.graphql"}},"match":"\\\\s*(\\\\|)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-union-mark":{"captures":{"1":{"name":"punctuation.union.graphql"}},"match":"\\\\s*(\\\\|)"},"graphql-value":{"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-variable-name"},{"include":"#graphql-float-value"},{"include":"#graphql-string-value"},{"include":"#graphql-boolean-value"},{"include":"#graphql-null-value"},{"include":"#graphql-enum-value"},{"include":"#graphql-list-value"},{"include":"#graphql-object-value"},{"include":"#literal-quasi-embedded"}]},"graphql-variable-assignment":{"applyEndPatternLast":1,"begin":"\\\\s(=)","beginCaptures":{"1":{"name":"punctuation.assignment.graphql"}},"end":"(?=[\\\\n),])","patterns":[{"include":"#graphql-value"}]},"graphql-variable-definition":{"begin":"\\\\s*(\\\\$?[A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.parameter.graphql"}},"end":"(?=\\\\s*((\\\\$?[A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|([)}])))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"name":"meta.variables.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-colon"},{"include":"#graphql-input-types"},{"include":"#graphql-variable-assignment"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-variable-definitions":{"begin":"\\\\s*(\\\\()","captures":{"1":{"name":"meta.brace.round.graphql"}},"end":"\\\\s*(\\\\))","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-variable-definition"},{"include":"#literal-quasi-embedded"}]},"graphql-variable-name":{"captures":{"1":{"name":"variable.graphql"}},"match":"\\\\s*(\\\\$[A-Z_a-z][0-9A-Z_a-z]*)"},"native-interpolation":{"begin":"\\\\s*(\\\\$\\\\{)","beginCaptures":{"1":{"name":"keyword.other.substitution.begin"}},"end":"(})","endCaptures":{"1":{"name":"keyword.other.substitution.end"}},"name":"native.interpolation","patterns":[{"include":"source.js"},{"include":"source.ts"},{"include":"source.js.jsx"},{"include":"source.tsx"}]}},"scopeName":"source.graphql","embeddedLangs":["javascript","typescript","jsx","tsx"],"aliases":["gql"]}`));
|
|
7
|
-
const graphql = [
|
|
8
|
-
...javascript$1,
|
|
9
|
-
...typescript$1,
|
|
10
|
-
...jsx,
|
|
11
|
-
...tsx,
|
|
12
|
-
lang
|
|
13
|
-
];
|
|
14
|
-
|
|
15
|
-
export { graphql as default };
|