~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/components/prism-json.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.json = {
 
2
    'property': /".*?"(?=\s*:)/ig,
 
3
    'string': /"(?!:)(\\?[^"])*?"(?!:)/g,
 
4
    'number': /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/g,
 
5
    'punctuation': /[{}[\]);,]/g,
 
6
    'operator': /:/g,
 
7
    'boolean': /\b(true|false)\b/gi,
 
8
    'null': /\bnull\b/gi,
 
9
};
 
10
 
 
11
Prism.languages.jsonp = Prism.languages.json;