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

make (options) Parse the given options and return a function with enabled parsers.
reset_cache () Reset the cache of matchers Called from colorizer.setup


Functions

make (options)
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:

  • options table: options created in `colorizer.setup`

Returns:

    function|boolean: function which will just parse the line for enabled parsers
reset_cache ()
Reset the cache of matchers Called from colorizer.setup
generated by LDoc 1.5.0 Last updated - December