UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

19 lines (18 loc) 501 B
import { l as languages } from "../../index-DF54SWhA.js"; languages.ebnf = { "comment": /\(\*[^]*?\*\)/, "string": /"[^\n"]*"|'[^\n']*'/g, "special": { pattern: /\?[^\n?]*\?/g, 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