UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

34 lines (33 loc) 1.19 kB
import { a as languages } from "../../core-8vQkh0Rd.js"; import { n as clikeComment } from "../../patterns-C0vJBvXO.js"; //#region src/prism/languages/avro-idl.js languages.avdl = languages["avro-idl"] = { "comment": clikeComment, "string": { pattern: /(^|[^\\])"(?:\\.|[^\\\n"])*"/g, lookbehind: true }, "annotation": { pattern: /@(?:[$\w.-]|`[^\n`]+`)+/g, alias: "function" }, "function-identifier": { pattern: /`[^\n`]+`(?=\s*\()/g, alias: "function" }, "identifier": /`[^\n`]+`/g, "class-name": { pattern: /(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/g, lookbehind: true }, "keyword": /\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|true|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|union|uuid|void)\b/, "function": /\b[a-z_]\w*(?=\s*\()/i, "number": [{ pattern: /(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f\d]+(?:\.[a-f\d]*)?|\.[a-f\d]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i, lookbehind: true }, /-?\b(?:Infinity|NaN)\b/], "operator": /=/, "punctuation": /[()[\]{}<>.,:;-]/ }; //#endregion //# sourceMappingURL=avro-idl.js.map