1 | Prism.languages.xojo = {
|
2 | 'comment': {
|
3 | pattern: /(?:'|\/\/|Rem\b).+/i
|
4 | },
|
5 | 'string': {
|
6 | pattern: /"(?:""|[^"])*"/,
|
7 | greedy: true
|
8 | },
|
9 | 'number': [
|
10 | /(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,
|
11 | /&[bchou][a-z\d]+/i
|
12 | ],
|
13 | 'symbol': /#(?:If|Else|ElseIf|Endif|Pragma)\b/i,
|
14 | 'keyword': /\b(?:AddHandler|App|Array|As(?:signs)?|Auto|By(?:Ref|Val)|Boolean|Break|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:erface|eger|8|16|32|64)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Single|Shared|Short|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:eger|8|16|32|64)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,
|
15 | 'operator': /<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|Xor|WeakAddressOf)\b/i,
|
16 | 'punctuation': /[.,;:()]/
|
17 | };
|