~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/components/prism-qore.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.qore = Prism.languages.extend('clike', {
 
2
        'comment': {
 
3
                pattern: /(^|[^\\])(?:\/\*[\w\W]*?\*\/|(?:\/\/|#).*)/,
 
4
                lookbehind: true
 
5
        },
 
6
        // Overridden to allow unescaped multi-line strings
 
7
        'string': /("|')(\\(?:\r\n|[\s\S])|(?!\1)[^\\])*\1/,
 
8
        'variable': /\$(?!\d)\w+\b/,
 
9
        'keyword': /\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:int|float|number|bool|string|date|list)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,
 
10
        'number': /\b(?:0b[01]+|0x[\da-f]*\.?[\da-fp\-]+|\d*\.?\d+e?\d*[df]|\d*\.?\d+)\b/i,
 
11
        'boolean': /\b(?:true|false)\b/i,
 
12
        'operator': {
 
13
                pattern: /(^|[^\.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,
 
14
                lookbehind: true
 
15
        },
 
16
        'function': /\$?\b(?!\d)\w+(?=\()/
 
17
});
 
 
b'\\ No newline at end of file'