73bcce88
luigser
COMPONENTS
|
1
|
Prism.languages.scheme = {
|
eb240478
Luigi Serra
public room cards...
|
2
3
4
5
|
'comment' : /;.*/,
'string' : /"(?:[^"\\\r\n]|\\.)*?"|'[^('\s]*/,
'keyword' : {
pattern : /(\()(?:define(?:-syntax|-library|-values)?|(?:case-)?lambda|let(?:\*|rec)?(?:-values)?|else|if|cond|begin|delay(?:-force)?|parameterize|guard|set!|(?:quasi-)?quote|syntax-rules)/,
|
73bcce88
luigser
COMPONENTS
|
6
|
lookbehind : true
|
eb240478
Luigi Serra
public room cards...
|
7
8
9
|
},
'builtin' : {
pattern : /(\()(?:(?:cons|car|cdr|list|call-with-current-continuation|call\/cc|append|abs|apply|eval)\b|null\?|pair\?|boolean\?|eof-object\?|char\?|procedure\?|number\?|port\?|string\?|vector\?|symbol\?|bytevector\?)/,
|
73bcce88
luigser
COMPONENTS
|
10
|
lookbehind : true
|
eb240478
Luigi Serra
public room cards...
|
11
12
13
14
15
16
17
18
19
20
21
22
|
},
'number' : {
pattern: /(\s|\))[-+]?[0-9]*\.?[0-9]+(?:\s*[-+]\s*[0-9]*\.?[0-9]+i)?\b/,
lookbehind: true
},
'boolean' : /#[tf]/,
'operator': {
pattern: /(\()(?:[-+*%\/]|[<>]=?|=>?)/,
lookbehind: true
},
'function' : {
pattern : /(\()[^\s()]*(?=\s)/,
|
73bcce88
luigser
COMPONENTS
|
23
|
lookbehind : true
|
eb240478
Luigi Serra
public room cards...
|
24
25
26
|
},
'punctuation' : /[()]/
};
|