Module colorizer.matcher
Manages matching and parsing of color patterns in buffers.
This module provides functions for setting up and applying color parsers for different color formats such as RGB, HSL, hexadecimal, and named colors. It uses a trie-based structure to optimize prefix-based parsing.
Functions
reset_cache () | Reset matcher cache Called from colorizer.setup |
make (ud_opts) | Parse the given options and return a function with enabled parsers. |
Functions
- reset_cache ()
- Reset matcher cache Called from colorizer.setup
- make (ud_opts)
-
Parse the given options and return a function with enabled parsers.
if no parsers enabled then return false
Do not try make the function again if it is present in the cache
Parameters:
- ud_opts table: options created in `colorizer.setup`
Returns:
-
function|boolean: function which will just parse the line for enabled parsers