Merge branch '5.2' into 5.3
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / js / 3rdParty / prism / components / prism-apl.js
1 define(["prism/prism"], function () {
2 Prism.languages.apl = {
3 'comment': /(?:⍝|#[! ]).*$/m,
4 'string': {
5 pattern: /'(?:[^'\r\n]|'')*'/,
6 greedy: true
7 },
8 'number': /¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:\d*\.?\d+(?:e[+¯]?\d+)?|¯|∞))?/i,
9 'statement': /:[A-Z][a-z][A-Za-z]*\b/,
10 'system-function': {
11 pattern: /⎕[A-Z]+/i,
12 alias: 'function'
13 },
14 'constant': /[⍬⌾#⎕⍞]/,
15 'function': /[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
16 'monadic-operator': {
17 pattern: /[\\\/⌿⍀¨⍨⌶&∥]/,
18 alias: 'operator'
19 },
20 'dyadic-operator': {
21 pattern: /[.⍣⍠⍤∘⌸@⌺⍥]/,
22 alias: 'operator'
23 },
24 'assignment': {
25 pattern: /←/,
26 alias: 'keyword'
27 },
28 'punctuation': /[\[;\]()◇⋄]/,
29 'dfn': {
30 pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
31 alias: 'builtin'
32 }
33 };
34
35 return Prism; })