~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/components/prism-actionscript.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.actionscript = Prism.languages.extend('javascript',  {
 
2
        'keyword': /\b(?:as|break|case|catch|class|const|default|delete|do|else|extends|finally|for|function|if|implements|import|in|instanceof|interface|internal|is|native|new|null|package|private|protected|public|return|super|switch|this|throw|try|typeof|use|var|void|while|with|dynamic|each|final|get|include|namespace|native|override|set|static)\b/,
 
3
        'operator': /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/
 
4
});
 
5
Prism.languages.actionscript['class-name'].alias = 'function';
 
6
 
 
7
if (Prism.languages.markup) {
 
8
        Prism.languages.insertBefore('actionscript', 'string', {
 
9
                'xml': {
 
10
                        pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\\1|\\?(?!\1)[\w\W])*\2)*\s*\/?>/,
 
11
                        lookbehind: true,
 
12
                        inside: {
 
13
                                rest: Prism.languages.markup
 
14
                        }
 
15
                }
 
16
        });
 
17
}
 
 
b'\\ No newline at end of file'