mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-08 18:28:17 +08:00
47 lines
1.2 KiB
JavaScript
47 lines
1.2 KiB
JavaScript
|
import {
|
||
|
__commonJS
|
||
|
} from "./chunk-2TUXWMP5.js";
|
||
|
|
||
|
// node_modules/refractor/lang/editorconfig.js
|
||
|
var require_editorconfig = __commonJS({
|
||
|
"node_modules/refractor/lang/editorconfig.js"(exports, module) {
|
||
|
module.exports = editorconfig;
|
||
|
editorconfig.displayName = "editorconfig";
|
||
|
editorconfig.aliases = [];
|
||
|
function editorconfig(Prism) {
|
||
|
Prism.languages.editorconfig = {
|
||
|
// https://editorconfig-specification.readthedocs.io
|
||
|
comment: /[;#].*/,
|
||
|
section: {
|
||
|
pattern: /(^[ \t]*)\[.+\]/m,
|
||
|
lookbehind: true,
|
||
|
alias: "selector",
|
||
|
inside: {
|
||
|
regex: /\\\\[\[\]{},!?.*]/,
|
||
|
// Escape special characters with '\\'
|
||
|
operator: /[!?]|\.\.|\*{1,2}/,
|
||
|
punctuation: /[\[\]{},]/
|
||
|
}
|
||
|
},
|
||
|
key: {
|
||
|
pattern: /(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,
|
||
|
lookbehind: true,
|
||
|
alias: "attr-name"
|
||
|
},
|
||
|
value: {
|
||
|
pattern: /=.*/,
|
||
|
alias: "attr-value",
|
||
|
inside: {
|
||
|
punctuation: /^=/
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
export {
|
||
|
require_editorconfig
|
||
|
};
|
||
|
//# sourceMappingURL=chunk-CF27GDQP.js.map
|