prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
31 lines (30 loc) • 1.06 kB
JavaScript
import { a as languages } from "../../core-8vQkh0Rd.js";
//#region src/prism/languages/autoit.js
languages.autoit = {
"comment": {
pattern: /;.*|(^[ ]*)#(?:comments-start|cs)[^]*?^[ ]*#(?:ce|comments-end)/m,
lookbehind: true
},
"url": {
pattern: /(^[ ]*#include\s+)(?:<[^\n>]+>|"[^\n"]+")/m,
lookbehind: true
},
"string": {
pattern: /"(?:""|[^\n"])*"|'(?:''|[^\n'])*'/g,
inside: { "variable": /([%$@])\w+\1/ }
},
"directive": {
pattern: /(^[ ]*)#[\w-]+/m,
lookbehind: true,
alias: "keyword"
},
"function": /\b\w+(?=\()/,
"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": /[()[\].,:]/
};
//#endregion
//# sourceMappingURL=autoit.js.map