UNPKG

prism-react-editor

Version:

Lightweight, extensible code editor component for React apps

34 lines (33 loc) 1.18 kB
import { l as languages } from "../../index-k28m3HFc.js"; languages.autoit = { "comment": { // The multi-line comments delimiters can actually be commented out with ";" pattern: /;.*|(^[ ]*)#(?:comments-start|cs)[^]*?^[ ]*#(?:ce|comments-end)/m, lookbehind: true }, "url": { pattern: /(^[ ]*#include\s+)(?:<[^\n>]+>|"[^\n"]+")/m, lookbehind: true }, "string": { pattern: /"(?:""|[^\n"])*"|'(?:''|[^\n'])*'/g, greedy: true, inside: { "variable": /([%$@])\w+\1/ } }, "directive": { pattern: /(^[ ]*)#[\w-]+/m, lookbehind: true, alias: "keyword" }, "function": /\b\w+(?=\()/, // Variables and macros "variable": /[$@]\w+/, "keyword": /\b(?:case|const|continue(?:case|loop)|default|dim|do|elseif|else|end(?:func|if|select|switch|with)|enum|exitloop|exit|for|func|global|if|in|local|next|null|redim|select|static|step|switch|then|to|until|volatile|wend|while|with)\b/i, "number": /\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i, "boolean": /\b(?:false|true)\b/i, "operator": /<[=>]?|[=>&/*+-]=?|[?^]|\b(?:and|not|or)\b/i, "punctuation": /[()[\].,:]/ }; //# sourceMappingURL=autoit.js.map