@scalar/code-highlight 0.4.14 → 0.4.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @scalar/code-highlight
2
2
 
3
+ ## 0.4.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [#11099](https://github.com/scalar/scalar/pull/11099): Update compatible runtime and styling dependencies, align editor dependency versions, and preserve document-change comparisons with updated microdiff semantics.
8
+
9
+ ## 0.4.15
10
+
11
+ ### Patch Changes
12
+
13
+ - [#11004](https://github.com/scalar/scalar/pull/11004): Preserve package output paths and application aliases when building with TypeScript 6.
14
+
3
15
  ## 0.4.14
4
16
 
5
17
  ### Patch Changes
@@ -1,7 +1,7 @@
1
- import { a as lowlightLanguageMappings, t as rehypeHighlight } from "./rehype-highlight.js";
2
1
  import { c as rehypeParse, n as unified, r as rehypeStringify, t as getSharedLowlight } from "./shared-lowlight.js";
3
2
  import { t as visit } from "./lib.js";
4
- //#region src/code/line-numbers.ts
3
+ import { r as lowlightLanguageMappings, t as rehypeHighlight } from "./rehype-highlight.js";
4
+ // src/code/line-numbers.ts
5
5
  function isText(element) {
6
6
  return element?.type === "text";
7
7
  }
@@ -89,8 +89,7 @@ function createLine(...children) {
89
89
  function hasLineBreak(node) {
90
90
  return isText(node) && /\r?\n/.test(node.value) || isElement(node) && node.children.some(hasLineBreak);
91
91
  }
92
- //#endregion
93
- //#region src/code/highlight.ts
92
+ // src/code/highlight.ts
94
93
  /**
95
94
  * Syntax highlights a code string using the `rehype-highlight` library.
96
95
  */
@@ -118,7 +117,6 @@ function injectRawCodeStringPlugin(rawCodeString) {
118
117
  });
119
118
  };
120
119
  }
121
- //#endregion
122
120
  export { syntaxHighlight as t };
123
121
 
