mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-08 17:18:17 +08:00
51 lines
1.4 KiB
JavaScript
51 lines
1.4 KiB
JavaScript
import {
|
|
__commonJS
|
|
} from "./chunk-2TUXWMP5.js";
|
|
|
|
// node_modules/refractor/lang/clike.js
|
|
var require_clike = __commonJS({
|
|
"node_modules/refractor/lang/clike.js"(exports, module) {
|
|
module.exports = clike;
|
|
clike.displayName = "clike";
|
|
clike.aliases = [];
|
|
function clike(Prism) {
|
|
Prism.languages.clike = {
|
|
comment: [
|
|
{
|
|
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
lookbehind: true,
|
|
greedy: true
|
|
},
|
|
{
|
|
pattern: /(^|[^\\:])\/\/.*/,
|
|
lookbehind: true,
|
|
greedy: true
|
|
}
|
|
],
|
|
string: {
|
|
pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
greedy: true
|
|
},
|
|
"class-name": {
|
|
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
|
|
lookbehind: true,
|
|
inside: {
|
|
punctuation: /[.\\]/
|
|
}
|
|
},
|
|
keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
|
|
boolean: /\b(?:false|true)\b/,
|
|
function: /\b\w+(?=\()/,
|
|
number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
|
|
operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
|
|
punctuation: /[{}[\];(),.:]/
|
|
};
|
|
}
|
|
}
|
|
});
|
|
|
|
export {
|
|
require_clike
|
|
};
|
|
//# sourceMappingURL=chunk-5VNK65O7.js.map
|