UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

29 lines (28 loc) 933 B
import { l as languages } from "../../index-bkac8M6P.js"; import { i as insertBefore, e as extend } from "../../language-DPYOfXzt.js"; import "./clike.js"; insertBefore( languages.birb = extend("clike", { "string": { pattern: /r?(["'])(?:\\.|(?!\1)[^\\])*\1/g, greedy: true }, "class-name": [ /\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/, // matches variable and function return types (parameters as well). /\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/, "operator": /--|\+\+|&&|\|\||(?:<<|>>|~\/|[%&|^!=<>/*+-])=?|[?:~]/, "variable": /\b[a-z_]\w*\b/ }), "function", { "metadata": { pattern: /<\w+>/g, greedy: true, alias: "symbol" } } ); //# sourceMappingURL=birb.js.map