UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

20 lines (19 loc) 389 B
import { l as n } from "../prismCore-5c7f03d0.js"; n.bnf = { string: /"[^\r\n"]*"|'[^\r\n']*'/, definition: { pattern: /<[^<>\r\n\t]+>(?=\s*::=)/, alias: ["rule", "keyword"], inside: { punctuation: /^<|>$/ } }, rule: { pattern: /<[^<>\r\n\t]+>/, inside: { punctuation: /^<|>$/ } }, operator: /::=|[|()[\]{}*+?]|\.{3}/ }; n.rbnf = n.bnf;