prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
19 lines (18 loc) • 867 B
JavaScript
import { l as languages } from "../../index-DF54SWhA.js";
import { b as boolean, a as clikeComment } from "../../patterns-Jkz_nwNQ.js";
languages.dataweave = {
"url": /\b[a-zA-Z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,
"property": /(?:\b\w+#)?(?:"(?:\\.|[^\\\n"])*"|\b\w+)(?=\s*[:@])/g,
"string": /(["'`])(?:\\[^]|(?!\1)[^\\])*\1/g,
"mime-type": /\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,
"date": /\|[\w:+-]+\|/g,
"comment": clikeComment,
"regex": /\/(?:[^\\\n/]|\\[^\n])+\//g,
"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