UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

21 lines (20 loc) 532 B
import { a as languages } from "../../core-8vQkh0Rd.js"; //#region src/prism/languages/ebnf.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": /[|!=/*-]/ }; //#endregion //# sourceMappingURL=ebnf.js.map