Sha256: ea83eea043d6249a216e11622cee0fe66ef3865bd9fc53350961fd14b49200de

Contents?: true

Size: 730 Bytes

Versions: 10

Compression:

Stored size: 730 Bytes

Contents

Prism.languages.smalltalk = {
	'comment': /"(?:""|[^"])+"/,
	'string': /'(?:''|[^'])+'/,
	'symbol': /#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,
	'block-arguments': {
		pattern: /(\[\s*):[^\[|]*?\|/,
		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+)?/
	],
	'operator': /[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,
	'punctuation': /[.;:?\[\](){}]/
};

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
prism-rails-1.6.0.3 vendor/assets/javascripts/prism/prism-smalltalk.js
prism-rails-1.6.0.2 vendor/assets/javascripts/prism/prism-smalltalk.js
prism-rails-1.6.0.1 vendor/assets/javascripts/prism/prism-smalltalk.js
prism-rails-1.5.1.2 vendor/assets/javascripts/prism-smalltalk.js
prism-rails-1.5.1 vendor/assets/javascripts/prism-smalltalk.js
highlighting-0.1.4 vendor/assets/javascripts/prism-smalltalk.js
highlighting-0.1.3 vendor/assets/javascripts/prism-smalltalk.js
highlighting-0.1.2 vendor/assets/javascripts/prism-smalltalk.js
highlighting-0.1.1 vendor/assets/javascripts/prism-smalltalk.js
highlighting-0.1.0 vendor/assets/javascripts/prism-smalltalk.js