/*!
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
*/
import{parser as e}from"../../../@lezer/yaml/dist/index.js";import{LanguageSupport as n,LRLanguage as o,indentNodeProp as r,delimitedIndent as t,foldNodeProp as i,foldInside as l}from"../../language/dist/index.js";import"../../../@lezer/common/dist/index.js";import"../../../@lezer/highlight/dist/index.js";import"../../../@lezer/lr/dist/index.js";const a=/* @__PURE__ */o.define({name:"yaml",parser:/* @__PURE__ */e.configure({props:[
/* @__PURE__ */r.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 o=e.column(n.from,1);if(o==e.lineIndent(n.from,1))return o;if(n.to>e.pos)return null}}return null},FlowMapping:/* @__PURE__ */t({closing:"}"}),FlowSequence:/* @__PURE__ */t({closing:"]"})}),
/* @__PURE__ */i.add({"FlowMapping FlowSequence":l,"Item Pair BlockLiteral":(e,n)=>({from:n.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function m(){return new n(a)}export{m as yaml,a as yamlLanguage};