UNPKG

prism-react-editor

Version:

Lightweight, extensible code editor component for React apps

24 lines (23 loc) 921 B
import { l as languages } from "../../index-k28m3HFc.js"; import { c as clikePunctuation, e as clikeNumber, d as boolean, a as clikeComment } from "../../patterns-Cp3h1ylA-DIMdJT1M.js"; languages.birb = { "comment": clikeComment(), "string": { pattern: /r?(["'])(?:\\.|(?!\1)[^\\])*\1/g, greedy: true }, "class-name": /\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b|\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/, "keyword": /\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/, "boolean": boolean, "metadata": { pattern: /<\w+>/g, greedy: true, alias: "symbol" }, "function": /\b\w+(?=\()/, "number": clikeNumber, "operator": /--|\+\+|&&|\|\||(?:<<|>>|~\/|[%&|^!=<>/*+-])=?|[?:~]/, "punctuation": clikePunctuation, "variable": /\b[a-z_]\w*\b/ }; //# sourceMappingURL=birb.js.map