import {
  a as o,
  c as l
} from "./chunk-IO47FP3U.js";

// ../node_modules/highlight.js/lib/languages/json.js
var _ = l((C, a) => {
  function O(n) {
    let t = {
      literal: "true false null"
    }, i = [
      n.C_LINE_COMMENT_MODE,
      n.C_BLOCK_COMMENT_MODE
    ], e = [
      n.QUOTE_STRING_MODE,
      n.C_NUMBER_MODE
    ], E = {
      end: ",",
      endsWithParent: !0,
      excludeEnd: !0,
      contains: e,
      keywords: t
    }, c = {
      begin: /\{/,
      end: /\}/,
      contains: [
        {
          className: "attr",
          begin: /"/,
          end: /"/,
          contains: [n.BACKSLASH_ESCAPE],
          illegal: "\\n"
        },
        n.inherit(E, {
          begin: /:/
        })
      ].concat(i),
      illegal: "\\S"
    }, s = {
      begin: "\\[",
      end: "\\]",
      contains: [n.inherit(E)],
      // inherit is a workaround for a bug that makes shared modes with endsWithParent compile only the ending of one of the parents
      illegal: "\\S"
    };
    return e.push(c, s), i.forEach(function(r) {
      e.push(r);
    }), {
      name: "JSON",
      contains: e,
      keywords: t,
      illegal: "\\S"
    };
  }
  o(O, "json");
  a.exports = O;
});

export {
  _ as a
};
