prism-react-editor
Version:
Lightweight, extensible code editor component for React apps
23 lines (22 loc) • 556 B
JavaScript
import { l as languages } from "../../index-k28m3HFc.js";
languages.ebnf = {
"comment": /\(\*[^]*?\*\)/,
"string": {
pattern: /"[^\n"]*"|'[^\n']*'/g,
greedy: true
},
"special": {
pattern: /\?[^\n?]*\?/g,
greedy: true,
alias: "class-name"
},
"definition": {
pattern: /^([ ]*)[a-z]\w*(?:[ ]+[a-z]\w*)*(?=\s*=)/im,
lookbehind: true,
alias: "rule keyword"
},
"rule": /\b[a-z]\w*(?:[ ]+[a-z]\w*)*\b/i,
"punctuation": /\([:/]|[:/]\)|[()[\]{}.,;]/,
"operator": /[|!=/*-]/
};
//# sourceMappingURL=ebnf.js.map