Module colorizer.parser.tailwind_names

This module provides a parser that identifies named colors from a given line of text.

The module uses a Trie structure for efficient matching of color names to #rrggbb values

Functions

reset_cache () Reset the color names cache.
parser (line, i) Parses a line to identify color names.


Functions

reset_cache ()
Reset the color names cache. Called from colorizer.setup
parser (line, i)
Parses a line to identify color names.

Parameters:

  • line string: The text line to parse.
  • i number: The index to start parsing from.

Returns:

    number|nil, string|nil: Length of match and hex value if found.
generated by LDoc 1.5.0 Last updated - January