~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/components/prism-scheme.js

  • Committer: Didier Roche
  • Date: 2016-05-10 23:09:11 UTC
  • Revision ID: didier.roche@canonical.com-20160510230911-c7xr490zrj3yrzxd
New version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Prism.languages.scheme = {
 
2
        'comment' : /;.*/,
 
3
        'string' :  /"(?:[^"\\\r\n]|\\.)*?"|'[^('\s]*/,
 
4
        'keyword' : {
 
5
                pattern : /(\()(?:define(?:-syntax|-library|-values)?|(?:case-)?lambda|let(?:\*|rec)?(?:-values)?|else|if|cond|begin|delay(?:-force)?|parameterize|guard|set!|(?:quasi-)?quote|syntax-rules)/,
 
6
                lookbehind : true
 
7
        },
 
8
        'builtin' : {
 
9
                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\?)/,
 
10
                lookbehind : true
 
11
        },
 
12
        'number' : {
 
13
                pattern: /(\s|\))[-+]?[0-9]*\.?[0-9]+(?:\s*[-+]\s*[0-9]*\.?[0-9]+i)?\b/,
 
14
                lookbehind: true
 
15
        },
 
16
        'boolean' : /#[tf]/,
 
17
        'operator': {
 
18
                pattern: /(\()(?:[-+*%\/]|[<>]=?|=>?)/,
 
19
                lookbehind: true
 
20
        },
 
21
        'function' : {
 
22
                pattern : /(\()[^\s()]*(?=\s)/,
 
23
                lookbehind : true
 
24
        },
 
25
        'punctuation' : /[()]/
 
26
};
 
 
b'\\ No newline at end of file'