Sha256: f3e95e182011fbf49af00342db5fa7d4d3888fcdaa5c7b5e0bea66c6227e24be

Contents?: true

Size: 736 Bytes

Versions: 7

Compression:

Stored size: 736 Bytes

Contents

Prism.languages.go = Prism.languages.extend('clike', {
	'keyword': /\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/g,
	'builtin': /\b(bool|byte|complex(64|128)|error|float(32|64)|rune|string|u?int(8|16|32|64|)|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(ln)?|real|recover)\b/g,
	'boolean': /\b(_|iota|nil|true|false)\b/g,
	'operator': /([(){}\[\]]|[*\/%^!]=?|\+[=+]?|-[>=-]?|\|[=|]?|>[=>]?|<(<|[=-])?|==?|&(&|=|^=?)?|\.(\.\.)?|[,;]|:=?)/g,
	'number': /\b(-?(0x[a-f\d]+|(\d+\.?\d*|\.\d+)(e[-+]?\d+)?)i?)\b/ig,
	'string': /("|'|`)(\\?.|\r|\n)*?\1/g
});
delete Prism.languages.go['class-name'];

Version data entries

7 entries across 7 versions & 1 rubygems

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