/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../@lezer/yaml/dist/index.js"),n=require("../../language/dist/index.js");require("../../../@lezer/common/dist/index.js"),require("../../../@lezer/highlight/dist/index.js"),require("../../../@lezer/lr/dist/index.js");const r=n.LRLanguage.define({name:"yaml",parser:e.parser.configure({props:[n.indentNodeProp.add({Stream:e=>{for(let n=e.node.resolve(e.pos,-1);n&&n.to>=e.pos;n=n.parent){if("BlockLiteralContent"==n.name&&n.from<n.to)return e.baseIndentFor(n);if("BlockLiteral"==n.name)return e.baseIndentFor(n)+e.unit;if("BlockSequence"==n.name||"BlockMapping"==n.name)return e.column(n.from,1);if("QuotedLiteral"==n.name)return null;if("Literal"==n.name){let r=e.column(n.from,1);if(r==e.lineIndent(n.from,1))return r;if(n.to>e.pos)return null}}return null},FlowMapping:n.delimitedIndent({closing:"}"}),FlowSequence:n.delimitedIndent({closing:"]"})}),n.foldNodeProp.add({"FlowMapping FlowSequence":n.foldInside,"Item Pair BlockLiteral":(e,n)=>({from:n.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});exports.yaml=function(){return new n.LanguageSupport(r)},exports.yamlLanguage=r;