From f986d9a0ea1feff1388b5c7d297ec3faa19036a7 Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Fri, 9 Sep 2022 23:55:43 +0530 Subject: [FEATURE] Add support for sass variables Import support import using use and import keyword multiple imports in single line multiple imports in multiple lines ( using commas ) recursive imports watch imports for changes and automatically rehighlight buffer buffer variables recursive variables support multiple variables in single line parse imported files only when they are changed Loosely based on https://github.com/norcalli/nvim-colorizer.lua/pull/22/files --- doc/modules/colorizer.color_utils.html | 110 +++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) (limited to 'doc/modules/colorizer.color_utils.html') diff --git a/doc/modules/colorizer.color_utils.html b/doc/modules/colorizer.color_utils.html index a02853b..6e26961 100644 --- a/doc/modules/colorizer.color_utils.html +++ b/doc/modules/colorizer.color_utils.html @@ -66,6 +66,19 @@ color_name_parser (line, i, opts) Grab all the colour values from vim.api.nvim_get_color_map and create a lookup table. + + + sass_cleanup (buf) + Cleanup sass variables + + + 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. + + + sass_name_parser (line, i, buf) + Parse the given line for sass color names + check for value in SASS[buf].DEFINITIONS_ALL rgb_function_parser (line, i) @@ -155,6 +168,103 @@ + +
+ + sass_cleanup (buf) +
+
+ Cleanup sass variables + + +

Parameters:

+ + + + + + +
+
+ + 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:

+ + +

Returns:

+
    + + boolean +
+ + + + +
+
+ + sass_name_parser (line, i, buf) +
+
+ Parse the given line for sass color names + check for value in SASS[buf].DEFINITIONS_ALL + + +

Parameters:

+ + +

Returns:

+
    + + number|nil, string|nil +
+ + + +
-- cgit v1.2.3-70-g09d2