124
122
  //# sourceMappingURL=code.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"code.js","names":[],"sources":["../../src/code/line-numbers.ts","../../src/code/highlight.ts"],"sourcesContent":["import type { Element, ElementContent, Root, Text } from 'hast'\nimport { visit } from 'unist-util-visit'\n\n// ---------------------------------------------------------------------------\n// Line Numbering plugin\n\nfunction isText(element?: ElementContent): element is Text {\n return element?.type === 'text'\n}\n\nfunction isElement(node?: ElementContent): node is Element {\n return node?.type === 'element'\n}\n\nfunction textElement(value: string): Text {\n return { type: 'text', value }\n}\n\nfunction lineBreak(): Text {\n return { type: 'text', value: '\\n' }\n}\n\n/**\n * Adds lines to code blocks\n */\nexport function codeBlockLinesPlugin() {\n return (tree: Root) => {\n visit(tree, 'element', (node: Element, _i, parent: Root | Element | null) => {\n if (parent?.type === 'element' && parent.tagName === 'pre' && node.tagName === 'code') {\n let numLines = 0\n\n // Wraps each line in a span\n node.children = addLines(node)\n\n // Adds a line break to the end of each line\n node.children.forEach((child: ElementContent) => {\n if (child.type === 'element' && child.tagName === 'span') {\n const lastChild: ElementContent | undefined = child.children[child.children.length - 1]\n\n if (lastChild && (!isText(lastChild) || (isText(lastChild) && !hasLineBreak(lastChild)))) {\n child.children.push(lineBreak())\n numLines++\n }\n }\n })\n\n // We need to maintain a count of the total lines to allow space for the labels\n node.properties.style = `--line-count: ${numLines}; --line-digits: ${numLines.toString().length};`\n }\n })\n\n // console.log('NUMBER OF LINES IS: ', numLines)\n }\n}\n\n/**\n * Adds lines to a node recursively and returns them\n *\n * @param node - The node to add lines to\n * @param lines - The current lines\n * @param copyParent - Whether to copy the parent node to save the original node styles\n */\nfunction addLines(node: Element, lines: Element[] = [], copyParent?: boolean): Element[] {\n const line = () => lines[lines.length - 1] ?? ((lines.push(createLine()) && lines[lines.length - 1]) || undefined)\n\n node.children.forEach((child: ElementContent) => {\n if (isText(child) && hasLineBreak(child)) {\n const split: string[] = child.value.split(/\\n/)\n\n split.forEach((content: string, i: number) => {\n if (copyParent) {\n line()?.children.push({ ...node, children: [textElement(content)] })\n } else {\n line()?.children.push(textElement(content))\n }\n\n i !== split.length - 1 && lines.push(createLine())\n })\n } else if (isElement(child) && child.children.some(hasLineBreak)) {\n addLines(child, lines, true)\n } else {\n line()?.children.push(child)\n }\n })\n\n return lines\n}\n\n/**\n * Creates a new line element\n *\n * @param children - The children the line should have initially\n */\nfunction createLine(...children: ElementContent[]): Element {\n return {\n type: 'element',\n tagName: 'span',\n properties: { class: ['line'] },\n children,\n }\n}\n\n/**\n * Checks if a node has a line break\n *\n * @param node - The node to check\n */\nfunction hasLineBreak(node: ElementContent): boolean {\n return (isText(node) && /\\r?\\n/.test(node.value)) || (isElement(node) && node.children.some(hasLineBreak))\n}\n","import type { Element, Root } from 'hast'\nimport type { LanguageFn } from 'highlight.js'\nimport rehypeParse from 'rehype-parse'\nimport rehypeStringify from 'rehype-stringify'\nimport { type Plugin, unified } from 'unified'\nimport { visit } from 'unist-util-visit'\n\nimport { lowlightLanguageMappings } from '@/constants'\nimport { rehypeHighlight } from '@/rehype-highlight'\nimport { getSharedLowlight } from '@/rehype-highlight/shared-lowlight'\n\nimport { codeBlockLinesPlugin } from './line-numbers'\n\n/**\n * Syntax highlights a code string using the `rehype-highlight` library.\n */\nexport function syntaxHighlight(\n codeString: string,\n options: {\n lang: string\n languages: Record<string, LanguageFn>\n lineNumbers?: boolean\n maskCredentials?: string | string[]\n },\n) {\n // Simple restriction on credentials to prevent unexpected behavior\n const credentials = (\n typeof options?.maskCredentials === 'string' ? [options.maskCredentials] : (options?.maskCredentials ?? [])\n ).filter((c) => {\n // Credentials must be at least 3 characters to mask.\n if (c.length < 3) {\n return false\n }\n\n return true\n })\n\n // Classname is used by lowlight to select the language model\n const className = `language-${lowlightLanguageMappings[options.lang] ?? options.lang}`\n\n // biome-ignore lint/suspicious/noEmptyBlockStatements: empty plugin\n const nullPlugin = (() => {}) satisfies Plugin\n\n const html = unified()\n // Parses markdown\n .use(rehypeParse, { fragment: true })\n // Raw code string must be injected after initial hast parsing\n // so that HTML code is not parsed into the hast tree\n .use(injectRawCodeStringPlugin(codeString))\n // Syntax highlighting\n .use(rehypeHighlight, {\n lowlight: options.languages ? getSharedLowlight(options.languages) : undefined,\n })\n .use(options?.lineNumbers ? codeBlockLinesPlugin : nullPlugin)\n // Converts the HTML AST to a string\n .use(rehypeStringify)\n // Run the pipeline\n .processSync(`<pre><code class=\"${className}\"></code></pre>`)\n\n const htmlString = html.toString()\n\n // Replace any credentials with a wrapper element\n return credentials.length\n ? credentials.reduce(\n (acc, credential) =>\n acc\n .split(credential)\n .join(`<span class=\"credential\"><span class=\"credential-value\">${credential}</span></span>`),\n htmlString,\n )\n : htmlString\n}\n\n/**\n * To prevent unified from parsing any content of the code string we inject\n * it as a raw text node into the AST tree as a child of the code element\n */\nfunction injectRawCodeStringPlugin(rawCodeString: string) {\n return () => (tree: Root) => {\n visit(tree, 'element', (node: Element) => {\n if (node.tagName === 'code') {\n node.children.push({\n type: 'text',\n value: rawCodeString,\n })\n }\n })\n }\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"code.js","names":[],"sources":["../../src/code/line-numbers.ts","../../src/code/highlight.ts"],"sourcesContent":["import type { Element, ElementContent, Root, Text } from 'hast'\nimport { visit } from 'unist-util-visit'\n\n// ---------------------------------------------------------------------------\n// Line Numbering plugin\n\nfunction isText(element?: ElementContent): element is Text {\n return element?.type === 'text'\n}\n\nfunction isElement(node?: ElementContent): node is Element {\n return node?.type === 'element'\n}\n\nfunction textElement(value: string): Text {\n return { type: 'text', value }\n}\n\nfunction lineBreak(): Text {\n return { type: 'text', value: '\\n' }\n}\n\n/**\n * Adds lines to code blocks\n */\nexport function codeBlockLinesPlugin() {\n return (tree: Root) => {\n visit(tree, 'element', (node: Element, _i, parent: Root | Element | null) => {\n if (parent?.type === 'element' && parent.tagName === 'pre' && node.tagName === 'code') {\n let numLines = 0\n\n // Wraps each line in a span\n node.children = addLines(node)\n\n // Adds a line break to the end of each line\n node.children.forEach((child: ElementContent) => {\n if (child.type === 'element' && child.tagName === 'span') {\n const lastChild: ElementContent | undefined = child.children[child.children.length - 1]\n\n if (lastChild && (!isText(lastChild) || (isText(lastChild) && !hasLineBreak(lastChild)))) {\n child.children.push(lineBreak())\n numLines++\n }\n }\n })\n\n // We need to maintain a count of the total lines to allow space for the labels\n node.properties.style = `--line-count: ${numLines}; --line-digits: ${numLines.toString().length};`\n }\n })\n\n // console.log('NUMBER OF LINES IS: ', numLines)\n }\n}\n\n/**\n * Adds lines to a node recursively and returns them\n *\n * @param node - The node to add lines to\n * @param lines - The current lines\n * @param copyParent - Whether to copy the parent node to save the original node styles\n */\nfunction addLines(node: Element, lines: Element[] = [], copyParent?: boolean): Element[] {\n const line = () => lines[lines.length - 1] ?? ((lines.push(createLine()) && lines[lines.length - 1]) || undefined)\n\n node.children.forEach((child: ElementContent) => {\n if (isText(child) && hasLineBreak(child)) {\n const split: string[] = child.value.split(/\\n/)\n\n split.forEach((content: string, i: number) => {\n if (copyParent) {\n line()?.children.push({ ...node, children: [textElement(content)] })\n } else {\n line()?.children.push(textElement(content))\n }\n\n i !== split.length - 1 && lines.push(createLine())\n })\n } else if (isElement(child) && child.children.some(hasLineBreak)) {\n addLines(child, lines, true)\n } else {\n line()?.children.push(child)\n }\n })\n\n return lines\n}\n\n/**\n * Creates a new line element\n *\n * @param children - The children the line should have initially\n */\nfunction createLine(...children: ElementContent[]): Element {\n return {\n type: 'element',\n tagName: 'span',\n properties: { class: ['line'] },\n children,\n }\n}\n\n/**\n * Checks if a node has a line break\n *\n * @param node - The node to check\n */\nfunction hasLineBreak(node: ElementContent): boolean {\n return (isText(node) && /\\r?\\n/.test(node.value)) || (isElement(node) && node.children.some(hasLineBreak))\n}\n","import type { Element, Root } from 'hast'\nimport type { LanguageFn } from 'highlight.js'\nimport rehypeParse from 'rehype-parse'\nimport rehypeStringify from 'rehype-stringify'\nimport { type Plugin, unified } from 'unified'\nimport { visit } from 'unist-util-visit'\n\nimport { lowlightLanguageMappings } from '@/constants'\nimport { rehypeHighlight } from '@/rehype-highlight'\nimport { getSharedLowlight } from '@/rehype-highlight/shared-lowlight'\n\nimport { codeBlockLinesPlugin } from './line-numbers'\n\n/**\n * Syntax highlights a code string using the `rehype-highlight` library.\n */\nexport function syntaxHighlight(\n codeString: string,\n options: {\n lang: string\n languages: Record<string, LanguageFn>\n lineNumbers?: boolean\n maskCredentials?: string | string[]\n },\n) {\n // Simple restriction on credentials to prevent unexpected behavior\n const credentials = (\n typeof options?.maskCredentials === 'string' ? [options.maskCredentials] : (options?.maskCredentials ?? [])\n ).filter((c) => {\n // Credentials must be at least 3 characters to mask.\n if (c.length < 3) {\n return false\n }\n\n return true\n })\n\n // Classname is used by lowlight to select the language model\n const className = `language-${lowlightLanguageMappings[options.lang] ?? options.lang}`\n\n // biome-ignore lint/suspicious/noEmptyBlockStatements: empty plugin\n const nullPlugin = (() => {}) satisfies Plugin\n\n const html = unified()\n // Parses markdown\n .use(rehypeParse, { fragment: true })\n // Raw code string must be injected after initial hast parsing\n // so that HTML code is not parsed into the hast tree\n .use(injectRawCodeStringPlugin(codeString))\n // Syntax highlighting\n .use(rehypeHighlight, {\n lowlight: options.languages ? getSharedLowlight(options.languages) : undefined,\n })\n .use(options?.lineNumbers ? codeBlockLinesPlugin : nullPlugin)\n // Converts the HTML AST to a string\n .use(rehypeStringify)\n // Run the pipeline\n .processSync(`<pre><code class=\"${className}\"></code></pre>`)\n\n const htmlString = html.toString()\n\n // Replace any credentials with a wrapper element\n return credentials.length\n ? credentials.reduce(\n (acc, credential) =>\n acc\n .split(credential)\n .join(`<span class=\"credential\"><span class=\"credential-value\">${credential}</span></span>`),\n htmlString,\n )\n : htmlString\n}\n\n/**\n * To prevent unified from parsing any content of the code string we inject\n * it as a raw text node into the AST tree as a child of the code element\n */\nfunction injectRawCodeStringPlugin(rawCodeString: string) {\n return () => (tree: Root) => {\n visit(tree, 'element', (node: Element) => {\n if (node.tagName === 'code') {\n node.children.push({\n type: 'text',\n value: rawCodeString,\n })\n }\n })\n }\n}\n"],"mappings":";;;;AAMA,SAAS,OAAO,SAA2C;CACzD,OAAO,SAAS,SAAS;AAC3B;AAEA,SAAS,UAAU,MAAwC;CACzD,OAAO,MAAM,SAAS;AACxB;AAEA,SAAS,YAAY,OAAqB;CACxC,OAAO;EAAE,MAAM;EAAQ;CAAM;AAC/B;AAEA,SAAS,YAAkB;CACzB,OAAO;EAAE,MAAM;EAAQ,OAAO;CAAK;AACrC;;;;AAKA,SAAgB,uBAAuB;CACrC,QAAQ,SAAe;EACrB,MAAM,MAAM,YAAY,MAAe,IAAI,WAAkC;GAC3E,IAAI,QAAQ,SAAS,aAAa,OAAO,YAAY,SAAS,KAAK,YAAY,QAAQ;IACrF,IAAI,WAAW;IAGf,KAAK,WAAW,SAAS,IAAI;IAG7B,KAAK,SAAS,SAAS,UAA0B;KAC/C,IAAI,MAAM,SAAS,aAAa,MAAM,YAAY,QAAQ;MACxD,MAAM,YAAwC,MAAM,SAAS,MAAM,SAAS,SAAS;MAErF,IAAI,cAAc,CAAC,OAAO,SAAS,KAAM,OAAO,SAAS,KAAK,CAAC,aAAa,SAAS,IAAK;OACxF,MAAM,SAAS,KAAK,UAAU,CAAC;OAC/B;MACF;KACF;IACF,CAAC;IAGD,KAAK,WAAW,QAAQ,iBAAiB,SAAS,mBAAmB,SAAS,SAAS,CAAC,CAAC,OAAO;GAClG;EACF,CAAC;CAGH;AACF;;;;;;;;AASA,SAAS,SAAS,MAAe,QAAmB,CAAC,GAAG,YAAiC;CACvF,MAAM,aAAa,MAAM,MAAM,SAAS,OAAQ,MAAM,KAAK,WAAW,CAAC,KAAK,MAAM,MAAM,SAAS,MAAO,KAAA;CAExG,KAAK,SAAS,SAAS,UAA0B;EAC/C,IAAI,OAAO,KAAK,KAAK,aAAa,KAAK,GAAG;GACxC,MAAM,QAAkB,MAAM,MAAM,MAAM,IAAI;GAE9C,MAAM,SAAS,SAAiB,MAAc;IAC5C,IAAI,YACF,KAAK,CAAC,EAAE,SAAS,KAAK;KAAE,GAAG;KAAM,UAAU,CAAC,YAAY,OAAO,CAAC;IAAE,CAAC;SAEnE,KAAK,CAAC,EAAE,SAAS,KAAK,YAAY,OAAO,CAAC;IAG5C,MAAM,MAAM,SAAS,KAAK,MAAM,KAAK,WAAW,CAAC;GACnD,CAAC;EACH,OAAO,IAAI,UAAU,KAAK,KAAK,MAAM,SAAS,KAAK,YAAY,GAC7D,SAAS,OAAO,OAAO,IAAI;OAE3B,KAAK,CAAC,EAAE,SAAS,KAAK,KAAK;CAE/B,CAAC;CAED,OAAO;AACT;;;;;;AAOA,SAAS,WAAW,GAAG,UAAqC;CAC1D,OAAO;EACL,MAAM;EACN,SAAS;EACT,YAAY,EAAE,OAAO,CAAC,MAAM,EAAE;EAC9B;CACF;AACF;;;;;;AAOA,SAAS,aAAa,MAA+B;CACnD,OAAQ,OAAO,IAAI,KAAK,QAAQ,KAAK,KAAK,KAAK,KAAO,UAAU,IAAI,KAAK,KAAK,SAAS,KAAK,YAAY;AAC1G;;;;;AC7FA,SAAgB,gBACd,YACA,SAMA;CAEA,MAAM,eACJ,OAAO,SAAS,oBAAoB,WAAW,CAAC,QAAQ,eAAe,IAAK,SAAS,mBAAmB,CAAC,EAAA,CACzG,QAAQ,MAAM;EAEd,IAAI,EAAE,SAAS,GACb,OAAO;EAGT,OAAO;CACT,CAAC;CAGD,MAAM,YAAY,YAAY,yBAAyB,QAAQ,SAAS,QAAQ;CAGhF,MAAM,oBAAoB,CAAC;CAkB3B,MAAM,aAhBO,QAAQ,CAAC,CAEnB,IAAI,aAAa,EAAE,UAAU,KAAK,CAAC,CAAC,CAGpC,IAAI,0BAA0B,UAAU,CAAC,CAAC,CAE1C,IAAI,iBAAiB,EACpB,UAAU,QAAQ,YAAY,kBAAkB,QAAQ,SAAS,IAAI,KAAA,EACvE,CAAC,CAAC,CACD,IAAI,SAAS,cAAc,uBAAuB,UAAU,CAAC,CAE7D,IAAI,eAAe,CAAC,CAEpB,YAAY,qBAAqB,UAAU,gBAE3B,CAAA,CAAK,SAAS;CAGjC,OAAO,YAAY,SACf,YAAY,QACT,KAAK,eACJ,IACG,MAAM,UAAU,CAAC,CACjB,KAAK,2DAA2D,WAAW,eAAe,GAC/F,UACF,IACA;AACN;;;;;AAMA,SAAS,0BAA0B,eAAuB;CACxD,cAAc,SAAe;EAC3B,MAAM,MAAM,YAAY,SAAkB;GACxC,IAAI,KAAK,YAAY,QACnB,KAAK,SAAS,KAAK;IACjB,MAAM;IACN,OAAO;GACT,CAAC;EAEL,CAAC;CACH;AACF"}
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/bash.js
1
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/bash.js
2
2
  /** @type LanguageFn */
