import{o as e}from"./chunk-6hGRweTZ.js";import{t}from"./codemirror-mxAyinHX.js";import{d as n,m as r,p as i,s as a}from"./esm-MZoV4-G5.js";import{t as o}from"./mode-indent-IK9pkvVY.js";e(t()).default.defineMode(`graphql-results`,e=>{let t=a({eatWhitespace:e=>e.eatSpace(),lexRules:s,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o,electricInput:/^\s*[}\]]/,fold:`brace`,closeBrackets:{pairs:`[]{}""`,explode:`[]{}`}}});var s={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[i(`{`),n(`Entry`,i(`,`)),i(`}`)],Entry:[r(`String`,`def`),i(`:`),`Value`],Value(e){switch(e.kind){case`Number`:return`NumberValue`;case`String`:return`StringValue`;case`Punctuation`:switch(e.value){case`[`:return`ListValue`;case`{`:return`ObjectValue`}return null;case`Keyword`:switch(e.value){case`true`:case`false`:return`BooleanValue`;case`null`:return`NullValue`}return null}},NumberValue:[r(`Number`,`number`)],StringValue:[r(`String`,`string`)],BooleanValue:[r(`Keyword`,`builtin`)],NullValue:[r(`Keyword`,`keyword`)],ListValue:[i(`[`),n(`Value`,i(`,`)),i(`]`)],ObjectValue:[i(`{`),n(`ObjectField`,i(`,`)),i(`}`)],ObjectField:[r(`String`,`property`),i(`:`),`Value`]};
//# sourceMappingURL=mode-dffM_R-I.js.map