Module colorizer.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, options, options_local) Parse the given lines for sass variabled and add to `SASS[buf].DEFINITIONS_ALL`.


Functions

cleanup (bufnr)
Cleanup sass variables and watch handlers

Parameters:

  • bufnr number
parser (line, i, bufnr)
Parse the given line for sass color names check for value in state[buf].definitions_all

Parameters:

  • line string: Line to parse
  • i number: Index of line from where to start parsing
  • bufnr number: Buffer number

Returns:

    number|nil, string|nil
update_variables (bufnr, line_start, line_end, lines, color_parser, options, options_local)
Parse the given lines for sass variabled and add to `SASS[buf].DEFINITIONS_ALL`. which is then used in |sass_name_parser| If lines are not given, then fetch the lines with line_start and line_end

Parameters:

  • bufnr number: Buffer number
  • line_start number
  • line_end number
  • lines table|nil
  • color_parser function|boolean
  • options table: Buffer options
  • options_local table|nil: Buffer local variables
generated by LDoc 1.5.0 Last updated - December