Sha256: 6e3979839d617ea5d3348da37fafe72c0053c09636a1f7d1beb277f850141b56

Contents?: true

Size: 581 Bytes

Versions: 7

Compression:

Stored size: 581 Bytes

Contents

Prism.languages.python= { 
	'comment': {
		pattern: /(^|[^\\])#.*?(\r?\n|$)/g,
		lookbehind: true
	},
	'string': /"""[\s\S]+?"""|("|')(\\?.)*?\1/g,
	'keyword' : /\b(as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|while|with|yield)\b/g,
	'boolean' : /\b(True|False)\b/g,
	'number' : /\b-?(0x)?\d*\.?[\da-f]+\b/g,
	'operator' : /[-+]{1,2}|=?<|=?>|!|={1,2}|(&){1,2}|(&){1,2}|\|?\||\?|\*|\/|~|\^|%|\b(or|and|not)\b/g,
	'ignore' : /&(lt|gt|amp);/gi,
	'punctuation' : /[{}[\];(),.:]/g
};

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyhyhy-1.0.0 lib/hyhyhy/structure/_includes/prism/components/prism-python.js
hyhyhy-0.0.9 lib/hyhyhy/structure/_includes/prism/components/prism-python.js
hyhyhy-0.0.8 lib/hyhyhy/structure/_includes/prism/components/prism-python.js
hyhyhy-0.0.7 lib/hyhyhy/structure/_includes/prism/components/prism-python.js
hyhyhy-0.0.6 lib/hyhyhy/structure/_includes/prism/components/prism-python.js
hyhyhy-0.0.5 lib/hyhyhy/structure/_includes/prism/components/prism-python.js
hyhyhy-0.0.4 lib/hyhyhy/structure/_includes/prism/components/prism-python.js