prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
24 lines (23 loc) • 912 B
JavaScript
import { l as languages } from "../../index-C1_GGQ8y.js";
import { d as clikePunctuation, e as clikeNumber, b as boolean, a as clikeComment } from "../../patterns-Cp3h1ylA.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