UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

28 lines (27 loc) 1.06 kB
import { l as languages } from "../../index-DF54SWhA.js"; import { e as clikePunctuation } from "../../patterns-Jkz_nwNQ.js"; languages.nb = languages.wl = languages.mathematica = languages.wolfram = { "comment": ( // Allow one level of nesting - note: regex taken from applescipt /\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[^])*?\*\)/ ), "string": /"(?:\\.|[^\\\n"])*"/g, "keyword": /\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/, "context": { pattern: /\b\w+`+\w*/, alias: "class-name" }, "blank": { pattern: /\b\w+_\b/, alias: "regex" }, "global-variable": { pattern: /\$\w+/, alias: "variable" }, "boolean": /\b(?:False|True)\b/, "number": /(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[a-f\d])[a-f\d]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i, "operator": /[/=]\.|:>|\|?->|<-|@@?@?|\/@|=?[!=]?=|\^?:?=|\*\*?=?|\/\/?=?|[/+-]=?|<[<|=>]?|>[|=>]?|[;&|^~]/, "punctuation": clikePunctuation }; //# sourceMappingURL=wolfram.js.map