73bcce88
luigser
COMPONENTS
|
1
2
3
4
5
|
Prism.languages.smalltalk = {
'comment': /"(?:""|[^"])+"/,
'string': /'(?:''|[^'])+'/,
'symbol': /#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,
'block-arguments': {
|
73bcce88
luigser
COMPONENTS
|
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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+)?/
],
|