UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

41 lines (40 loc) 1.33 kB
import { l as languages } from "../../index-bkac8M6P.js"; import { b as boolean, d as clikePunctuation } from "../../patterns-BwNIoKDQ.js"; languages.squirrel = { "comment": { pattern: /\/\*[^]*?(?:\*\/|$)|\/\/.*|#.*/g, greedy: true }, "char": { pattern: /(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][a-fA-F\d]{0,8}|[^]))'/g, lookbehind: true, greedy: true }, "string": { pattern: /(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:\\.|[^\\\n"])*")/g, lookbehind: true, greedy: true }, "class-name": { pattern: /(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/, lookbehind: true, inside: { "punctuation": /\./ } }, "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