UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

34 lines (33 loc) 1.26 kB
import { l as languages } from "../../index-DF54SWhA.js"; import { e as clikePunctuation, b as boolean, d as dotPunctuation } from "../../patterns-Jkz_nwNQ.js"; languages.squirrel = { "comment": /\/\*[^]*?(?:\*\/|$)|\/\/.*|#.*/g, "char": { pattern: /(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][a-fA-F\d]{0,8}|[^]))'/g, lookbehind: true }, "string": { pattern: /(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:\\.|[^\\\n"])*")/g, lookbehind: true }, "class-name": { pattern: /(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/, lookbehind: true, inside: dotPunctuation }, "keyword": /\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/, "boolean": boolean, "function": /\b\w+(?=\()/, "number": /\b(?:0x[a-fA-F\d]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/, "attribute-punctuation": { pattern: /<\/|\/>/, alias: "important" }, "lambda": { pattern: /@(?=\()/, alias: "operator" }, "operator": /--|\+\+|<=>|<[-<]|>>>?|&&?|\|\|?|[%!=<>/*+-]=?|[~^]|::?/, "punctuation": clikePunctuation }; //# sourceMappingURL=squirrel.js.map