123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- import {
- editor_api_exports
- } from "./chunk-5Q5BEFT4.js";
- import "./chunk-FBUDSZGC.js";
- import "./chunk-2LSFTFF7.js";
- // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/yaml/yaml.js
- var __defProp = Object.defineProperty;
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
- var __getOwnPropNames = Object.getOwnPropertyNames;
- var __hasOwnProp = Object.prototype.hasOwnProperty;
- var __copyProps = (to, from, except, desc) => {
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))
- if (!__hasOwnProp.call(to, key) && key !== except)
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
- }
- return to;
- };
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
- var monaco_editor_core_exports = {};
- __reExport(monaco_editor_core_exports, editor_api_exports);
- var conf = {
- comments: {
- lineComment: "#"
- },
- brackets: [
- ["{", "}"],
- ["[", "]"],
- ["(", ")"]
- ],
- autoClosingPairs: [
- { open: "{", close: "}" },
- { open: "[", close: "]" },
- { open: "(", close: ")" },
- { open: '"', close: '"' },
- { open: "'", close: "'" }
- ],
- surroundingPairs: [
- { open: "{", close: "}" },
- { open: "[", close: "]" },
- { open: "(", close: ")" },
- { open: '"', close: '"' },
- { open: "'", close: "'" }
- ],
- folding: {
- offSide: true
- },
- onEnterRules: [
- {
- beforeText: /:\s*$/,
- action: {
- indentAction: monaco_editor_core_exports.languages.IndentAction.Indent
- }
- }
- ]
- };
- var language = {
- tokenPostfix: ".yaml",
- brackets: [
- { token: "delimiter.bracket", open: "{", close: "}" },
- { token: "delimiter.square", open: "[", close: "]" }
- ],
- keywords: ["true", "True", "TRUE", "false", "False", "FALSE", "null", "Null", "Null", "~"],
- numberInteger: /(?:0|[+-]?[0-9]+)/,
- numberFloat: /(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,
- numberOctal: /0o[0-7]+/,
- numberHex: /0x[0-9a-fA-F]+/,
- numberInfinity: /[+-]?\.(?:inf|Inf|INF)/,
- numberNaN: /\.(?:nan|Nan|NAN)/,
- numberDate: /\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,
- escapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
- tokenizer: {
- root: [
- { include: "@whitespace" },
- { include: "@comment" },
- [/%[^ ]+.*$/, "meta.directive"],
- [/---/, "operators.directivesEnd"],
- [/\.{3}/, "operators.documentEnd"],
- [/[-?:](?= )/, "operators"],
- { include: "@anchor" },
- { include: "@tagHandle" },
- { include: "@flowCollections" },
- { include: "@blockStyle" },
- [/@numberInteger(?![ \t]*\S+)/, "number"],
- [/@numberFloat(?![ \t]*\S+)/, "number.float"],
- [/@numberOctal(?![ \t]*\S+)/, "number.octal"],
- [/@numberHex(?![ \t]*\S+)/, "number.hex"],
- [/@numberInfinity(?![ \t]*\S+)/, "number.infinity"],
- [/@numberNaN(?![ \t]*\S+)/, "number.nan"],
- [/@numberDate(?![ \t]*\S+)/, "number.date"],
- [/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/, ["type", "white", "operators", "white"]],
- { include: "@flowScalars" },
- [
- /.+?(?=(\s+#|$))/,
- {
- cases: {
- "@keywords": "keyword",
- "@default": "string"
- }
- }
- ]
- ],
- object: [
- { include: "@whitespace" },
- { include: "@comment" },
- [/\}/, "@brackets", "@pop"],
- [/,/, "delimiter.comma"],
- [/:(?= )/, "operators"],
- [/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/, "type"],
- { include: "@flowCollections" },
- { include: "@flowScalars" },
- { include: "@tagHandle" },
- { include: "@anchor" },
- { include: "@flowNumber" },
- [
- /[^\},]+/,
- {
- cases: {
- "@keywords": "keyword",
- "@default": "string"
- }
- }
- ]
- ],
- array: [
- { include: "@whitespace" },
- { include: "@comment" },
- [/\]/, "@brackets", "@pop"],
- [/,/, "delimiter.comma"],
- { include: "@flowCollections" },
- { include: "@flowScalars" },
- { include: "@tagHandle" },
- { include: "@anchor" },
- { include: "@flowNumber" },
- [
- /[^\],]+/,
- {
- cases: {
- "@keywords": "keyword",
- "@default": "string"
- }
- }
- ]
- ],
- multiString: [[/^( +).+$/, "string", "@multiStringContinued.$1"]],
- multiStringContinued: [
- [
- /^( *).+$/,
- {
- cases: {
- "$1==$S2": "string",
- "@default": { token: "@rematch", next: "@popall" }
- }
- }
- ]
- ],
- whitespace: [[/[ \t\r\n]+/, "white"]],
- comment: [[/#.*$/, "comment"]],
- flowCollections: [
- [/\[/, "@brackets", "@array"],
- [/\{/, "@brackets", "@object"]
- ],
- flowScalars: [
- [/"([^"\\]|\\.)*$/, "string.invalid"],
- [/'([^'\\]|\\.)*$/, "string.invalid"],
- [/'[^']*'/, "string"],
- [/"/, "string", "@doubleQuotedString"]
- ],
- doubleQuotedString: [
- [/[^\\"]+/, "string"],
- [/@escapes/, "string.escape"],
- [/\\./, "string.escape.invalid"],
- [/"/, "string", "@pop"]
- ],
- blockStyle: [[/[>|][0-9]*[+-]?$/, "operators", "@multiString"]],
- flowNumber: [
- [/@numberInteger(?=[ \t]*[,\]\}])/, "number"],
- [/@numberFloat(?=[ \t]*[,\]\}])/, "number.float"],
- [/@numberOctal(?=[ \t]*[,\]\}])/, "number.octal"],
- [/@numberHex(?=[ \t]*[,\]\}])/, "number.hex"],
- [/@numberInfinity(?=[ \t]*[,\]\}])/, "number.infinity"],
- [/@numberNaN(?=[ \t]*[,\]\}])/, "number.nan"],
- [/@numberDate(?=[ \t]*[,\]\}])/, "number.date"]
- ],
- tagHandle: [[/\![^ ]*/, "tag"]],
- anchor: [[/[&*][^ ]+/, "namespace"]]
- }
- };
- export {
- conf,
- language
- };
- /*! Bundled license information:
- monaco-editor/esm/vs/basic-languages/yaml/yaml.js:
- (*!-----------------------------------------------------------------------------
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
- * Released under the MIT license
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
- *-----------------------------------------------------------------------------*)
- */
- //# sourceMappingURL=yaml-ZYLFYXX2.js.map
|