Sha256: 2555f1dae2e5006d6560ea44e884e30b9af102787607e8da78afe06f2710dda2

Contents?: true

Size: 636 Bytes

Versions: 7

Compression:

Stored size: 636 Bytes

Contents

Prism.languages.scala = Prism.languages.extend('java', {
	'keyword': /(<-|=>)|\b(abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/g,
	'builtin': /\b(String|Int|Long|Short|Byte|Boolean|Double|Float|Char|Any|AnyRef|AnyVal|Unit|Nothing)\b/g,
	'number': /\b0x[\da-f]*\.?[\da-f\-]+\b|\b\d*\.?\d+[e]?[\d]*[dfl]?\b/gi,
	'symbol': /'([^\d\s]\w*)/g,
	'string': /(""")[\W\w]*?\1|("|\/)[\W\w]*?\2|('.')/g
});
delete Prism.languages.scala['class-name','function'];

Version data entries

7 entries across 7 versions & 1 rubygems

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