Blame view

bower_components/prism/components/prism-smalltalk.js 730 Bytes
73bcce88   luigser   COMPONENTS
1
2
3
4
5
  Prism.languages.smalltalk = {
  	'comment': /"(?:""|[^"])+"/,
  	'string': /'(?:''|[^'])+'/,
  	'symbol': /#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,
  	'block-arguments': {
eb240478   Luigi Serra   public room cards...
6
  		pattern: /(\[\s*):[^\[|]*?\|/,
73bcce88   luigser   COMPONENTS
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  		lookbehind: true,
  		inside: {
  			'variable': /:[\da-z]+/i,
  			'punctuation': /\|/
  		}
  	},
  	'temporary-variables': {
  		pattern: /\|[^|]+\|/,
  		inside: {
  			'variable': /[\da-z]+/i,
  			'punctuation': /\|/
  		}
  	},
  	'keyword': /\b(?:nil|true|false|self|super|new)\b/,
  	'character': {
  		pattern: /\$./,
  		alias: 'string'
  	},
  	'number': [
  		/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,
  		/(?:\B-|\b)\d+(?:\.\d+)?(?:e-?\d+)?/
  	],
eb240478   Luigi Serra   public room cards...
29
  	'operator': /[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,
73bcce88   luigser   COMPONENTS
30
31
  	'punctuation': /[.;:?\[\](){}]/
  };