UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

33 lines (32 loc) 885 B
import { l as languages } from "../../index-DF54SWhA.js"; import { b as boolean } from "../../patterns-Jkz_nwNQ.js"; languages.smalltalk = { "comment": /"(?:""|[^"])*"/g, "char": /\$./g, "string": /'(?:''|[^'])*'/g, "symbol": /#[a-z\d]+|#(?:-|([+/\\*~<>=@%|&?!])\1?)|#(?=\()/i, "block-arguments": { pattern: /(\[\s*):[^\[|]*\|/, lookbehind: true, inside: { "variable": /:[a-z\d]+/i, "punctuation": /\|/ } }, "temporary-variables": { pattern: /\|[^|]+\|/, inside: { "variable": /[a-z\d]+/i, "punctuation": /\|/ } }, "keyword": /\b(?:new|nil|self|super)\b/, "boolean": boolean, "number": [ /\d+r-?[A-Z\d]+(?:\.[A-Z\d]+)?(?:e-?\d+)?/, /\b\d+(?:\.\d+)?(?:e-?\d+)?/ ], "operator": /[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[,@&|^!*+-]/, "punctuation": /[()[\]{}.:;?]/ }; //# sourceMappingURL=smalltalk.js.map