aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAshkan Kiani <ashkan.k.kiani@gmail.com>2019-10-18 14:27:02 -0700
committerGitHub <noreply@github.com>2019-10-18 14:27:02 -0700
commit6c3d4e4b4ce8a4eb0b5ac012e38ca1f66af4b077 (patch)
treea13787a3bbac64a82ee95ba14fcc75ff2cad4a69 /doc
parentAllow excluding files from highlight with '*' (#11) (diff)
Update color functions (#13)
- Add hsl, hsla, rgba, RRGGBBAA - Redo the parser for rgb,rgba,hsl,hsla codes. - Fix the trie implementation. - Bugfix and refactor alpha/error handling
Diffstat (limited to 'doc')
-rw-r--r--doc/colorizer-lua.txt17
1 files changed, 9 insertions, 8 deletions
diff --git a/doc/colorizer-lua.txt b/doc/colorizer-lua.txt
index 9f2afda..39a97a2 100644
--- a/doc/colorizer-lua.txt
+++ b/doc/colorizer-lua.txt
@@ -50,15 +50,16 @@ Assumes the module is imported as `colorizer`
>
DEFAULT_OPTIONS = {
- RGB = true; -- #RGB hex codes
- RRGGBB = true; -- #RRGGBB hex codes
- names = true; -- "Name" codes like Blue
- rgb_fn = false; -- CSS rgb() and rgba() functions
- hsl_fn = false; -- CSS hsl() and hsla() functions
- css = false; -- Enable all features above.
- css_fn = false; -- Enable all CSS *functions*: rgb_fn, hsl_fn
+ RGB = true; -- #RGB hex codes
+ RRGGBB = true; -- #RRGGBB hex codes
+ names = true; -- "Name" codes like Blue
+ RRGGBBAA = false; -- #RRGGBBAA hex codes
+ rgb_fn = false; -- CSS rgb() and rgba() functions
+ hsl_fn = false; -- CSS hsl() and hsla() functions
+ css = false; -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
+ css_fn = false; -- Enable all CSS *functions*: rgb_fn, hsl_fn
-- Available modes: foreground, background
- mode = 'background'; -- Set the display mode.
+ mode = 'background'; -- Set the display mode.
}
<