4
typeof self !== 'undefined' && !self.Prism ||
5
typeof global !== 'undefined' && !global.Prism
15
before: 'punctuation',
17
root: Prism.languages.markup && Prism.languages.markup['tag'].inside['attr-value']
22
before: 'punctuation',
24
root: Prism.languages.sass && Prism.languages.sass['variable-line']
29
root: Prism.languages.sass && Prism.languages.sass['property-line']
38
root: Prism.languages.stylus && Prism.languages.stylus['property-declaration'].inside
44
root: Prism.languages.stylus && Prism.languages.stylus['variable-declaration'].inside
49
Prism.hooks.add('before-highlight', function (env) {
50
if (env.language && languages[env.language] && !languages[env.language].initialized) {
51
var lang = languages[env.language];
52
if (Prism.util.type(lang) !== 'Array') {
55
lang.forEach(function(lang) {
56
var before, inside, root, skip;
59
inside = env.language;
62
before = lang.before || 'important';
63
inside = lang.inside || lang.lang;
64
root = lang.root || Prism.languages;
69
if (!skip && Prism.languages[lang]) {
70
Prism.languages.insertBefore(inside, before, {
71
'color': /\B#(?:[0-9a-f]{3}){1,2}\b|\b(?:rgb|hsl)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:rgb|hsl)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B|\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGray|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGray|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGray|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gray|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGray|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGray|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGray|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i
73
env.grammar = Prism.languages[lang];
75
languages[env.language] = {initialized: true};
81
if (Prism.plugins.Previewer) {
82
new Prism.plugins.Previewer('color', function(value) {
83
this.style.backgroundColor = '';
84
this.style.backgroundColor = value;
85
return !!this.style.backgroundColor;
b'\\ No newline at end of file'