"use strict";var e=require("../../../@lezer/java/dist/index.js"),t=require("../../language/dist/index.js");const 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;
//# sourceMappingURL=index.js.map
