main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | Prism.languages.xojo = {
|
---|
2 | 'comment': {
|
---|
3 | pattern: /(?:'|\/\/|Rem\b).+/i,
|
---|
4 | greedy: true
|
---|
5 | },
|
---|
6 | 'string': {
|
---|
7 | pattern: /"(?:""|[^"])*"/,
|
---|
8 | greedy: true
|
---|
9 | },
|
---|
10 | 'number': [
|
---|
11 | /(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,
|
---|
12 | /&[bchou][a-z\d]+/i
|
---|
13 | ],
|
---|
14 | 'directive': {
|
---|
15 | pattern: /#(?:Else|ElseIf|Endif|If|Pragma)\b/i,
|
---|
16 | alias: 'property'
|
---|
17 | },
|
---|
18 | 'keyword': /\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|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(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,
|
---|
19 | 'operator': /<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,
|
---|
20 | 'punctuation': /[.,;:()]/
|
---|
21 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.