Module colorizer.sass
Helper functions to parse sass color variables
Functions
sass_cleanup (buf) | Cleanup sass variables and watch handlers |
sass_name_parser (line, i, buf) | Parse the given line for sass color names check for value in SASS[buf].DEFINITIONS_ALL |
sass_update_variables (buf, 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
- sass_cleanup (buf)
-
Cleanup sass variables and watch handlers
Parameters:
- buf number
- sass_name_parser (line, i, buf)
-
Parse the given line for sass color names
check for value in SASS[buf].DEFINITIONS_ALL
Parameters:
- line string: Line to parse
- i number: Index of line from where to start parsing
- buf number
Returns:
-
number|nil, string|nil
- sass_update_variables (buf, line_start, line_end, lines, color_parser, options, options_local)
-
Parse the given lines for sass variabled and add to SASS[buf].DEFINITIONSALL.
which is then used in |sassnameparser|
If lines are not given, then fetch the lines with linestart and line_end
Parameters:
- buf 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