~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/components/prism-sas.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.sas = {
 
2
        'datalines': {
 
3
                pattern: /^\s*(?:(?:data)?lines|cards);[\s\S]+?(?:\r?\n|\r);/im,
 
4
                alias: 'string',
 
5
                inside: {
 
6
                        'keyword': {
 
7
                                pattern: /^(\s*)(?:(?:data)?lines|cards)/i,
 
8
                                lookbehind: true
 
9
                        },
 
10
                        'punctuation': /;/
 
11
                }
 
12
        },
 
13
        'comment': [
 
14
                {
 
15
                        pattern: /(^\s*|;\s*)\*.*;/m,
 
16
                        lookbehind: true
 
17
                },
 
18
                /\/\*[\s\S]+?\*\//
 
19
        ],
 
20
        'datetime': {
 
21
                // '1jan2013'd, '9:25:19pm't, '18jan2003:9:27:05am'dt
 
22
                pattern: /'[^']+'(?:dt?|t)\b/i,
 
23
                alias: 'number'
 
24
        },
 
25
        'string': /(["'])(?:\1\1|(?!\1)[\s\S])*\1/,
 
26
        'keyword': /\b(?:data|else|format|if|input|proc|run|then)\b/i,
 
27
        // Decimal (1.2e23), hexadecimal (0c1x)
 
28
        'number': /(?:\B-|\b)(?:[\da-f]+x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,
 
29
        'operator': /\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?|\b(?:eq|ne|gt|lt|ge|le|in|not)\b/i,
 
30
        'punctuation': /[$%@.(){}\[\];,\\]/
 
31
};
 
 
b'\\ No newline at end of file'