3
3
  function bash(hljs) {
4
4
  const regex = hljs.regex;
@@ -354,8 +354,7 @@ function bash(hljs) {
354
354
  ]
355
355
  };
356
356
  }
357
- //#endregion
358
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/css.js
357
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/css.js
359
358
  var MODES$2 = (hljs) => {
360
359
  return {
361
360
  IMPORTANT: {
@@ -1248,8 +1247,7 @@ function css(hljs) {
1248
1247
  ]
1249
1248
  };
1250
1249
  }
1251
- //#endregion
1252
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/javascript.js
1250
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/javascript.js
1253
1251
  var IDENT_RE$2 = "[A-Za-z$_][0-9A-Za-z$_]*";
1254
1252
  var KEYWORDS$2 = [
1255
1253
  "as",
@@ -1818,8 +1816,7 @@ function javascript$1(hljs) {
1818
1816
  ]
1819
1817
  };
1820
1818
  }
1821
- //#endregion
1822
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/json.js
1819
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/json.js
1823
1820
  var EXTENDED_NUMBER_MODE = {
1824
1821
  scope: "number",
1825
1822
  match: "([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",
@@ -1862,8 +1859,7 @@ function json(hljs) {
1862
1859
  illegal: "\\S"
1863
1860
  };
1864
1861
  }
