UNPKG

prism-code-editor-lightweight

Version:

Lightweight, extensible code editor component for the web using Prism

31 lines (30 loc) 1.02 kB
import { l as languages } from "../../index-XEj74r-1.js"; import { b as boolean, a as clikeComment } from "../../patterns-Cp3h1ylA.js"; languages.dataweave = { "url": /\b[a-zA-Z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/, "property": { pattern: /(?:\b\w+#)?(?:"(?:\\.|[^\\\n"])*"|\b\w+)(?=\s*[:@])/g, greedy: true }, "string": { pattern: /(["'`])(?:\\[^]|(?!\1)[^\\])*\1/g, greedy: true }, "mime-type": /\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/, "date": { pattern: /\|[\w:+-]+\|/g, greedy: true }, "comment": clikeComment(), "regex": { pattern: /\/(?:[^\\\n/]|\\[^\n])+\//g, greedy: true }, "keyword": /\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/, "function": /\b[a-z_]\w*(?=\s*\()/i, "number": /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, "punctuation": /[()[\]{}.,:;@]/, "operator": /<<|>>|->|[~!=<>]=?|--?-?|\+\+?|\?/, "boolean": boolean }; //# sourceMappingURL=dataweave.js.map