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

// ../node_modules/highlight.js/lib/languages/makefile.js
var c = f((E, a) => {
  function l(e) {
    let n = {
      className: "variable",
      variants: [
        {
          begin: "\\$\\(" + e.UNDERSCORE_IDENT_RE + "\\)",
          contains: [e.BACKSLASH_ESCAPE]
        },
        {
          begin: /\$[@%<?\^\+\*]/
        }
      ]
    }, s = {
      className: "string",
      begin: /"/,
      end: /"/,
      contains: [
        e.BACKSLASH_ESCAPE,
        n
      ]
    }, t = {
      className: "variable",
      begin: /\$\([\w-]+\s/,
      end: /\)/,
      keywords: {
        built_in: "subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"
      },
      contains: [n]
    }, r = {
      begin: "^" + e.UNDERSCORE_IDENT_RE + "\\s*(?=[:+?]?=)"
    }, o = {
      className: "meta",
      begin: /^\.PHONY:/,
      end: /$/,
      keywords: {
        $pattern: /[\.\w]+/,
        "meta-keyword": ".PHONY"
      }
    }, d = {
      className: "section",
      begin: /^[^\s]+:/,
      end: /$/,
      contains: [n]
    };
    return {
      name: "Makefile",
      aliases: [
        "mk",
        "mak",
        "make"
      ],
      keywords: {
        $pattern: /[\w-]+/,
        keyword: "define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"
      },
      contains: [
        e.HASH_COMMENT_MODE,
        n,
        s,
        t,
        r,
        o,
        d
      ]
    };
  }
  i(l, "makefile");
  a.exports = l;
});

export {
  c as a
};
