mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-09 03:18:15 +08:00
87 lines
2.2 KiB
JavaScript
87 lines
2.2 KiB
JavaScript
import {
|
|
__commonJS
|
|
} from "./chunk-2TUXWMP5.js";
|
|
|
|
// node_modules/highlight.js/lib/languages/makefile.js
|
|
var require_makefile = __commonJS({
|
|
"node_modules/highlight.js/lib/languages/makefile.js"(exports, module) {
|
|
function makefile(hljs) {
|
|
const VARIABLE = {
|
|
className: "variable",
|
|
variants: [
|
|
{
|
|
begin: "\\$\\(" + hljs.UNDERSCORE_IDENT_RE + "\\)",
|
|
contains: [hljs.BACKSLASH_ESCAPE]
|
|
},
|
|
{
|
|
begin: /\$[@%<?\^\+\*]/
|
|
}
|
|
]
|
|
};
|
|
const QUOTE_STRING = {
|
|
className: "string",
|
|
begin: /"/,
|
|
end: /"/,
|
|
contains: [
|
|
hljs.BACKSLASH_ESCAPE,
|
|
VARIABLE
|
|
]
|
|
};
|
|
const FUNC = {
|
|
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: [VARIABLE]
|
|
};
|
|
const ASSIGNMENT = {
|
|
begin: "^" + hljs.UNDERSCORE_IDENT_RE + "\\s*(?=[:+?]?=)"
|
|
};
|
|
const META = {
|
|
className: "meta",
|
|
begin: /^\.PHONY:/,
|
|
end: /$/,
|
|
keywords: {
|
|
$pattern: /[\.\w]+/,
|
|
"meta-keyword": ".PHONY"
|
|
}
|
|
};
|
|
const TARGET = {
|
|
className: "section",
|
|
begin: /^[^\s]+:/,
|
|
end: /$/,
|
|
contains: [VARIABLE]
|
|
};
|
|
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: [
|
|
hljs.HASH_COMMENT_MODE,
|
|
VARIABLE,
|
|
QUOTE_STRING,
|
|
FUNC,
|
|
ASSIGNMENT,
|
|
META,
|
|
TARGET
|
|
]
|
|
};
|
|
}
|
|
module.exports = makefile;
|
|
}
|
|
});
|
|
|
|
export {
|
|
require_makefile
|
|
};
|
|
//# sourceMappingURL=chunk-ZB7UB33O.js.map
|