1865
- //#endregion
1866
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/less.js
1862
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/less.js
1867
1863
  var MODES$1 = (hljs) => {
1868
1864
  return {
1869
1865
  IMPORTANT: {
@@ -2819,8 +2815,7 @@ function less(hljs) {
2819
2815
  contains: RULES
2820
2816
  };
2821
2817
  }
2822
- //#endregion
2823
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/markdown.js
2818
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/markdown.js
2824
2819
  function markdown(hljs) {
2825
2820
  const regex = hljs.regex;
2826
2821
  const INLINE_HTML = {
@@ -3009,8 +3004,7 @@ function markdown(hljs) {
3009
3004
  ]
3010
3005
  };
3011
3006
  }
3012
- //#endregion
3013
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/plaintext.js
3007
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/plaintext.js
3014
3008
  function plaintext(hljs) {
3015
3009
  return {
3016
3010
  name: "Plain text",
@@ -3018,8 +3012,7 @@ function plaintext(hljs) {
3018
3012
  disableAutodetect: true
3019
3013
  };
3020
3014
  }
3021
- //#endregion
3022
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/scss.js
3015
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/scss.js
3023
3016
  var MODES = (hljs) => {
3024
3017
  return {
3025
3018
  IMPORTANT: {
@@ -3922,8 +3915,7 @@ function scss(hljs) {
3922
3915
  ]
3923
3916
  };
3924
3917
  }
3925
- //#endregion
3926
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/shell.js
3918
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/shell.js
3927
3919
  /** @type LanguageFn */
3928
3920
  function shell(hljs) {
3929
3921
  return {
@@ -3939,8 +3931,7 @@ function shell(hljs) {
3939
3931
  }]
3940
3932
  };
3941
3933
  }
3942
- //#endregion
3943
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/typescript.js
3934
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/typescript.js
3944
3935
  var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*";
3945
3936
  var KEYWORDS = [
3946
3937
  "as",
@@ -4611,8 +4602,7 @@ function typescript(hljs) {
4611
4602
  });
4612
4603
  return tsLanguage;
4613
4604
  }
4614
- //#endregion
4615
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/xml.js
4605
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/xml.js
4616
4606
  /** @type LanguageFn */
4617
4607
  function xml(hljs) {
4618
4608
  const regex = hljs.regex;
@@ -4781,8 +4771,7 @@ function xml(hljs) {
4781
4771
  ]
4782
4772
  };
4783
4773
  }
4784
- //#endregion
4785
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/yaml.js
4774
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/yaml.js
4786
4775
  function yaml(hljs) {
4787
4776
  const LITERALS = "true false yes no null";
4788
4777
  const URI_CHARACTERS = "[\\w#;/?:@&=+$,.~*'()[\\]]+";
@@ -4939,8 +4928,7 @@ function yaml(hljs) {
4939
4928
  contains: MODES
4940
4929
  };
4941
4930
  }
4942
- //#endregion
4943
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/python.js
4931
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/python.js
4944
4932
  function python$1(hljs) {
4945
4933
  const regex = hljs.regex;
4946
4934
  const IDENT_RE = /[\p{XID_Start}_]\p{XID_Continue}*/u;
@@ -5300,8 +5288,7 @@ function python$1(hljs) {
5300
5288
  ]
5301
5289
  };
5302
5290
  }
