source: node_modules/refractor/lang/xojo.js

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.3 KB
RevLine 
[d24f17c]1'use strict'
2
3module.exports = xojo
4xojo.displayName = 'xojo'
5xojo.aliases = []
6function xojo(Prism) {
7 Prism.languages.xojo = {
8 comment: {
9 pattern: /(?:'|\/\/|Rem\b).+/i,
10 greedy: true
11 },
12 string: {
13 pattern: /"(?:""|[^"])*"/,
14 greedy: true
15 },
16 number: [/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i, /&[bchou][a-z\d]+/i],
17 directive: {
18 pattern: /#(?:Else|ElseIf|Endif|If|Pragma)\b/i,
19 alias: 'property'
20 },
21 keyword:
22 /\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,
23 operator:
24 /<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,
25 punctuation: /[.,;:()]/
26 }
27}
Note: See TracBrowser for help on using the repository browser.