~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/components/prism-matlab.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.matlab = {
 
2
        // We put string before comment, because of printf() patterns that contain "%"
 
3
        'string': /\B'(?:''|[^'\n])*'/,
 
4
        'comment': [
 
5
                /%\{[\s\S]*?\}%/,
 
6
                /%.+/
 
7
        ],
 
8
        // FIXME We could handle imaginary numbers as a whole
 
9
        'number': /\b-?(?:\d*\.?\d+(?:[eE][+-]?\d+)?(?:[ij])?|[ij])\b/,
 
10
        'keyword': /\b(?:break|case|catch|continue|else|elseif|end|for|function|if|inf|NaN|otherwise|parfor|pause|pi|return|switch|try|while)\b/,
 
11
        'function': /(?!\d)\w+(?=\s*\()/,
 
12
        'operator': /\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,
 
13
        'punctuation': /\.{3}|[.,;\[\](){}!]/
 
14
};
 
 
b'\\ No newline at end of file'