~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/components/prism-makefile.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.makefile = {
 
2
        'comment': {
 
3
                pattern: /(^|[^\\])#(?:\\(?:\r\n|[\s\S])|.)*/,
 
4
                lookbehind: true
 
5
        },
 
6
        'string': /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
 
7
 
 
8
        // Built-in target names
 
9
        'builtin': /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,
 
10
 
 
11
        // Targets
 
12
        'symbol': {
 
13
                pattern: /^[^:=\r\n]+(?=\s*:(?!=))/m,
 
14
                inside: {
 
15
                        'variable': /\$+(?:[^(){}:#=\s]+|(?=[({]))/
 
16
                }
 
17
        },
 
18
        'variable': /\$+(?:[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,
 
19
 
 
20
        'keyword': [
 
21
                // Directives
 
22
                /-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,
 
23
                // Functions
 
24
                {
 
25
                        pattern: /(\()(?:addsuffix|abspath|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:s|list)?)(?=[ \t])/,
 
26
                        lookbehind: true
 
27
                }
 
28
        ],
 
29
        'operator': /(?:::|[?:+!])?=|[|@]/,
 
30
        'punctuation': /[:;(){}]/
 
31
};
 
 
b'\\ No newline at end of file'