Module colorizer.matcher
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
| cleanup_buffer_parser_state (bufnr) | Clean up per-buffer custom parser state |
| get_buffer_parser_state (bufnr, parser_name) | Get or create per-buffer state for a custom parser |
| init_buffer_parser_state (bufnr, custom_parsers) | Initialize per-buffer state for custom parsers |
| make (opts) | Parse the given options and return a function with enabled parsers. |
| reset_cache () | Reset matcher cache Called from colorizer.setup |
Functions
- cleanup_buffer_parser_state (bufnr)
- Clean up per-buffer custom parser state
- get_buffer_parser_state (bufnr, parser_name)
- Get or create per-buffer state for a custom parser
- init_buffer_parser_state (bufnr, custom_parsers)
- Initialize per-buffer state for custom parsers
- make (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
- reset_cache ()
- Reset matcher cache Called from colorizer.setup