Fix handling of pre-OS X Mac color names
This commit is contained in:
parent
af90b27f8a
commit
e0a472238c
@ -785,49 +785,49 @@ let s:rgb["yellow4"] = "#8b8b00"
|
|||||||
let s:rgb["yellowgreen"] = "#9acd32"
|
let s:rgb["yellowgreen"] = "#9acd32"
|
||||||
|
|
||||||
if has('mac') && !has('macunix')
|
if has('mac') && !has('macunix')
|
||||||
let s:rgb["dark gray"] = "0x808080"
|
let s:rgb["dark gray"] = "#808080"
|
||||||
let s:rgb["darkgray"] = "0x808080"
|
let s:rgb["darkgray"] = "#808080"
|
||||||
let s:rgb["dark grey"] = "0x808080"
|
let s:rgb["dark grey"] = "#808080"
|
||||||
let s:rgb["darkgrey"] = "0x808080"
|
let s:rgb["darkgrey"] = "#808080"
|
||||||
let s:rgb["gray"] = "0xc0c0c0"
|
let s:rgb["gray"] = "#c0c0c0"
|
||||||
let s:rgb["grey"] = "0xc0c0c0"
|
let s:rgb["grey"] = "#c0c0c0"
|
||||||
let s:rgb["light gray"] = "0xe0e0e0"
|
let s:rgb["light gray"] = "#e0e0e0"
|
||||||
let s:rgb["lightgray"] = "0xe0e0e0"
|
let s:rgb["lightgray"] = "#e0e0e0"
|
||||||
let s:rgb["light grey"] = "0xe0e0e0"
|
let s:rgb["light grey"] = "#e0e0e0"
|
||||||
let s:rgb["lightgrey"] = "0xe0e0e0"
|
let s:rgb["lightgrey"] = "#e0e0e0"
|
||||||
let s:rgb["dark red"] = "0x800000"
|
let s:rgb["dark red"] = "#800000"
|
||||||
let s:rgb["darkred"] = "0x800000"
|
let s:rgb["darkred"] = "#800000"
|
||||||
let s:rgb["red"] = "0xdd0806"
|
let s:rgb["red"] = "#dd0806"
|
||||||
let s:rgb["light red"] = "0xffa0a0"
|
let s:rgb["light red"] = "#ffa0a0"
|
||||||
let s:rgb["lightred"] = "0xffa0a0"
|
let s:rgb["lightred"] = "#ffa0a0"
|
||||||
let s:rgb["dark blue"] = "0x000080"
|
let s:rgb["dark blue"] = "#000080"
|
||||||
let s:rgb["darkblue"] = "0x000080"
|
let s:rgb["darkblue"] = "#000080"
|
||||||
let s:rgb["blue"] = "0x0000d4"
|
let s:rgb["blue"] = "#0000d4"
|
||||||
let s:rgb["light blue"] = "0xa0a0ff"
|
let s:rgb["light blue"] = "#a0a0ff"
|
||||||
let s:rgb["lightblue"] = "0xa0a0ff"
|
let s:rgb["lightblue"] = "#a0a0ff"
|
||||||
let s:rgb["dark green"] = "0x008000"
|
let s:rgb["dark green"] = "#008000"
|
||||||
let s:rgb["darkgreen"] = "0x008000"
|
let s:rgb["darkgreen"] = "#008000"
|
||||||
let s:rgb["green"] = "0x006411"
|
let s:rgb["green"] = "#006411"
|
||||||
let s:rgb["light green"] = "0xa0ffa0"
|
let s:rgb["light green"] = "#a0ffa0"
|
||||||
let s:rgb["lightgreen"] = "0xa0ffa0"
|
let s:rgb["lightgreen"] = "#a0ffa0"
|
||||||
let s:rgb["dark cyan"] = "0x008080"
|
let s:rgb["dark cyan"] = "#008080"
|
||||||
let s:rgb["darkcyan"] = "0x008080"
|
let s:rgb["darkcyan"] = "#008080"
|
||||||
let s:rgb["cyan"] = "0x02abea"
|
let s:rgb["cyan"] = "#02abea"
|
||||||
let s:rgb["light cyan"] = "0xa0ffff"
|
let s:rgb["light cyan"] = "#a0ffff"
|
||||||
let s:rgb["lightcyan"] = "0xa0ffff"
|
let s:rgb["lightcyan"] = "#a0ffff"
|
||||||
let s:rgb["dark magenta"] = "0x800080"
|
let s:rgb["dark magenta"] = "#800080"
|
||||||
let s:rgb["darkmagenta"] = "0x800080"
|
let s:rgb["darkmagenta"] = "#800080"
|
||||||
let s:rgb["magenta"] = "0xf20884"
|
let s:rgb["magenta"] = "#f20884"
|
||||||
let s:rgb["light magenta"] = "0xf0a0f0"
|
let s:rgb["light magenta"] = "#f0a0f0"
|
||||||
let s:rgb["lightmagenta"] = "0xf0a0f0"
|
let s:rgb["lightmagenta"] = "#f0a0f0"
|
||||||
let s:rgb["brown"] = "0x804040"
|
let s:rgb["brown"] = "#804040"
|
||||||
let s:rgb["yellow"] = "0xfcf305"
|
let s:rgb["yellow"] = "#fcf305"
|
||||||
let s:rgb["light yellow"] = "0xffffa0"
|
let s:rgb["light yellow"] = "#ffffa0"
|
||||||
let s:rgb["lightyellow"] = "0xffffa0"
|
let s:rgb["lightyellow"] = "#ffffa0"
|
||||||
let s:rgb["orange"] = "0xfc8000"
|
let s:rgb["orange"] = "#fc8000"
|
||||||
let s:rgb["purple"] = "0xa020f0"
|
let s:rgb["purple"] = "#a020f0"
|
||||||
let s:rgb["slateblue"] = "0x6a5acd"
|
let s:rgb["slateblue"] = "#6a5acd"
|
||||||
let s:rgb["violet"] = "0x8d38c9"
|
let s:rgb["violet"] = "#8d38c9"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
function! csapprox#rgb()
|
function! csapprox#rgb()
|
||||||
|
Loading…
Reference in New Issue
Block a user