mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-08 22:08:16 +08:00
53 lines
1.7 KiB
JavaScript
53 lines
1.7 KiB
JavaScript
import {
|
|
__commonJS
|
|
} from "./chunk-2TUXWMP5.js";
|
|
|
|
// node_modules/refractor/lang/flow.js
|
|
var require_flow = __commonJS({
|
|
"node_modules/refractor/lang/flow.js"(exports, module) {
|
|
module.exports = flow;
|
|
flow.displayName = "flow";
|
|
flow.aliases = [];
|
|
function flow(Prism) {
|
|
;
|
|
(function(Prism2) {
|
|
Prism2.languages.flow = Prism2.languages.extend("javascript", {});
|
|
Prism2.languages.insertBefore("flow", "keyword", {
|
|
type: [
|
|
{
|
|
pattern: /\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,
|
|
alias: "tag"
|
|
}
|
|
]
|
|
});
|
|
Prism2.languages.flow["function-variable"].pattern = /(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i;
|
|
delete Prism2.languages.flow["parameter"];
|
|
Prism2.languages.insertBefore("flow", "operator", {
|
|
"flow-punctuation": {
|
|
pattern: /\{\||\|\}/,
|
|
alias: "punctuation"
|
|
}
|
|
});
|
|
if (!Array.isArray(Prism2.languages.flow.keyword)) {
|
|
Prism2.languages.flow.keyword = [Prism2.languages.flow.keyword];
|
|
}
|
|
Prism2.languages.flow.keyword.unshift(
|
|
{
|
|
pattern: /(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,
|
|
lookbehind: true
|
|
},
|
|
{
|
|
pattern: /(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,
|
|
lookbehind: true
|
|
}
|
|
);
|
|
})(Prism);
|
|
}
|
|
}
|
|
});
|
|
|
|
export {
|
|
require_flow
|
|
};
|
|
//# sourceMappingURL=chunk-VQCXPFPG.js.map
|