/*!
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/java/dist/index.js"),t=require("../../language/dist/index.js"),n=t.LRLanguage.define({name:"java",parser:e.parser.configure({props:[t.indentNodeProp.add({IfStatement:t.continuedIndent({except:/^\s*({|else\b)/}),TryStatement:t.continuedIndent({except:/^\s*({|catch|finally)\b/}),LabeledStatement:t.flatIndent,SwitchBlock:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),a=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:a?1:2)*e.unit},Block:t.delimitedIndent({closing:"}"}),BlockComment:()=>null,Statement:t.continuedIndent({except:/^{/})}),t.foldNodeProp.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":t.foldInside,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});exports.java=function(){return new t.LanguageSupport(n)},exports.javaLanguage=n;