mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 19:38:20 -07:00
31 lines
730 B
JavaScript
31 lines
730 B
JavaScript
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': /[.;:?\[\](){}]/
|
|
}; |