5303
- //#endregion
5304
- //#region src/languages/python.ts
5291
+ // src/languages/python.ts
5305
5292
  /**
5306
5293
  * Python grammar that extends highlight.js' bundled grammar with call-site
5307
5294
  * highlighting.
@@ -5342,8 +5329,7 @@ var python = (hljs) => {
5342
5329
  contains: [...language.contains ?? [], functionCall]
5343
5330
  };
5344
5331
  };
5345
- //#endregion
5346
- //#region src/languages/basic.ts
5332
+ // src/languages/basic.ts
5347
5333
  var basicLanguages = {
5348
5334
  bash,
5349
5335
  css,
@@ -5360,15 +5346,13 @@ var basicLanguages = {
5360
5346
  xml,
5361
5347
  yaml
5362
5348
  };
5363
- //#endregion
5364
- //#region src/languages/json-yaml.ts
5349
+ // src/languages/json-yaml.ts
5365
5350
  var jsonYamlLanguages = {
5366
5351
  json,
5367
5352
  plaintext,
5368
5353
  yaml
5369
5354
  };
5370
- //#endregion
5371
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/c.js
5355
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/c.js
5372
5356
  /** @type LanguageFn */
5373
5357
  function c(hljs) {
5374
5358
  const regex = hljs.regex;
@@ -5644,8 +5628,7 @@ function c(hljs) {
5644
5628
  }
5645
5629
  };
