Module colorizer.sass

Helper functions to parse sass color variables

Functions

cleanup (buf) Cleanup sass variables and watch handlers
name_parser (line, i, buf) Parse the given line for sass color names check for value in SASS[buf].DEFINITIONS_ALL
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

cleanup (buf)
Cleanup sass variables and watch handlers

Parameters:

  • buf number
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
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. which is then used in |sassnameparser| If lines are not given, then fetch the lines with linestart and lineend

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
generated by LDoc 1.4.6 Last updated - February