mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-08 17:18:17 +08:00
40 lines
892 B
JavaScript
40 lines
892 B
JavaScript
import {
|
|
__commonJS
|
|
} from "./chunk-2TUXWMP5.js";
|
|
|
|
// node_modules/refractor/lang/bnf.js
|
|
var require_bnf = __commonJS({
|
|
"node_modules/refractor/lang/bnf.js"(exports, module) {
|
|
module.exports = bnf;
|
|
bnf.displayName = "bnf";
|
|
bnf.aliases = ["rbnf"];
|
|
function bnf(Prism) {
|
|
Prism.languages.bnf = {
|
|
string: {
|
|
pattern: /"[^\r\n"]*"|'[^\r\n']*'/
|
|
},
|
|
definition: {
|
|
pattern: /<[^<>\r\n\t]+>(?=\s*::=)/,
|
|
alias: ["rule", "keyword"],
|
|
inside: {
|
|
punctuation: /^<|>$/
|
|
}
|
|
},
|
|
rule: {
|
|
pattern: /<[^<>\r\n\t]+>/,
|
|
inside: {
|
|
punctuation: /^<|>$/
|
|
}
|
|
},
|
|
operator: /::=|[|()[\]{}*+?]|\.{3}/
|
|
};
|
|
Prism.languages.rbnf = Prism.languages.bnf;
|
|
}
|
|
}
|
|
});
|
|
|
|
export {
|
|
require_bnf
|
|
};
|
|
//# sourceMappingURL=chunk-VA5PKY37.js.map
|