"use strict";var e=require("../../../@lezer/cpp/dist/index.js"),t=require("../../language/dist/index.js");const n=t.LRLanguage.define({name:"cpp",parser:e.parser.configure({props:[t.indentNodeProp.add({IfStatement:t.continuedIndent({except:/^\s*({|else\b)/}),TryStatement:t.continuedIndent({except:/^\s*({|catch)\b/}),LabeledStatement:t.flatIndent,CaseStatement:e=>e.baseIndent+e.unit,BlockComment:()=>null,CompoundStatement:t.delimitedIndent({closing:"}"}),Statement:t.continuedIndent({except:/^{/})}),t.foldNodeProp.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":t.foldInside,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});exports.cpp=function(){return new t.LanguageSupport(n)},exports.cppLanguage=n;
//# sourceMappingURL=index.js.map
