| 1 |
define(["../../_base", "./_html"], function(dh){ |
| 2 |
|
| 3 |
var dhl = dh.languages; |
| 4 |
dhl.css = { |
| 5 |
defaultMode: { |
| 6 |
lexems: ["\\b[a-zA-Z0-9]+\\b", "\\b@media\b"], |
| 7 |
keywords: { |
| 8 |
"keyword": { |
| 9 |
"@media": 1 |
| 10 |
}, |
| 11 |
"name tag": dhl.pygments._html.tags |
| 12 |
}, |
| 13 |
contains: [ |
| 14 |
"comment", |
| 15 |
"string single", "string double", |
| 16 |
"punctuation", |
| 17 |
"name decorator", "name class", "name function", |
| 18 |
"_content" |
| 19 |
] |
| 20 |
}, |
| 21 |
modes: [ |
| 22 |
|
| 23 |
{ |
| 24 |
className: "comment", |
| 25 |
begin: "/\\*", end: "\\*/", |
| 26 |
relevance: 0 |
| 27 |
}, |
| 28 |
{ |
| 29 |
className: "comment preproc", |
| 30 |
begin: "@[a-z][a-zA-Z]*", end: "^" |
| 31 |
}, |
| 32 |
{ |
| 33 |
className: "comment preproc", |
| 34 |
begin: "\\!important\\b", end: "^" |
| 35 |
}, |
| 36 |
|
| 37 |
|
| 38 |
{ |
| 39 |
className: "number", |
| 40 |
begin: "\\#[a-fA-F0-9]{3}\\b", end: "^", |
| 41 |
relevance: 0 |
| 42 |
}, |
| 43 |
{ |
| 44 |
className: "number", |
| 45 |
begin: "\\#[a-fA-F0-9]{6}\\b", end: "^", |
| 46 |
relevance: 0 |
| 47 |
}, |
| 48 |
{ |
| 49 |
className: "number", |
| 50 |
begin: "[\\.\\-]?[0-9]*[\\.]?[0-9]+(em|px|\\%|pt|pc|in|mm|cm|ex)", end: "^", |
| 51 |
relevance: 0 |
| 52 |
}, |
| 53 |
{ |
| 54 |
className: "number", |
| 55 |
begin: "\\-?[0-9]+", end: "^", |
| 56 |
relevance: 0 |
| 57 |
}, |
| 58 |
|
| 59 |
|
| 60 |
{ |
| 61 |
className: "string single", |
| 62 |
begin: "'", end: "'", |
| 63 |
illegal: "\\n", |
| 64 |
relevance: 0 |
| 65 |
}, |
| 66 |
{ |
| 67 |
className: "string double", |
| 68 |
begin: '"', |
| 69 |
end: '"', |
| 70 |
illegal: "\\n", |
| 71 |
relevance: 0 |
| 72 |
}, |
| 73 |
|
| 74 |
|
| 75 |
{ |
| 76 |
className: "operator", |
| 77 |
begin: "[~\\^\\*!%&\\[\\]\\(\\)<>\\|+=@:;,./?-]", end: "^", |
| 78 |
relevance: 0 |
| 79 |
}, |
| 80 |
|
| 81 |
|
| 82 |
{ |
| 83 |
className: "punctuation", |
| 84 |
begin: "[\\[\\]();]+", end: "^", |
| 85 |
relevance: 0 |
| 86 |
}, |
| 87 |
|
| 88 |
|
| 89 |
{ |
| 90 |
className: "name decorator", |
| 91 |
begin: "\\:[a-zA-Z0-9_\\-]+\\b", end: "^" |
| 92 |
}, |
| 93 |
{ |
| 94 |
className: "name class", |
| 95 |
begin: "\\.[a-zA-Z0-9_\\-]+\\b", end: "^" |
| 96 |
}, |
| 97 |
{ |
| 98 |
className: "name function", |
| 99 |
begin: "\\#[a-zA-Z0-9_\\-]+\\b", end: "^" |
| 100 |
}, |
| 101 |
{ |
| 102 |
className: "_content", |
| 103 |
begin: "\\{", end: "\\}", |
| 104 |
lexems: ["\\b[a-zA-Z\\-]+\\b"], |
| 105 |
keywords: { |
| 106 |
"keyword": { |
| 107 |
"azimuth": 1, "background-attachment": 1, "background-color": 1, |
| 108 |
"background-image": 1, "background-position": 1, "background-repeat": 1, |
| 109 |
"background": 1, "border-bottom-color": 1, "border-bottom-style": 1, |
| 110 |
"border-bottom-width": 1, "border-left-color": 1, "border-left-style": 1, |
| 111 |
"border-left-width": 1, "border-right": 1, "border-right-color": 1, |
| 112 |
"border-right-style": 1, "border-right-width": 1, "border-top-color": 1, |
| 113 |
"border-top-style": 1, "border-top-width": 1, "border-bottom": 1, |
| 114 |
"border-collapse": 1, "border-left": 1, "border-width": 1, "border-color": 1, |
| 115 |
"border-spacing": 1, "border-style": 1, "border-top": 1, "border": 1, "caption-side": 1, |
| 116 |
"clear": 1, "clip": 1, "color": 1, "content": 1, "counter-increment": 1, "counter-reset": 1, |
| 117 |
"cue-after": 1, "cue-before": 1, "cue": 1, "cursor": 1, "direction": 1, "display": 1, |
| 118 |
"elevation": 1, "empty-cells": 1, "float": 1, "font-family": 1, "font-size": 1, |
| 119 |
"font-size-adjust": 1, "font-stretch": 1, "font-style": 1, "font-variant": 1, |
| 120 |
"font-weight": 1, "font": 1, "height": 1, "letter-spacing": 1, "line-height": 1, |
| 121 |
"list-style-type": 1, "list-style-image": 1, "list-style-position": 1, |
| 122 |
"list-style": 1, "margin-bottom": 1, "margin-left": 1, "margin-right": 1, |
| 123 |
"margin-top": 1, "margin": 1, "marker-offset": 1, "marks": 1, "max-height": 1, "max-width": 1, |
| 124 |
"min-height": 1, "min-width": 1, "opacity": 1, "orphans": 1, "outline": 1, "outline-color": 1, |
| 125 |
"outline-style": 1, "outline-width": 1, "overflow": 1, "padding-bottom": 1, |
| 126 |
"padding-left": 1, "padding-right": 1, "padding-top": 1, "padding": 1, "page": 1, |
| 127 |
"page-break-after": 1, "page-break-before": 1, "page-break-inside": 1, |
| 128 |
"pause-after": 1, "pause-before": 1, "pause": 1, "pitch": 1, "pitch-range": 1, |
| 129 |
"play-during": 1, "position": 1, "quotes": 1, "richness": 1, "right": 1, "size": 1, |
| 130 |
"speak-header": 1, "speak-numeral": 1, "speak-punctuation": 1, "speak": 1, |
| 131 |
"speech-rate": 1, "stress": 1, "table-layout": 1, "text-align": 1, "text-decoration": 1, |
| 132 |
"text-indent": 1, "text-shadow": 1, "text-transform": 1, "top": 1, "unicode-bidi": 1, |
| 133 |
"vertical-align": 1, "visibility": 1, "voice-family": 1, "volume": 1, "white-space": 1, |
| 134 |
"widows": 1, "width": 1, "word-spacing": 1, "z-index": 1, "bottom": 1, "left": 1, |
| 135 |
"above": 1, "absolute": 1, "always": 1, "armenian": 1, "aural": 1, "auto": 1, "avoid": 1, "baseline": 1, |
| 136 |
"behind": 1, "below": 1, "bidi-override": 1, "blink": 1, "block": 1, "bold": 1, "bolder": 1, "both": 1, |
| 137 |
"capitalize": 1, "center-left": 1, "center-right": 1, "center": 1, "circle": 1, |
| 138 |
"cjk-ideographic": 1, "close-quote": 1, "collapse": 1, "condensed": 1, "continuous": 1, |
| 139 |
"crop": 1, "crosshair": 1, "cross": 1, "cursive": 1, "dashed": 1, "decimal-leading-zero": 1, |
| 140 |
"decimal": 1, "default": 1, "digits": 1, "disc": 1, "dotted": 1, "double": 1, "e-resize": 1, "embed": 1, |
| 141 |
"extra-condensed": 1, "extra-expanded": 1, "expanded": 1, "fantasy": 1, "far-left": 1, |
| 142 |
"far-right": 1, "faster": 1, "fast": 1, "fixed": 1, "georgian": 1, "groove": 1, "hebrew": 1, "help": 1, |
| 143 |
"hidden": 1, "hide": 1, "higher": 1, "high": 1, "hiragana-iroha": 1, "hiragana": 1, "icon": 1, |
| 144 |
"inherit": 1, "inline-table": 1, "inline": 1, "inset": 1, "inside": 1, "invert": 1, "italic": 1, |
| 145 |
"justify": 1, "katakana-iroha": 1, "katakana": 1, "landscape": 1, "larger": 1, "large": 1, |
| 146 |
"left-side": 1, "leftwards": 1, "level": 1, "lighter": 1, "line-through": 1, "list-item": 1, |
| 147 |
"loud": 1, "lower-alpha": 1, "lower-greek": 1, "lower-roman": 1, "lowercase": 1, "ltr": 1, |
| 148 |
"lower": 1, "low": 1, "medium": 1, "message-box": 1, "middle": 1, "mix": 1, "monospace": 1, |
| 149 |
"n-resize": 1, "narrower": 1, "ne-resize": 1, "no-close-quote": 1, "no-open-quote": 1, |
| 150 |
"no-repeat": 1, "none": 1, "normal": 1, "nowrap": 1, "nw-resize": 1, "oblique": 1, "once": 1, |
| 151 |
"open-quote": 1, "outset": 1, "outside": 1, "overline": 1, "pointer": 1, "portrait": 1, "px": 1, |
| 152 |
"relative": 1, "repeat-x": 1, "repeat-y": 1, "repeat": 1, "rgb": 1, "ridge": 1, "right-side": 1, |
| 153 |
"rightwards": 1, "s-resize": 1, "sans-serif": 1, "scroll": 1, "se-resize": 1, |
| 154 |
"semi-condensed": 1, "semi-expanded": 1, "separate": 1, "serif": 1, "show": 1, "silent": 1, |
| 155 |
"slow": 1, "slower": 1, "small-caps": 1, "small-caption": 1, "smaller": 1, "soft": 1, "solid": 1, |
| 156 |
"spell-out": 1, "square": 1, "static": 1, "status-bar": 1, "super": 1, "sw-resize": 1, |
| 157 |
"table-caption": 1, "table-cell": 1, "table-column": 1, "table-column-group": 1, |
| 158 |
"table-footer-group": 1, "table-header-group": 1, "table-row": 1, |
| 159 |
"table-row-group": 1, "text": 1, "text-bottom": 1, "text-top": 1, "thick": 1, "thin": 1, |
| 160 |
"transparent": 1, "ultra-condensed": 1, "ultra-expanded": 1, "underline": 1, |
| 161 |
"upper-alpha": 1, "upper-latin": 1, "upper-roman": 1, "uppercase": 1, "url": 1, |
| 162 |
"visible": 1, "w-resize": 1, "wait": 1, "wider": 1, "x-fast": 1, "x-high": 1, "x-large": 1, "x-loud": 1, |
| 163 |
"x-low": 1, "x-small": 1, "x-soft": 1, "xx-large": 1, "xx-small": 1, "yes": 1 |
| 164 |
}, |
| 165 |
"name builtin": { |
| 166 |
"indigo": 1, "gold": 1, "firebrick": 1, "indianred": 1, "yellow": 1, "darkolivegreen": 1, |
| 167 |
"darkseagreen": 1, "mediumvioletred": 1, "mediumorchid": 1, "chartreuse": 1, |
| 168 |
"mediumslateblue": 1, "black": 1, "springgreen": 1, "crimson": 1, "lightsalmon": 1, "brown": 1, |
| 169 |
"turquoise": 1, "olivedrab": 1, "cyan": 1, "silver": 1, "skyblue": 1, "gray": 1, "darkturquoise": 1, |
| 170 |
"goldenrod": 1, "darkgreen": 1, "darkviolet": 1, "darkgray": 1, "lightpink": 1, "teal": 1, |
| 171 |
"darkmagenta": 1, "lightgoldenrodyellow": 1, "lavender": 1, "yellowgreen": 1, "thistle": 1, |
| 172 |
"violet": 1, "navy": 1, "orchid": 1, "blue": 1, "ghostwhite": 1, "honeydew": 1, "cornflowerblue": 1, |
| 173 |
"darkblue": 1, "darkkhaki": 1, "mediumpurple": 1, "cornsilk": 1, "red": 1, "bisque": 1, "slategray": 1, |
| 174 |
"darkcyan": 1, "khaki": 1, "wheat": 1, "deepskyblue": 1, "darkred": 1, "steelblue": 1, "aliceblue": 1, |
| 175 |
"gainsboro": 1, "mediumturquoise": 1, "floralwhite": 1, "coral": 1, "purple": 1, "lightgrey": 1, |
| 176 |
"lightcyan": 1, "darksalmon": 1, "beige": 1, "azure": 1, "lightsteelblue": 1, "oldlace": 1, |
| 177 |
"greenyellow": 1, "royalblue": 1, "lightseagreen": 1, "mistyrose": 1, "sienna": 1, |
| 178 |
"lightcoral": 1, "orangered": 1, "navajowhite": 1, "lime": 1, "palegreen": 1, "burlywood": 1, |
| 179 |
"seashell": 1, "mediumspringgreen": 1, "fuchsia": 1, "papayawhip": 1, "blanchedalmond": 1, |
| 180 |
"peru": 1, "aquamarine": 1, "white": 1, "darkslategray": 1, "ivory": 1, "dodgerblue": 1, |
| 181 |
"lemonchiffon": 1, "chocolate": 1, "orange": 1, "forestgreen": 1, "slateblue": 1, "olive": 1, |
| 182 |
"mintcream": 1, "antiquewhite": 1, "darkorange": 1, "cadetblue": 1, "moccasin": 1, |
| 183 |
"limegreen": 1, "saddlebrown": 1, "darkslateblue": 1, "lightskyblue": 1, "deeppink": 1, |
| 184 |
"plum": 1, "aqua": 1, "darkgoldenrod": 1, "maroon": 1, "sandybrown": 1, "magenta": 1, "tan": 1, |
| 185 |
"rosybrown": 1, "pink": 1, "lightblue": 1, "palevioletred": 1, "mediumseagreen": 1, |
| 186 |
"dimgray": 1, "powderblue": 1, "seagreen": 1, "snow": 1, "mediumblue": 1, "midnightblue": 1, |
| 187 |
"paleturquoise": 1, "palegoldenrod": 1, "whitesmoke": 1, "darkorchid": 1, "salmon": 1, |
| 188 |
"lightslategray": 1, "lawngreen": 1, "lightgreen": 1, "tomato": 1, "hotpink": 1, |
| 189 |
"lightyellow": 1, "lavenderblush": 1, "linen": 1, "mediumaquamarine": 1, "green": 1, |
| 190 |
"blueviolet": 1, "peachpuff": 1 |
| 191 |
} |
| 192 |
}, |
| 193 |
contains: [ |
| 194 |
"comment", "comment preproc", |
| 195 |
"number", |
| 196 |
"string single", "string double", |
| 197 |
"punctuation", |
| 198 |
"name decorator", "name class", "name function" |
| 199 |
] |
| 200 |
} |
| 201 |
] |
| 202 |
}; |
| 203 |
|
| 204 |
return dhl.css; |
| 205 |
}); |