Sha256: 9b1837b39c0e8ca59305b377fb133f8e22f479ccf08dccf9fc87e1efc6ef0c06

Contents?: true

Size: 994 Bytes

Versions: 10

Compression:

Stored size: 994 Bytes

Contents

Prism.languages.makefile = {
	'comment': {
		pattern: /(^|[^\\])#(?:\\(?:\r\n|[\s\S])|.)*/,
		lookbehind: true
	},
	'string': /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,

	// Built-in target names
	'builtin': /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,

	// Targets
	'symbol': {
		pattern: /^[^:=\r\n]+(?=\s*:(?!=))/m,
		inside: {
			'variable': /\$+(?:[^(){}:#=\s]+|(?=[({]))/
		}
	},
	'variable': /\$+(?:[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,

	'keyword': [
		// Directives
		/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,
		// 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': /[:;(){}]/
};

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
prism-rails-1.6.0.3 vendor/assets/javascripts/prism/prism-makefile.js
prism-rails-1.6.0.2 vendor/assets/javascripts/prism/prism-makefile.js
prism-rails-1.6.0.1 vendor/assets/javascripts/prism/prism-makefile.js
prism-rails-1.5.1.2 vendor/assets/javascripts/prism-makefile.js
prism-rails-1.5.1 vendor/assets/javascripts/prism-makefile.js
highlighting-0.1.4 vendor/assets/javascripts/prism-makefile.js
highlighting-0.1.3 vendor/assets/javascripts/prism-makefile.js
highlighting-0.1.2 vendor/assets/javascripts/prism-makefile.js
highlighting-0.1.1 vendor/assets/javascripts/prism-makefile.js
highlighting-0.1.0 vendor/assets/javascripts/prism-makefile.js