5646
5630
  }
5647
- //#endregion
5648
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/clojure.js
5631
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/clojure.js
5649
5632
  /** @type LanguageFn */
5650
5633
  function clojure(hljs) {
5651
5634
  const SYMBOLSTART = "a-zA-Z_\\-!.?+*=<>&'";
@@ -5776,8 +5759,7 @@ function clojure(hljs) {
5776
5759
  ]
5777
5760
  };
5778
5761
  }
5779
- //#endregion
5780
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/cpp.js
5762
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/cpp.js
5781
5763
  /** @type LanguageFn */
5782
5764
  function cpp(hljs) {
5783
5765
  const regex = hljs.regex;
@@ -6278,8 +6260,7 @@ function cpp(hljs) {
6278
6260
  ])
6279
6261
  };
6280
6262
  }
6281
- //#endregion
6282
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/csharp.js
6263
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/csharp.js
6283
6264
  /** @type LanguageFn */
6284
6265
  function csharp(hljs) {
6285
6266
  const BUILT_IN_KEYWORDS = [
@@ -6654,8 +6635,7 @@ function csharp(hljs) {
6654
6635
  ]
6655
6636
  };
6656
6637
  }
6657
- //#endregion
6658
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/dart.js
6638
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/dart.js
6659
6639
  /** @type LanguageFn */
6660
6640
  function dart(hljs) {
6661
6641
  const regex = hljs.regex;
@@ -6889,8 +6869,7 @@ function dart(hljs) {
6889
6869
  ]
6890
6870
  };
6891
6871
  }
6892
- //#endregion
6893
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/diff.js
6872
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/diff.js
6894
6873
  /** @type LanguageFn */
6895
6874
  function diff(hljs) {
6896
6875
  const regex = hljs.regex;
@@ -6928,8 +6907,7 @@ function diff(hljs) {
6928
6907
  ]
6929
6908
  };
6930
6909
  }
6931
- //#endregion
6932
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/dockerfile.js
6910
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/dockerfile.js
6933
6911
  /** @type LanguageFn */
6934
6912
  function dockerfile(hljs) {
6935
6913
  return {
@@ -6962,8 +6940,7 @@ function dockerfile(hljs) {
6962
6940
  illegal: "</"
6963
6941
  };
6964
6942
  }
6965
- //#endregion
6966
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/elixir.js
6943
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/elixir.js
6967
6944
  /** @type LanguageFn */
6968
6945
  function elixir(hljs) {
6969
6946
  const regex = hljs.regex;
@@ -7202,8 +7179,7 @@ function elixir(hljs) {
7202
7179
  contains: ELIXIR_DEFAULT_CONTAINS
7203
7180
  };
7204
7181
  }
7205
- //#endregion
7206
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/fsharp.js
7182
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/fsharp.js
7207
7183
  /**
7208
7184
  * @param {string} value
7209
7185
  * @returns {RegExp}
@@ -7642,8 +7618,7 @@ function fsharp(hljs) {
7642
7618
  ]
7643
7619
  };
7644
7620
  }
7645
- //#endregion
7646
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/go.js
7621
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/go.js
7647
7622
  function go(hljs) {
7648
7623
  const KEYWORDS = {
7649
7624
  keyword: [
@@ -7785,8 +7760,7 @@ function go(hljs) {
7785
7760
  ]
7786
7761
  };
7787
7762
  }
7788
- //#endregion
7789
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/graphql.js
7763
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/graphql.js
7790
7764
  /** @type LanguageFn */
7791
7765
  function graphql(hljs) {
7792
7766
  const regex = hljs.regex;
@@ -7852,8 +7826,7 @@ function graphql(hljs) {
7852
7826
  illegal: [/[;<']/, /BEGIN/]
7853
7827
  };
7854
7828
  }
7855
- //#endregion
7856
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/haskell.js
7829
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/haskell.js
7857
7830
  function haskell(hljs) {
7858
7831
  const decimalDigits = "([0-9]_*)+";
7859
7832
  const hexDigits = "([0-9a-fA-F]_*)+";
@@ -8000,8 +7973,7 @@ function haskell(hljs) {
8000
7973
  ]
8001
7974
  };
8002
7975
  }
8003
- //#endregion
8004
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/http.js
7976
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/http.js
8005
7977
  function http(hljs) {
8006
7978
  const regex = hljs.regex;
8007
7979
  const VERSION = "HTTP/([32]|1\\.[01])";
@@ -8076,8 +8048,7 @@ function http(hljs) {
8076
8048
  ]
8077
8049
  };
8078
8050
  }
8079
- //#endregion
8080
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/ini.js
8051
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/ini.js
8081
8052
  function ini(hljs) {
8082
8053
  const regex = hljs.regex;
8083
8054
  const NUMBERS = {
@@ -8169,8 +8140,7 @@ function ini(hljs) {
8169
8140
  ]
8170
8141
  };
8171
8142
  }
8172
- //#endregion
8173
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/java.js
8143
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/java.js
8174
8144
  var decimalDigits$1 = "[0-9](_*[0-9])*";
8175
8145
  var frac$1 = `\\.(${decimalDigits$1})`;
8176
8146
  var hexDigits$1 = "[0-9a-fA-F](_*[0-9a-fA-F])*";
@@ -8412,8 +8382,7 @@ function java(hljs) {
8412
8382
  ]
8413
8383
  };
