Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
1209 lines (1202 sloc) 16 KB
;http://kaede.blog.abk.nu/sakura-css
(defvar ac-css-sources
'(ac-source-css-keywords))
(defun ac-css-prefix ()
(or (and (looking-back "#[0-9a-ZA-Z]+")
(match-beginning 0))
(ac-sources-prefix-default)))
(defun ac-css-setup ()
(make-local-variable 'ac-sources-prefix-function)
(setq ac-sources-prefix-function 'ac-css-prefix)
(setq ac-sources (append ac-css-sources ac-sources)))
(defun ac-css-init ()
(add-hook 'css-mode-hook 'ac-css-setup))
(ac-define-dictionary-source
ac-source-css-keywords
'("#000"
"#000000"
"#000033"
"#000066"
"#000099"
"#0000CC"
"#0000FF"
"#003"
"#003300"
"#003333"
"#003366"
"#003399"
"#0033CC"
"#0033FF"
"#006"
"#006600"
"#006633"
"#006666"
"#006699"
"#0066CC"
"#0066FF"
"#009"
"#009900"
"#009933"
"#009966"
"#009999"
"#0099CC"
"#0099FF"
"#00C"
"#00CC00"
"#00CC33"
"#00CC66"
"#00CC99"
"#00CCCC"
"#00CCFF"
"#00F"
"#00FF00"
"#00FF33"
"#00FF66"
"#00FF99"
"#00FFCC"
"#00FFFF"
"#030"
"#033"
"#036"
"#039"
"#03C"
"#03F"
"#060"
"#063"
"#066"
"#069"
"#06C"
"#06F"
"#090"
"#093"
"#096"
"#099"
"#09C"
"#09F"
"#0C0"
"#0C3"
"#0C6"
"#0C9"
"#0CC"
"#0CF"
"#0F0"
"#0F3"
"#0F6"
"#0F9"
"#0FC"
"#0FF"
"#300"
"#303"
"#306"
"#309"
"#30C"
"#30F"
"#330"
"#330000"
"#330033"
"#330066"
"#330099"
"#3300CC"
"#3300FF"
"#333"
"#333300"
"#333333"
"#333366"
"#333399"
"#3333CC"
"#3333FF"
"#336"
"#336600"
"#336633"
"#336666"
"#336699"
"#3366CC"
"#3366FF"
"#339"
"#339900"
"#339933"
"#339966"
"#339999"
"#3399CC"
"#3399FF"
"#33C"
"#33CC00"
"#33CC33"
"#33CC66"
"#33CC99"
"#33CCCC"
"#33CCFF"
"#33F"
"#33FF00"
"#33FF33"
"#33FF66"
"#33FF99"
"#33FFCC"
"#33FFFF"
"#360"
"#363"
"#366"
"#369"
"#36C"
"#36F"
"#390"
"#393"
"#396"
"#399"
"#39C"
"#39F"
"#3C0"
"#3C3"
"#3C6"
"#3C9"
"#3CC"
"#3CF"
"#3F0"
"#3F3"
"#3F6"
"#3F9"
"#3FC"
"#3FF"
"#600"
"#603"
"#609"
"#60C"
"#60F"
"#630"
"#633"
"#636"
"#639"
"#63C"
"#63F"
"#660"
"#660000"
"#660033"
"#660099"
"#6600CC"
"#6600FF"
"#663"
"#663300"
"#663333"
"#663366"
"#663399"
"#6633CC"
"#6633FF"
"#666"
"#666600"
"#666633"
"#666666"
"#666699"
"#6666CC"
"#6666FF"
"#669"
"#669900"
"#669933"
"#669966"
"#669999"
"#6699CC"
"#6699FF"
"#66C"
"#66CC00"
"#66CC33"
"#66CC66"
"#66CC99"
"#66CCCC"
"#66CCFF"
"#66F"
"#66FF00"
"#66FF33"
"#66FF66"
"#66FF99"
"#66FFCC"
"#66FFFF"
"#690"
"#693"
"#696"
"#699"
"#69C"
"#69F"
"#6C0"
"#6C3"
"#6C6"
"#6C9"
"#6CC"
"#6CF"
"#6F0"
"#6F3"
"#6F6"
"#6F9"
"#6FC"
"#6FF"
"#900"
"#903"
"#906"
"#909"
"#90C"
"#90F"
"#930"
"#933"
"#936"
"#939"
"#93C"
"#93F"
"#960"
"#963"
"#966"
"#969"
"#96C"
"#96F"
"#990"
"#990000"
"#990033"
"#990066"
"#990099"
"#9900CC"
"#9900FF"
"#993"
"#993300"
"#993333"
"#993366"
"#993399"
"#9933CC"
"#9933FF"
"#996"
"#996600"
"#996633"
"#996666"
"#996699"
"#9966CC"
"#9966FF"
"#999"
"#999900"
"#999933"
"#999966"
"#999999"
"#9999CC"
"#9999FF"
"#99C"
"#99CC00"
"#99CC33"
"#99CC66"
"#99CC99"
"#99CCCC"
"#99CCFF"
"#99F"
"#99FF00"
"#99FF33"
"#99FF66"
"#99FF99"
"#99FFCC"
"#99FFFF"
"#9C0"
"#9C3"
"#9C6"
"#9C9"
"#9CC"
"#9CF"
"#9F0"
"#9F3"
"#9F6"
"#9F9"
"#9FC"
"#9FF"
"#C00"
"#C03"
"#C06"
"#C09"
"#C0C"
"#C0F"
"#C30"
"#C33"
"#C36"
"#C39"
"#C3C"
"#C3F"
"#C60"
"#C63"
"#C66"
"#C69"
"#C6C"
"#C6F"
"#C90"
"#C93"
"#C96"
"#C99"
"#C9C"
"#C9F"
"#CC0"
"#CC0000"
"#CC0033"
"#CC0066"
"#CC0099"
"#CC00CC"
"#CC00FF"
"#CC3"
"#CC3300"
"#CC3333"
"#CC3366"
"#CC3399"
"#CC33CC"
"#CC33FF"
"#CC6"
"#CC6600"
"#CC6633"
"#CC6666"
"#CC6699"
"#CC66CC"
"#CC66FF"
"#CC9"
"#CC9900"
"#CC9933"
"#CC9966"
"#CC9999"
"#CC99CC"
"#CC99FF"
"#CCC"
"#CCCC00"
"#CCCC33"
"#CCCC66"
"#CCCC99"
"#CCCCCC"
"#CCCCFF"
"#CCF"
"#CCFF00"
"#CCFF33"
"#CCFF66"
"#CCFF99"
"#CCFFCC"
"#CCFFFF"
"#CF0"
"#CF3"
"#CF6"
"#CF9"
"#CFC"
"#CFF"
"#F00"
"#F03"
"#F06"
"#F09"
"#F0C"
"#F0F"
"#F30"
"#F33"
"#F36"
"#F39"
"#F3C"
"#F3F"
"#F60"
"#F63"
"#F66"
"#F69"
"#F6C"
"#F6F"
"#F90"
"#F93"
"#F96"
"#F99"
"#F9C"
"#F9F"
"#FC0"
"#FC3"
"#FC6"
"#FC9"
"#FCC"
"#FCF"
"#FF0"
"#FF0000"
"#FF0033"
"#FF0066"
"#FF0099"
"#FF00CC"
"#FF00FF"
"#FF3"
"#FF3300"
"#FF3333"
"#FF3366"
"#FF3399"
"#FF33CC"
"#FF33FF"
"#FF6"
"#FF6600"
"#FF6633"
"#FF6666"
"#FF6699"
"#FF66CC"
"#FF66FF"
"#FF9"
"#FF9900"
"#FF9933"
"#FF9966"
"#FF9999"
"#FF99CC"
"#FF99FF"
"#FFC"
"#FFCC00"
"#FFCC33"
"#FFCC66"
"#FFCC99"
"#FFCCCC"
"#FFCCFF"
"#FFF"
"#FFFF00"
"#FFFF33"
"#FFFF66"
"#FFFF99"
"#FFFFCC"
"#FFFFFF"
"100"
"200"
"300"
"3dlight"
"400"
"500"
"600"
"700"
"800"
"900"
"ActiveBorder"
"ActiveCaption"
"Alpha"
"AppWorkspace"
"Background"
"Barn"
"BasicImage"
"Blinds"
"Blur"
"ButtonFace"
"ButtonHighlight"
"ButtonShadow"
"ButtonText"
"CaptionText"
"CheckerBoard"
"Chroma"
"Compositor"
"CradientWipe"
"DXImageTransform"
"DropShadow"
"Emboss"
"Engrave"
"Fade"
"FlipH"
"FlipV"
"Glow"
"Gray"
"GrayText"
"Highlight"
"HighlightText"
"Hz"
"ICMFilter"
"InactiveBorder"
"InactiveCaption"
"InactiveCaptionText"
"InfoBackground"
"InfoText"
"Inset"
"Invert"
"Iris"
"Light"
"MaskFilter"
"Matrix"
"Menu"
"MenuText"
"Microsoft"
"MotionBlur"
"Pixelate"
"RadialWipe"
"RandomBars"
"RandomDissolve"
"RevealTrans"
"Scrollbar"
"Shadow"
"Slide"
"Spiral"
"Stretch"
"Strips"
"ThreeDDarkShadow"
"ThreeDFace"
"ThreeDHighlight"
"ThreeDLightShadow"
"ThreeDShadow"
"Wave"
"Wheel"
"Window"
"WindowFrame"
"WindowText"
"Xray"
"Zigzag"
"_azimuth"
"_background"
"_background-position-x"
"_background-position-y"
"_border"
"_bottom"
"_caption"
"_clear"
"_clip"
"_color"
"_content"
"_counter"
"_cue"
"_cursor"
"_direction"
"_display"
"_elevation"
"_empty"
"_filter"
"_filter:progid:DXImageTransform.Microsoft"
"_float"
"_font"
"_height"
"_ime"
"_ime-mode"
"_layout"
"_layout-flow"
"_layout-grid"
"_layout-grid-char"
"_layout-grid-line"
"_layout-grid-mode"
"_layout-grid-type"
"_left"
"_letter"
"_line"
"_line-break"
"_list"
"_margin"
"_orphans"
"_outline"
"_overflow"
"_overflow-x"
"_overflow-y"
"_padding"
"_page"
"_pause"
"_pitch"
"_play"
"_position"
"_quotes"
"_richness"
"_right"
"_ruby"
"_ruby-align"
"_ruby-overhang"
"_ruby-position"
"_scrollbar"
"_scrollbar-3dlight-color"
"_scrollbar-arrow-color"
"_scrollbar-base-color"
"_scrollbar-darkshadow-color"
"_scrollbar-face-color"
"_scrollbar-highlight-color"
"_scrollbar-track-color"
"_speak"
"_speech"
"_stress"
"_table"
"_text"
"_text-align-last"
"_text-autospace"
"_text-justify"
"_text-kashida-space"
"_text-overflow"
"_text-underline-position"
"_top"
"_unicode"
"_vertical"
"_visibility"
"_voice"
"_volume"
"_white"
"_widows"
"_width"
"_word"
"_word-break"
"_word-wrap"
"_writing"
"_writing-mode"
"_z"
"_zoom"
"above"
"active"
"adjust"
"after"
"aliceblue"
"align"
"always"
"antiquewhite"
"aqua"
"aquamarine"
"armenian"
"arrow"
"attachment"
"auto"
"autospace"
"avoid"
"azimuth"
"azure"
"background"
"background-attachment"
"background-color"
"background-image"
"background-position"
"background-repeat"
"bar"
"base"
"baseline"
"before"
"behind"
"beige"
"below"
"bidi"
"bidi-override"
"bisque"
"black"
"blanchedalmond"
"blink"
"block"
"blue"
"blueviolet"
"bold"
"bolder"
"border"
"border-bottom"
"border-bottom-color"
"border-bottom-style"
"border-bottom-width"
"border-collapse"
"border-color"
"border-left"
"border-left-color"
"border-left-style"
"border-left-width"
"border-right"
"border-right-color"
"border-right-style"
"border-right-width"
"border-spacing"
"border-style"
"border-top"
"border-top-color"
"border-top-style"
"border-top-width"
"border-width"
"both"
"bottom"
"box"
"break"
"brown"
"burlwood"
"cadetblue"
"capitalize"
"caps"
"caption"
"caption-side"
"cell"
"cells"
"center"
"center-left"
"center-right"
"char"
"chartreuse"
"chocolate"
"circle"
"cjk"
"cjk-ideographic"
"clear"
"clip"
"close"
"close-quote"
"cm"
"code"
"collapse"
"color"
"column"
"compact"
"condensed"
"content"
"continuous"
"coral"
"cornflowerblue"
"cornsilk"
"counter"
"counter-increment"
"counter-reset"
"crimson"
"crop"
"cross"
"crosshair"
"cue"
"cue-after"
"cue-before"
"cursive"
"cursor"
"cyan"
"darkblue"
"darkcyan"
"darkgoldenrod"
"darkgray"
"darkgreen"
"darkkhaki"
"darkmagenta"
"darkolivegreen"
"darkorange"
"darkorchid"
"darkred"
"darksalmon"
"darkseagreen"
"darkshadow"
"darkslateblue"
"darkslategray"
"darkturquoise"
"darkviolet"
"dashed"
"decimal"
"decimal-leading-zero"
"decoration"
"deeppink"
"deepskyblue"
"default"
"deg"
"digits"
"dimgray"
"direction"
"disc"
"display"
"dodgerblue"
"dotted"
"double"
"during"
"e"
"e-resize"
"elevation"
"em"
"embed"
"empty"
"empty-cells"
"ex"
"expanded"
"extra"
"extra-condensed"
"extra-expanded"
"face"
"family"
"fantasy"
"far"
"far-left"
"far-right"
"fast"
"faster"
"firebrick"
"first"
"first-child"
"first-letter"
"first-line"
"fixed"
"float"
"floralwhite"
"flow"
"focus"
"font"
"font-family"
"font-size"
"font-size-adjust"
"font-stretch"
"font-style"
"font-variant"
"font-weight"
"footer"
"forestgreen"
"fuchsia"
"gainsboro"
"georgian"
"ghostwhite"
"gold"
"goldenrod"
"gray"
"greek"
"green"
"greenyellow"
"grid"
"groove"
"group"
"header"
"hebrew"
"height"
"help"
"hidden"
"hide"
"high"
"higher"
"hiragana"
"hiragana-iroha"
"honeydew"
"hotpink"
"hover"
"icon"
"ideographic"
"image"
"in"
"increment"
"indent"
"index"
"indianred"
"indigo"
"inherit"
"inline"
"inline-block"
"inline-table"
"inset"
"inside"
"iroha"
"italic"
"item"
"ivory"
"justify"
"kHz"
"kashida"
"katakana"
"katakana-iroha"
"khaki"
"landscape"
"lang()"
"large"
"larger"
"last"
"latin"
"lavender"
"lavenderblush"
"lawngreen"
"layout"
"leading"
"left"
"left-side"
"leftwards"
"lenonchiffon"
"letter"
"letter-spacing"
"level"
"lightblue"
"lightcoral"
"lightcyan"
"lighter"
"lightgoldenrodyellow"
"lightgray"
"lightgreen"
"lightgrey"
"lightpink"
"lightsalmon"
"lightseagreen"
"lightskyblue"
"lightslategray"
"lightsteelblue"
"lightyellow"
"lime"
"limegreen"
"line"
"line-height"
"line-through"
"linen"
"link"
"list"
"list-item"
"list-style"
"list-style-image"
"list-style-position"
"list-style-type"
"loud"
"low"
"lower"
"lower-alpha"
"lower-greek"
"lower-latin"
"lower-roman"
"lowercase"
"ltr"
"magenta"
"margin"
"margin-bottom"
"margin-left"
"margin-right"
"margin-top"
"marker"
"marker-offset"
"marks"
"maroon"
"max"
"max-height"
"max-width"
"medium"
"mediumaquamarine"
"mediumblue"
"mediumorchid"
"mediumpurple"
"mediumseagreen"
"mediumslateblue"
"mediumspringgreen"
"mediumturquoise"
"mediumvioletred"
"menu"
"message"
"message-box"
"middle"
"midnightblue"
"min"
"min-height"
"min-width"
"mintcream"
"mistyrose"
"mix"
"mm"
"moccasin"
"mode"
"monospace"
"move"
"ms"
"n"
"n-resize"
"naby"
"narrower"
"navajowhite"
"ne"
"ne-resize"
"no"
"no-close-quote"
"no-open-quote"
"no-repeat"
"none"
"normal"
"nowrap"
"number"
"numeral"
"nw"
"nw-resize"
"oblique"
"offset"
"oldlace"
"olive"
"olivedrab"
"once"
"open"
"open-quote"
"orange"
"orangered"
"orchid"
"orphans"
"out"
"outline"
"outline-color"
"outline-style"
"outline-width"
"outset"
"outside"
"overflow"
"overhang"
"overline"
"override"
"padding"
"padding-bottom"
"padding-left"
"padding-right"
"padding-top"
"page"
"page-break-after"
"page-break-before"
"page-break-inside"
"palegoldenrod"
"palegreen"
"paleturquoise"
"palevioletred"
"papayawhip"
"pause"
"pause-after"
"pause-before"
"pc"
"peachpuff"
"peru"
"pink"
"pitch"
"pitch-range"
"play"
"play-during"
"plum"
"pointer"
"portarait"
"position"
"powderblue"
"pre"
"pre-line"
"pre-wrap"
"progid"
"progress"
"pt"
"punctuation"
"purple"
"px"
"quote"
"quotes"
"rad"
"range"
"rate"
"red"
"relative"
"repeat"
"repeat-x"
"repeat-y"
"reset"
"resize"
"richness"
"ridge"
"right"
"right-side"
"rightwards"
"roman"
"rosybrown"
"row"
"royalblue"
"rtl"
"run"
"run-in"
"s"
"s-resize"
"saddlebrown"
"salmon"
"sandybrown"
"sans-serif"
"scroll"
"se"
"se-resize"
"seagreen"
"seashell"
"semi"
"semi-condensed"
"semi-expanded"
"separate"
"serif"
"shadow"
"show"
"side"
"sienna"
"silent"
"silever"
"silver"
"size"
"skyblue"
"slateblue"
"slategray"
"slow"
"slower"
"small"
"small-caps"
"small-caption"
"smaller"
"snow"
"soft"
"solid"
"space"
"spacing"
"speak"
"speak-header"
"speak-numeral"
"speak-punctuation"
"specific"
"specific-voice"
"speech"
"speech-rate"
"spell"
"spell-out"
"springgreen"
"square"
"static"
"status"
"status-bar"
"steelblue"
"stress"
"stretch"
"style"
"sub"
"super"
"sw"
"sw-resize"
"table"
"table-caption"
"table-cell"
"table-column"
"table-column-group"
"table-footer-group"
"table-header-group"
"table-layout"
"table-row"
"table-row-group"
"tan"
"teal"
"text"
"text-align"
"text-bottom"
"text-decoration"
"text-indent"
"text-shadow"
"text-top"
"text-transform"
"thick"
"thin"
"thistle"
"through"
"tomato"
"top"
"track"
"transform"
"transparent"
"turquoise"
"type"
"ultra"
"ultra-condensed"
"ultra-expanded"
"underline"
"unicode"
"unicode-bidi"
"upper"
"upper-alpha"
"upper-latin"
"upper-roman"
"uppercase"
"variant"
"vertical"
"vertical-align"
"violet"
"visibility"
"visible"
"visited"
"voice"
"voice-family"
"volume"
"w"
"w-resize"
"wait"
"weight"
"wheat"
"white"
"white-space"
"whitesmoke"
"wider"
"widows"
"width"
"word"
"word-spacing"
"wrap"
"x"
"x-fast"
"x-high"
"x-large"
"x-loud"
"x-low"
"x-slow"
"x-small"
"x-soft"
"xx"
"xx-large"
"xx-small"
"y"
"yellow"
"yellowgreen"
"z"
"z-index"
"zero"))
(provide 'auto-complete-css)