prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
27 lines (26 loc) • 1.12 kB
JavaScript
import { a as languages } from "../../core-8vQkh0Rd.js";
import { a as clikeString } from "../../patterns-C0vJBvXO.js";
//#region src/prism/languages/makefile.js
languages.makefile = {
"comment": /#(?:\\[^]|[^\\\n])*/,
"string": clikeString,
"builtin-target": {
pattern: /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,
alias: "builtin"
},
"target": {
pattern: /^(?:[^:=\s]|[ ]+(?![\s:]))+(?=\s*:(?!=))/m,
alias: "symbol",
inside: { "variable": /\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/ }
},
"variable": /\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,
"keyword": /-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|override|private|s?include|undefine|unexport|vpath)\b/,
"function": {
pattern: /(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ ])/,
lookbehind: true
},
"operator": /(?:::|[?:+!])?=|[|@]/,
"punctuation": /[:;(){}]/
};
//#endregion
//# sourceMappingURL=makefile.js.map