UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

28 lines (27 loc) 1.12 kB
import { l as languages } from "../../index-DF54SWhA.js"; import { c as clikeString } from "../../patterns-Jkz_nwNQ.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]\)|(?=[({]))/, // Directives "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": /[:;(){}]/ }; //# sourceMappingURL=makefile.js.map