Blame view

bower_components/prism/components/prism-apl.js 830 Bytes
eb240478   Luigi Serra   public room cards...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  Prism.languages.apl = {
  	'comment': /(?:|#[! ]).*$/m,
  	'string': /'(?:[^'\r\n]|'')*'/,
  	'number': /¯?(?:\d*\.?\d+(?:e[+¯]?\d+)?|¯|)(?:j¯?(?:\d*\.?\d+(?:e[\+¯]?\d+)?|¯|))?/i,
  	'statement': /:[A-Z][a-z][A-Za-z]*\b/,
  	'system-function': {
  		pattern: /[A-Z]+/i,
  		alias: 'function'
  	},
  	'constant': /[⍬⌾#⎕⍞]/,
  	'function': /[-+×÷⌈⌊∣|?*⍟○!<=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
  	'monadic-operator': {
  		pattern: /[\\\/⌿⍀¨⍨⌶&]/,
  		alias: 'operator'
  	},
  	'dyadic-operator': {
  		pattern: /[.⍣⍠⍤∘⌸]/,
  		alias: 'operator'
  	},
  	'assignment': {
  		pattern: //,
  		alias: 'keyword'
  	},
  	'punctuation': /[\[;\]()◇⋄]/,
  	'dfn': {
  		pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
  		alias: 'builtin'
  	}
  };