mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-08 18:28:17 +08:00
40 lines
968 B
JavaScript
40 lines
968 B
JavaScript
|
import {
|
||
|
__commonJS
|
||
|
} from "./chunk-2TUXWMP5.js";
|
||
|
|
||
|
// node_modules/refractor/lang/ebnf.js
|
||
|
var require_ebnf = __commonJS({
|
||
|
"node_modules/refractor/lang/ebnf.js"(exports, module) {
|
||
|
module.exports = ebnf;
|
||
|
ebnf.displayName = "ebnf";
|
||
|
ebnf.aliases = [];
|
||
|
function ebnf(Prism) {
|
||
|
Prism.languages.ebnf = {
|
||
|
comment: /\(\*[\s\S]*?\*\)/,
|
||
|
string: {
|
||
|
pattern: /"[^"\r\n]*"|'[^'\r\n]*'/,
|
||
|
greedy: true
|
||
|
},
|
||
|
special: {
|
||
|
pattern: /\?[^?\r\n]*\?/,
|
||
|
greedy: true,
|
||
|
alias: "class-name"
|
||
|
},
|
||
|
definition: {
|
||
|
pattern: /^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,
|
||
|
lookbehind: true,
|
||
|
alias: ["rule", "keyword"]
|
||
|
},
|
||
|
rule: /\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,
|
||
|
punctuation: /\([:/]|[:/]\)|[.,;()[\]{}]/,
|
||
|
operator: /[-=|*/!]/
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
export {
|
||
|
require_ebnf
|
||
|
};
|
||
|
//# sourceMappingURL=chunk-HIXF7L52.js.map
|