UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

27 lines (26 loc) 846 B
import { l as languages } from "../../index-DF54SWhA.js"; import { e as clikePunctuation, b as boolean } from "../../patterns-Jkz_nwNQ.js"; languages.rego = { "comment": /#.*/, "property": { pattern: /(^|[^\\.])(?:"(?:\\.|[^\\\n"])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/gi, lookbehind: true }, "string": { pattern: /(^|[^\\])"(?:\\.|[^\\\n"])*"|`[^`]*`/g, lookbehind: true }, "keyword": /\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/, "boolean": boolean, "function": { pattern: /\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i, inside: { "namespace": /\b\w+(?=\s*\.)/, "punctuation": /\./ } }, "number": /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, "operator": /[%&|/*+-]|[:=<>]=?|!=|\b_\b/, "punctuation": clikePunctuation }; //# sourceMappingURL=rego.js.map