makefile.min.js 1.1 KB

1234567891011121314
  1. /*! `makefile` grammar compiled for Highlight.js 11.7.0 */
  2. var hljsGrammar=(()=>{"use strict";return e=>{const a={className:"variable",
  3. variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",
  4. contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},i={className:"string",
  5. begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a]},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:[a]},r={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={
  9. className:"section",begin:/^[^\s]+:/,end:/$/,contains:[a]};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,a,i,n,r,{className:"meta",begin:/^\.PHONY:/,
  13. end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},s]}}})()
  14. ;export default hljsGrammar;