OLD | NEW |
(Empty) | |
| 1 Prism.languages.autoit = { |
| 2 "comment": [ |
| 3 /;.*/, |
| 4 { |
| 5 // The multi-line comments delimiters can actually be co
mmented out with ";" |
| 6 pattern: /(^\s*)#(?:comments-start|cs)[\s\S]*?^\s*#(?:co
mments-end|ce)/m, |
| 7 lookbehind: true |
| 8 } |
| 9 ], |
| 10 "url": { |
| 11 pattern: /(^\s*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m, |
| 12 lookbehind: true |
| 13 }, |
| 14 "string": { |
| 15 pattern: /(["'])(?:\1\1|(?!\1)[^\r\n])*\1/, |
| 16 inside: { |
| 17 "variable": /([%$@])\w+\1/ |
| 18 } |
| 19 }, |
| 20 "directive": { |
| 21 pattern: /(^\s*)#\w+/m, |
| 22 lookbehind: true, |
| 23 alias: 'keyword' |
| 24 }, |
| 25 "function": /\b\w+(?=\()/, |
| 26 // Variables and macros |
| 27 "variable": /[$@]\w+/, |
| 28 "keyword": /\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:
If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|
Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|Whil
e|With)\b/i, |
| 29 "number": /\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i, |
| 30 "boolean": /\b(?:True|False)\b/i, |
| 31 "operator": /<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Or|Not)\b/i, |
| 32 "punctuation": /[\[\]().,:]/ |
| 33 }; |
OLD | NEW |