From 87ea253ae36fb195b7e723a266dbb1f28e0b87bc Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Tue, 13 Sep 2022 21:32:45 +0530 Subject: Seperate sass code --- doc/colorizer.txt | 118 +++++++++++++++++++++++++++++------------------------- 1 file changed, 63 insertions(+), 55 deletions(-) (limited to 'doc/colorizer.txt') diff --git a/doc/colorizer.txt b/doc/colorizer.txt index 87a3a90..2cc2d6e 100644 --- a/doc/colorizer.txt +++ b/doc/colorizer.txt @@ -351,14 +351,6 @@ Functions: ~ |color_name_parser| - Grab all the colour values from `vim.api.nvim_get_color_map` and create a lookup table. - |sass_cleanup| - Cleanup sass variables - - |sass_update_variables| - Parse the given lines for sass variabled and add - to SASS[buf].DEFINITIONS_ALL. - - |sass_name_parser| - Parse the given line for sass color names - check for value in SASS[buf].DEFINITIONS_ALL - |rgb_function_parser| - Parse for rgb() css function and return rgb hex. |rgba_function_parser| - Parse for rgba() css function and return rgb hex. @@ -401,53 +393,6 @@ color_name_parser({line}, {i}, {opts}) *colorizer.color_utils.color_name_parser* -sass_cleanup({buf}) *colorizer.color_utils.sass_cleanup* - Cleanup sass variables - - Parameters: ~ - {buf} - number - - - - - *colorizer.color_utils.sass_update_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. - - which is then used in |sass_name_parser| - If lines are not given, then fetch the lines with line_start 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 - - returns:~ - boolean - - - -sass_name_parser({line}, {i}, {buf}) *colorizer.color_utils.sass_name_parser* - 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 or nil, string or nil - - - rgb_function_parser({line}, {i}) *colorizer.color_utils.rgb_function_parser* Parse for rgb() css function and return rgb hex. @@ -568,6 +513,69 @@ make_matcher({options}) *colorizer.matcher_utils.make_matcher* +============================================================================== +SASS *colorizer.sass-introduction* + +Helper functions to parse sass color variables + + +============================================================================== +LUA API *colorizer.sass-lua-api* + +Functions: ~ + |sass_cleanup| - Cleanup sass variables and watch handlers + + |sass_name_parser| - Parse the given line for sass color names + check for value in SASS[buf].DEFINITIONS_ALL + + |sass_update_variables| - Parse the given lines for sass variabled and add + to SASS[buf].DEFINITIONS_ALL. + + +sass_cleanup({buf}) *colorizer.sass.sass_cleanup* + Cleanup sass variables and watch handlers + + Parameters: ~ + {buf} - number + + + +sass_name_parser({line}, {i}, {buf}) *colorizer.sass.sass_name_parser* + 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 or nil, string or nil + + + + + *colorizer.sass.sass_update_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. + + which is then used in |sass_name_parser| + If lines are not given, then fetch the lines with line_start 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 + + + ============================================================================== TRIE *colorizer.trie-introduction* -- cgit v1.2.3-70-g09d2