makefile.min.js 1.1 KB

1234567891011121314
  1. /*! `makefile` grammar compiled for Highlight.js 11.7.0 */
  2. (()=>{var e=(()=>{"use strict";return e=>{const i={className:"variable",
  3. variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",
  4. contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},a={className:"string",
  5. begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]},n={className:"variable",
  6. begin:/\$\([\w-]+\s/,end:/\)/,keywords:{
  7. 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"
  8. },contains:[i]},s={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},r={
  9. className:"section",begin:/^[^\s]+:/,end:/$/,contains:[i]};return{
  10. name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,
  11. keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"
  12. },contains:[e.HASH_COMMENT_MODE,i,a,n,s,{className:"meta",begin:/^\.PHONY:/,
  13. end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},r]}}})()
  14. ;hljs.registerLanguage("makefile",e)})();