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

// ../node_modules/highlight.js/lib/languages/prolog.js
var C = O((b, o) => {
  function r(n) {
    let t = {
      begin: /[a-z][A-Za-z0-9_]*/,
      relevance: 0
    }, i = {
      className: "symbol",
      variants: [
        {
          begin: /[A-Z][a-zA-Z0-9_]*/
        },
        {
          begin: /_[A-Za-z0-9_]*/
        }
      ],
      relevance: 0
    }, c = {
      begin: /\(/,
      end: /\)/,
      relevance: 0
    }, s = {
      begin: /\[/,
      end: /\]/
    }, _ = {
      className: "comment",
      begin: /%/,
      end: /$/,
      contains: [n.PHRASAL_WORDS_MODE]
    }, E = {
      className: "string",
      begin: /`/,
      end: /`/,
      contains: [n.BACKSLASH_ESCAPE]
    }, g = {
      className: "string",
      // 0'a etc.
      begin: /0'(\\'|.)/
    }, A = {
      className: "string",
      begin: /0'\\s/
      // 0'\s
    }, e = [
      t,
      i,
      c,
      {
        // relevance booster
        begin: /:-/
      },
      s,
      _,
      n.C_BLOCK_COMMENT_MODE,
      n.QUOTE_STRING_MODE,
      n.APOS_STRING_MODE,
      E,
      g,
      A,
      n.C_NUMBER_MODE
    ];
    return c.contains = e, s.contains = e, {
      name: "Prolog",
      contains: e.concat([
        {
          // relevance booster
          begin: /\.$/
        }
      ])
    };
  }
  a(r, "prolog");
  o.exports = r;
});

export {
  C as a
};