8414
8384
  }
8415
- //#endregion
8416
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/julia.js
8385
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/julia.js
8417
8386
  function julia(hljs) {
8418
8387
  const VARIABLE_NAME_RE = "[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*";
8419
8388
  const KEYWORDS = {
@@ -8764,8 +8733,7 @@ function julia(hljs) {
8764
8733
  INTERPOLATION.contains = DEFAULT.contains;
8765
8734
  return DEFAULT;
8766
8735
  }
8767
- //#endregion
8768
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/kotlin.js
8736
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/kotlin.js
8769
8737
  var decimalDigits = "[0-9](_*[0-9])*";
8770
8738
  var frac = `\\.(${decimalDigits})`;
8771
8739
  var hexDigits = "[0-9a-fA-F](_*[0-9a-fA-F])*";
@@ -8984,8 +8952,7 @@ function kotlin(hljs) {
8984
8952
  ]
8985
8953
  };
8986
8954
  }
8987
- //#endregion
8988
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/lua.js
8955
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/lua.js
8989
8956
  function lua(hljs) {
8990
8957
  const OPENING_LONG_BRACKET = "\\[=*\\[";
8991
8958
  const CLOSING_LONG_BRACKET = "\\]=*\\]";
@@ -9032,8 +8999,7 @@ function lua(hljs) {
9032
8999
  ])
9033
9000
  };
9034
9001
  }
9035
- //#endregion
9036
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/makefile.js
9002
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/makefile.js
9037
9003
  function makefile(hljs) {
9038
9004
  const VARIABLE = {
9039
9005
  className: "variable",
@@ -9093,8 +9059,7 @@ function makefile(hljs) {
9093
9059
  ]
9094
9060
  };
9095
9061
  }
9096
- //#endregion
9097
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/matlab.js
9062
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/matlab.js
9098
9063
  function matlab(hljs) {
9099
9064
  const TRANSPOSE = {
9100
9065
  relevance: 0,
@@ -9162,8 +9127,7 @@ function matlab(hljs) {
9162
9127
  ]
9163
9128
  };
9164
9129
  }
9165
- //#endregion
9166
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/nginx.js
9130
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/nginx.js
9167
9131
  /** @type LanguageFn */
9168
9132
  function nginx(hljs) {
9169
9133
  const regex = hljs.regex;
@@ -9288,8 +9252,7 @@ function nginx(hljs) {
9288
9252
  illegal: "[^\\s\\}\\{]"
9289
9253
  };
9290
9254
  }
9291
- //#endregion
9292
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/objectivec.js
9255
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/objectivec.js
9293
9256
  function objectivec(hljs) {
9294
9257
  const API_CLASS = {
9295
9258
  className: "built_in",
@@ -9522,8 +9485,7 @@ function objectivec(hljs) {
9522
9485
  ]
9523
9486
  };
9524
9487
  }
9525
- //#endregion
9526
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/ocaml.js
9488
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/ocaml.js
9527
9489
  function ocaml(hljs) {
9528
9490
  return {
9529
9491
  name: "OCaml",
@@ -9573,8 +9535,7 @@ function ocaml(hljs) {
9573
9535
  ]
9574
9536
  };
9575
9537
  }
9576
- //#endregion
9577
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/perl.js
9538
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/perl.js
9578
9539
  /** @type LanguageFn */
9579
9540
  function perl(hljs) {
9580
9541
  const regex = hljs.regex;
@@ -10026,8 +9987,7 @@ function perl(hljs) {
10026
9987
  contains: PERL_DEFAULT_CONTAINS
10027
9988
  };
10028
9989
  }
