import { C as d } from "./codemirror.es-CVgHrv2u.js";
import { o as onlineParser, l as isIgnored, L as LexRules, P as ParseRules } from "./index-B10SxoeJ.js";
import { r } from "./mode-indent.es-CX18p_8d.js";
import "./codemirror.es2-DH2syXui.js";
var a = Object.defineProperty;
var t = (e, r2) => a(e, "name", { value: r2, configurable: true });
const m = /* @__PURE__ */ t((e) => {
  const r$1 = onlineParser({
    eatWhitespace: (o) => o.eatWhile(isIgnored),
    lexRules: LexRules,
    parseRules: ParseRules,
    editorConfig: { tabSize: e.tabSize }
  });
  return {
    config: e,
    startState: r$1.startState,
    token: r$1.token,
    indent: r,
    electricInput: /^\s*[})\]]/,
    fold: "brace",
    lineComment: "#",
    closeBrackets: {
      pairs: '()[]{}""',
      explode: "()[]{}"
    }
  };
}, "graphqlModeFactory");
d.defineMode("graphql", m);
//# sourceMappingURL=mode.es-BC4mE8KT.js.map
