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 ++++++++++--------- doc/index.html | 5 + doc/modules/colorizer.buffer_utils.html | 1 + doc/modules/colorizer.color_utils.html | 111 +----------------- doc/modules/colorizer.html | 1 + doc/modules/colorizer.matcher_utils.html | 1 + doc/modules/colorizer.sass.html | 188 +++++++++++++++++++++++++++++++ doc/modules/colorizer.trie.html | 1 + doc/modules/utils.html | 1 + 9 files changed, 262 insertions(+), 165 deletions(-) create mode 100644 doc/modules/colorizer.sass.html (limited to 'doc') 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* diff --git a/doc/index.html b/doc/index.html index 6042cb2..2b3efa5 100644 --- a/doc/index.html +++ b/doc/index.html @@ -35,6 +35,7 @@
  • buffer_utils
  • color_utils
  • matcher_utils
  • +
  • sass
  • trie
  • utils
  • @@ -63,6 +64,10 @@ colorizer.matcher_utils Helper functions for colorizer to enable required parsers + + colorizer.sass + Helper functions to parse sass color variables + colorizer.trie Trie implementation in luajit. diff --git a/doc/modules/colorizer.buffer_utils.html b/doc/modules/colorizer.buffer_utils.html index 8d7beaa..e433609 100644 --- a/doc/modules/colorizer.buffer_utils.html +++ b/doc/modules/colorizer.buffer_utils.html @@ -44,6 +44,7 @@
  • buffer_utils
  • color_utils
  • matcher_utils
  • +
  • sass
  • trie
  • utils
  • diff --git a/doc/modules/colorizer.color_utils.html b/doc/modules/colorizer.color_utils.html index 6e26961..f685731 100644 --- a/doc/modules/colorizer.color_utils.html +++ b/doc/modules/colorizer.color_utils.html @@ -42,6 +42,7 @@
  • buffer_utils
  • color_utils
  • matcher_utils
  • +
  • sass
  • trie
  • utils
  • @@ -66,19 +67,6 @@ 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) @@ -168,103 +156,6 @@ - -
    - - 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 -
    - - - -
    diff --git a/doc/modules/colorizer.html b/doc/modules/colorizer.html index edc06db..14b976f 100644 --- a/doc/modules/colorizer.html +++ b/doc/modules/colorizer.html @@ -44,6 +44,7 @@
  • buffer_utils
  • color_utils
  • matcher_utils
  • +
  • sass
  • trie
  • utils
  • diff --git a/doc/modules/colorizer.matcher_utils.html b/doc/modules/colorizer.matcher_utils.html index 5a5514f..bdf0188 100644 --- a/doc/modules/colorizer.matcher_utils.html +++ b/doc/modules/colorizer.matcher_utils.html @@ -42,6 +42,7 @@
  • buffer_utils
  • color_utils
  • matcher_utils
  • +
  • sass
  • trie
  • utils
  • diff --git a/doc/modules/colorizer.sass.html b/doc/modules/colorizer.sass.html new file mode 100644 index 0000000..45ec0d8 --- /dev/null +++ b/doc/modules/colorizer.sass.html @@ -0,0 +1,188 @@ + + + + + colorizer Docs + + + + +
    + +
    + +
    +
    +
    + + +
    + + + + + + +
    + +

    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 +
    • +
    + + + + + +
    +
    + + +
    +
    +
    +generated by LDoc 1.4.6 +Last updated - September +
    +
    + + diff --git a/doc/modules/colorizer.trie.html b/doc/modules/colorizer.trie.html index e5fc981..25cd3cb 100644 --- a/doc/modules/colorizer.trie.html +++ b/doc/modules/colorizer.trie.html @@ -38,6 +38,7 @@
  • buffer_utils
  • color_utils
  • matcher_utils
  • +
  • sass
  • trie
  • utils
  • diff --git a/doc/modules/utils.html b/doc/modules/utils.html index 3e6fb0a..8a5479a 100644 --- a/doc/modules/utils.html +++ b/doc/modules/utils.html @@ -42,6 +42,7 @@
  • buffer_utils
  • color_utils
  • matcher_utils
  • +
  • sass
  • trie
  • utils
  • -- cgit v1.2.3-70-g09d2