Blame view

bower_components/prism/components/prism-makefile.js 994 Bytes
73bcce88   luigser   COMPONENTS
1
2
  Prism.languages.makefile = {
  	'comment': {
eb240478   Luigi Serra   public room cards...
3
  		pattern: /(^|[^\\])#(?:\\(?:\r\n|[\s\S])|.)*/,
73bcce88   luigser   COMPONENTS
4
5
  		lookbehind: true
  	},
eb240478   Luigi Serra   public room cards...
6
  	'string': /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
73bcce88   luigser   COMPONENTS
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  
  	// Built-in target names
  	'builtin': /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,
  
  	// Targets
  	'symbol': {
  		pattern: /^[^:=\r\n]+(?=\s*:(?!=))/m,
  		inside: {
  			'variable': /\$+(?:[^(){}:#=\s]+|(?=[({]))/
  		}
  	},
  	'variable': /\$+(?:[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,
  
  	'keyword': [
  		// Directives
eb240478   Luigi Serra   public room cards...
22
  		/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,
73bcce88   luigser   COMPONENTS
23
24
25
26
27
28
29
30
31
  		// Functions
  		{
  			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])/,
  			lookbehind: true
  		}
  	],
  	'operator': /(?:::|[?:+!])?=|[|@]/,
  	'punctuation': /[:;(){}]/
  };