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