10029
- //#endregion
10030
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/php.js
9990
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/php.js
10031
9991
  /**
10032
9992
  * @param {HLJSApi} hljs
10033
9993
  * @returns {LanguageDetail}
@@ -10552,8 +10512,7 @@ function php(hljs) {
10552
10512
  ]
10553
10513
  };
10554
10514
  }
10555
- //#endregion
10556
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/powershell.js
10515
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/powershell.js
10557
10516
  function powershell(hljs) {
10558
10517
  const TYPES = [
10559
10518
  "string",
@@ -10759,8 +10718,7 @@ function powershell(hljs) {
10759
10718
  contains: GENTLEMANS_SET.concat(PS_CLASS, PS_FUNCTION, PS_USING, PS_ARGUMENTS, PS_TYPE)
10760
10719
  };
10761
10720
  }
10762
- //#endregion
10763
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/properties.js
10721
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/properties.js
10764
10722
  /** @type LanguageFn */
10765
10723
  function properties(hljs) {
10766
10724
  const WS0 = "[ \\t\\f]*";
@@ -10803,8 +10761,7 @@ function properties(hljs) {
10803
10761
  ]
10804
10762
  };
10805
10763
  }
10806
- //#endregion
10807
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/r.js
10764
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/r.js
10808
10765
  /** @type LanguageFn */
10809
10766
  function r(hljs) {
10810
10767
  const regex = hljs.regex;
@@ -10947,8 +10904,7 @@ function r(hljs) {
10947
10904
  ]
10948
10905
  };
10949
10906
  }
10950
- //#endregion
10951
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/ruby.js
10907
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/ruby.js
10952
10908
  function ruby(hljs) {
10953
10909
  const regex = hljs.regex;
10954
10910
  const RUBY_METHOD_RE = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)";
@@ -11268,8 +11224,7 @@ function ruby(hljs) {
11268
11224
  contains: [hljs.SHEBANG({ binary: "ruby" })].concat(IRB_DEFAULT).concat(COMMENT_MODES).concat(RUBY_DEFAULT_CONTAINS)
11269
11225
  };
11270
11226
  }
11271
- //#endregion
11272
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/rust.js
11227
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/rust.js
11273
11228
  /** @type LanguageFn */
11274
11229
  function rust(hljs) {
11275
11230
  const regex = hljs.regex;
@@ -11577,8 +11532,7 @@ function rust(hljs) {
11577
11532
  ]
11578
11533
  };
11579
11534
  }
11580
- //#endregion
11581
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/scala.js
11535
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/scala.js
11582
11536
  function scala(hljs) {
11583
11537
  const regex = hljs.regex;
11584
11538
  const ANNOTATION = {
@@ -11749,8 +11703,7 @@ function scala(hljs) {
11749
11703
  ]
11750
11704
  };
11751
11705
  }
11752
- //#endregion
11753
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/sql.js
11706
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/sql.js
11754
11707
  function sql(hljs) {
11755
11708
  const regex = hljs.regex;
11756
11709
  const COMMENT_MODE = hljs.COMMENT("--", "$");
@@ -12372,8 +12325,7 @@ function sql(hljs) {
12372
12325
  ]
12373
12326
  };
12374
12327
  }
12375
- //#endregion
12376
- //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/swift.js
12328
+ // ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/swift.js
12377
12329
  /**
12378
12330
  * @param {string} value
12379
12331
  * @returns {RegExp}
@@ -13071,8 +13023,7 @@ function swift(hljs) {
13071
13023
  ]
13072
13024
  };
13073
13025
  }
13074
- //#endregion
13075
- //#region src/languages/curl.ts
13026
+ // src/languages/curl.ts
13076
13027
  /**
13077
13028
  * cURL grammar adapted from highlightjs-curl to avoid a CJS dependency.
13078
13029
  */
@@ -13150,8 +13101,7 @@ var curlLanguage = (hljs) => {
13150
13101
  ]
13151
13102
  };
13152
13103
  };
13153
- //#endregion
13154
- //#region src/languages/mojo.ts
13104
+ // src/languages/mojo.ts
13155
13105
  /**
13156
13106
  * Mojo grammar.
13157
13107
  *
@@ -13248,8 +13198,7 @@ var mojo = (hljs) => {
13248
13198
  contains: [...language.contains ?? [], functionCall]
13249
13199
  };
13250
13200
  };
13251
- //#endregion
13252
- //#region src/languages/standard.ts
13201
+ // src/languages/standard.ts
13253
13202
  /**
13254
13203
  * We group languages into three categories based on their popularity and usage.
13255
13204
  * This helps in optimizing the bundle size by allowing users to include only
@@ -13321,7 +13270,6 @@ var standardLanguages = {
13321
13270
  xml,
13322
13271
  yaml
13323
13272
  };
13324
- //#endregion
13325
13273
  export { jsonYamlLanguages as n, basicLanguages as r, standardLanguages as t };
13326
13274
 
13327
13275
  //# sourceMappingURL=languages.js.map