mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-09 05:58:15 +08:00
61 lines
2.2 KiB
JavaScript
61 lines
2.2 KiB
JavaScript
|
import {
|
||
|
__commonJS
|
||
|
} from "./chunk-2TUXWMP5.js";
|
||
|
|
||
|
// node_modules/refractor/lang/cfscript.js
|
||
|
var require_cfscript = __commonJS({
|
||
|
"node_modules/refractor/lang/cfscript.js"(exports, module) {
|
||
|
module.exports = cfscript;
|
||
|
cfscript.displayName = "cfscript";
|
||
|
cfscript.aliases = [];
|
||
|
function cfscript(Prism) {
|
||
|
Prism.languages.cfscript = Prism.languages.extend("clike", {
|
||
|
comment: [
|
||
|
{
|
||
|
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
||
|
lookbehind: true,
|
||
|
inside: {
|
||
|
annotation: {
|
||
|
pattern: /(?:^|[^.])@[\w\.]+/,
|
||
|
alias: "punctuation"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
pattern: /(^|[^\\:])\/\/.*/,
|
||
|
lookbehind: true,
|
||
|
greedy: true
|
||
|
}
|
||
|
],
|
||
|
keyword: /\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,
|
||
|
operator: [
|
||
|
/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,
|
||
|
/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/
|
||
|
],
|
||
|
scope: {
|
||
|
pattern: /\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,
|
||
|
alias: "global"
|
||
|
},
|
||
|
type: {
|
||
|
pattern: /\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,
|
||
|
alias: "builtin"
|
||
|
}
|
||
|
});
|
||
|
Prism.languages.insertBefore("cfscript", "keyword", {
|
||
|
// This must be declared before keyword because we use "function" inside the lookahead
|
||
|
"function-variable": {
|
||
|
pattern: /[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
|
||
|
alias: "function"
|
||
|
}
|
||
|
});
|
||
|
delete Prism.languages.cfscript["class-name"];
|
||
|
Prism.languages.cfc = Prism.languages["cfscript"];
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
export {
|
||
|
require_cfscript
|
||
|
};
|
||
|
//# sourceMappingURL=chunk-NRRURLDJ.js.map
|