norcalli.nvim-colorizer.lua/test/expectation.txt
Ashkan Kiani f5017b0dc1
Refactor (#19)
- Refactor and clean up old code.
- Fix the trie printing (it's perfect now :o)
- Add the ability to search from a starting point. This can help
avoid allocations.
- Avoid an allocation in longest_prefix.
- Refactor and allow configuring of color_name_parser setup
2019-10-19 12:35:55 -07:00

47 lines
765 B
Lua

-- vim:ft=lua
require'colorizer'.attach_to_buffer(0, {css=true})
--[[ SUCCESS
#F0F
#FF00FF
#FFF00F8F
#F0F
#FF00FF
#FFF00F8F
#F0F #F00
#FF00FF #F00
#FFF00F8F #F00
Blue Gray LightBlue Gray100 White
White
#def
#deadbeef
rgba(0,0,0,0)
rgb(0,0,0)
rgb(10, 100 , 100)
hsl(300,50%,50%)
hsla(300,50%,50%,0.5)
hsla(300,50%,50%,1.0000000000000001)
hsla(360,50%,50%,1.0000000000000001)
blue gray lightblue gray100 white gold blue
]]
--[[ FAIL
#F0FF
#F0FFF
#F0FFF0F
#F0FFF0FFF
Blueberry Gray1000 BlueGree BlueGray
#define
#def0
matcher#add
rgb(10,256,100)
rgb (10,255,100)
rgb(10, 1 00 , 100)
hsla(300,50%,50%,05)
hsla(300,50%,50%,1.000000000000001)
hsla(300,50%,50,1.0000000000000001)
hsla(300,50,50,1.0000000000000001)
hsla(361,50,50,1.0000000000000001)
]]