Module colorizer.parser.sass

Sass Manages Sass variable parsing and color detection for buffers.

This module handles the parsing of Sass color variables, managing import statements, and watching files for updates to Sass variable definitions. It supports recursive Sass imports, resolving color values for each variable, and caching color definitions.

Functions

cleanup (bufnr) Cleanup sass variables and watch handlers
parser (line, i, bufnr) Parse the given line for sass color names check for value in state[buf].definitions_all
update_variables (bufnr, line_start, line_end, lines, color_parser, opts, buf_local_opts) Parse the given lines for sass variabled and add to sass_state[buf].definitions_all.

Tables

spec Parser spec for the registry


Functions

cleanup (bufnr)
Cleanup sass variables and watch handlers
parser (line, i, bufnr)
Parse the given line for sass color names check for value in state[buf].definitions_all
update_variables (bufnr, line_start, line_end, lines, color_parser, opts, buf_local_opts)
Parse the given lines for sass variabled and add to sass_state[buf].definitions_all. which is then used in |sassnameparser| If lines are not given, then fetch the lines with linestart and lineend

Tables

spec
Parser spec for the registry
generated by LDoc 1.5.0 Last updated 2026-03-07 17:46:06