UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

39 lines (38 loc) 1.25 kB
import { l as languages } from "../../index-C1_GGQ8y.js"; import { d as clikePunctuation, e as clikeNumber, b as boolean, c as clikeString } from "../../patterns-Cp3h1ylA.js"; languages["firestore-security-rules"] = { "comment": /\/\/.*/, "string": clikeString(), "path": { pattern: /(^|[\s(),])(?:\/(?:[\w\xa0-\uffff]+|\{[\w\xa0-\uffff]+(?:=\*\*)?\}|\$\([\w\xa0-\uffff.]+\)))+/g, lookbehind: true, greedy: true, inside: { "variable": { pattern: /\{[\w\xa0-\uffff]+(?:=\*\*)?\}|\$\([\w\xa0-\uffff.]+\)/, inside: { "operator": /=/, "keyword": /\*\*/, "punctuation": /[(){}.$]/ } }, "punctuation": /\// } }, "method": { // to make the pattern shorter, the actual method names are omitted pattern: /(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/, lookbehind: true, alias: "builtin", inside: { "punctuation": /,/ } }, "keyword": /\b(?:allow|function|if|match|null|return|rules_version|service)\b/, "boolean": boolean, "function": /\b\w+(?=\()/, "number": clikeNumber, "operator": /&&|\|\||[!=<>]=?|[%/*+-]|\bi[ns]\b/, "punctuation": clikePunctuation }; //# sourceMappingURL=firestore-security-rules.js.map