mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
19 lines
748 B
JavaScript
19 lines
748 B
JavaScript
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/,
|
|
'string': [
|
|
{
|
|
pattern: /"""[\W\w]*?"""/,
|
|
greedy: true
|
|
},
|
|
{
|
|
pattern: /("|')(?:\\\\|\\?[^\\\r\n])*?\1/,
|
|
greedy: true
|
|
},
|
|
],
|
|
'builtin': /\b(?:String|Int|Long|Short|Byte|Boolean|Double|Float|Char|Any|AnyRef|AnyVal|Unit|Nothing)\b/,
|
|
'number': /\b(?:0x[\da-f]*\.?[\da-f]+|\d*\.?\d+e?\d*[dfl]?)\b/i,
|
|
'symbol': /'[^\d\s\\]\w*/
|
|
});
|
|
delete Prism.languages.scala['class-name'];
|
|
delete Prism.languages.scala['function'];
|