summaryrefslogtreecommitdiffstats
path: root/public/prism/prism-xojo.js
blob: c828f6e4776c1b26511caf36c99dd9dd9d41db12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Prism.languages.xojo = {
  comment: {
    pattern: /(?:'|\/\/|Rem\b).+/i,
    greedy: true,
  },
  string: {
    pattern: /"(?:""|[^"])*"/,
    greedy: true,
  },
  number: [/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i, /&[bchou][a-z\d]+/i],
  directive: {
    pattern: /#(?:Else|ElseIf|Endif|If|Pragma)\b/i,
    alias: 'property',
  },
  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,
  operator:
    /<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,
  punctuation: /[.,;:()]/,
};
an class="w"> d = (e.languages.lilypond = { comment: /%(?:(?!\{).*|\{[\s\S]*?%\})/, 'embedded-scheme': { pattern: RegExp( '(^|[=\\s])#(?:"(?:[^"\\\\]|\\\\.)*"|[^\\s()"]*(?:[^\\s()]|<expr>))'.replace( /<expr>/g, function () { return n; } ), 'm' ), lookbehind: !0, greedy: !0, inside: { scheme: { pattern: /^(#)[\s\S]+$/, lookbehind: !0, alias: 'language-scheme', inside: { 'embedded-lilypond': { pattern: /#\{[\s\S]*?#\}/, greedy: !0, inside: { punctuation: /^#\{|#\}$/, lilypond: { pattern: /[\s\S]+/, alias: 'language-lilypond', inside: null, }, }, }, rest: e.languages.scheme, }, }, punctuation: /#/, }, }, string: { pattern: /"(?:[^"\\]|\\.)*"/, greedy: !0 }, 'class-name': { pattern: /(\\new\s+)[\w-]+/, lookbehind: !0 }, keyword: { pattern: /\\[a-z][-\w]*/i, inside: { punctuation: /^\\/ } }, operator: /[=|]|<<|>>/, punctuation: { pattern: /(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/, lookbehind: !0, }, number: /\b\d+(?:\/\d+)?\b/, }); (d['embedded-scheme'].inside.scheme.inside[ 'embedded-lilypond' ].inside.lilypond.inside = d), (e.languages.ly = d); })(Prism);