From dde3084106a70b9a79d48f426f6d6fec6fd203f7 Mon Sep 17 00:00:00 2001 From: akianonymus Date: Mon, 27 Feb 2023 14:30:10 +0530 Subject: Separate parsers into individual files --- doc/modules/colorizer.buffer.html | 5 + doc/modules/colorizer.color.html | 187 +---------------------------- doc/modules/colorizer.html | 5 + doc/modules/colorizer.matcher.html | 5 + doc/modules/colorizer.parser.argb_hex.html | 124 +++++++++++++++++++ doc/modules/colorizer.parser.hsl.html | 127 ++++++++++++++++++++ doc/modules/colorizer.parser.names.html | 120 ++++++++++++++++++ doc/modules/colorizer.parser.rgb.html | 127 ++++++++++++++++++++ doc/modules/colorizer.parser.rgba_hex.html | 127 ++++++++++++++++++++ doc/modules/colorizer.sass.html | 5 + doc/modules/colorizer.tailwind.html | 5 + doc/modules/colorizer.trie.html | 5 + doc/modules/colorizer.utils.html | 5 + 13 files changed, 666 insertions(+), 181 deletions(-) create mode 100644 doc/modules/colorizer.parser.argb_hex.html create mode 100644 doc/modules/colorizer.parser.hsl.html create mode 100644 doc/modules/colorizer.parser.names.html create mode 100644 doc/modules/colorizer.parser.rgb.html create mode 100644 doc/modules/colorizer.parser.rgba_hex.html (limited to 'doc/modules') diff --git a/doc/modules/colorizer.buffer.html b/doc/modules/colorizer.buffer.html index 6bce06a..53de887 100644 --- a/doc/modules/colorizer.buffer.html +++ b/doc/modules/colorizer.buffer.html @@ -44,6 +44,11 @@
  • buffer
  • color
  • matcher
  • +
  • parser.argb_hex
  • +
  • parser.hsl
  • +
  • parser.names
  • +
  • parser.rgb
  • +
  • parser.rgba_hex
  • sass
  • tailwind
  • trie
  • diff --git a/doc/modules/colorizer.color.html b/doc/modules/colorizer.color.html index 5947611..37a92cd 100644 --- a/doc/modules/colorizer.color.html +++ b/doc/modules/colorizer.color.html @@ -42,6 +42,11 @@
  • buffer
  • color
  • matcher
  • +
  • parser.argb_hex
  • +
  • parser.hsl
  • +
  • parser.names
  • +
  • parser.rgb
  • +
  • parser.rgba_hex
  • sass
  • tailwind
  • trie
  • @@ -53,7 +58,7 @@

    Module colorizer.color

    -

    Helper functions to parse different colour formats

    +

    Helper color functions

    @@ -61,19 +66,11 @@

    Functions

    - - - - - - - - @@ -81,18 +78,6 @@ - - - - - - - - - - - -
    argb_hex_parser (line, i)parse for 0xaarrggbb and return rgb hex.
    hsl_to_rgb (h, s, l) Converts an HSL color value to RGB.
    hsl_function_parser (line, i, opts)Parse for hsl() hsla() css function and return rgb hex.
    hue_to_rgb (p, q, t) Convert hsl colour values to rgb.
    is_bright (r, g, b) Determine whether to use black or white text.
    name_parser (line, i, opts)Grab all the colour values from vim.api.nvim_get_color_map and create a lookup table.
    rgb_function_parser (line, i, opts)Parse for rgb() rgba() css function and return rgb hex.
    rgba_hex_parser (line, i, opts)parse for #rrggbbaa and return rgb hex.

    @@ -102,37 +87,6 @@

    Functions

    -
    - - argb_hex_parser (line, i) -
    -
    - parse for 0xaarrggbb and return rgb hex. - a format used in android apps - - -

    Parameters:

    -
      -
    • line - string: line to parse -
    • -
    • i - number: index of line from where to start parsing -
    • -
    - -

    Returns:

    -
      -
    1. - number|nil: index of line where the hex value ended
    2. -
    3. - string|nil: rgb hex value
    4. -
    - - - - -
    hsl_to_rgb (h, s, l) @@ -163,40 +117,6 @@ - -
    - - hsl_function_parser (line, i, opts) -
    -
    - Parse for hsl() hsla() css function and return rgb hex. - For more info: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsl - - -

    Parameters:

    -
      -
    • line - string: Line to parse -
    • -
    • i - number: Index of line from where to start parsing -
    • -
    • opts - table: Values passed from matchers like prefix -
    • -
    - -

    Returns:

    -
      -
    1. - number|nil: Index of line where the hsla/hsl function ended
    2. -
    3. - string|nil: rgb hex value
    4. -
    - - - -
    @@ -258,101 +178,6 @@ - -
    - - name_parser (line, i, opts) -
    -
    - Grab all the colour values from vim.api.nvim_get_color_map and create a lookup table. - COLOR_MAP is used to store the colour values - - -

    Parameters:

    -
      -
    • line - string: Line to parse -
    • -
    • i - number: Index of line from where to start parsing -
    • -
    • opts - table: Currently contains whether tailwind is enabled or not -
    • -
    - - - - - -
    -
    - - rgb_function_parser (line, i, opts) -
    -
    - Parse for rgb() rgba() css function and return rgb hex. - For more info: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb - - -

    Parameters:

    -
      -
    • line - string: Line to parse -
    • -
    • i - number: Index of line from where to start parsing -
    • -
    • opts - table: Values passed from matchers like prefix -
    • -
    - -

    Returns:

    -
      -
    1. - number|nil: Index of line where the rgb/rgba function ended
    2. -
    3. - string|nil: rgb hex value
    4. -
    - - - - -
    -
    - - rgba_hex_parser (line, i, opts) -
    -
    - parse for #rrggbbaa and return rgb hex. - a format used in android apps - - -

    Parameters:

    -
      -
    • line - string: line to parse -
    • -
    • i - number: index of line from where to start parsing -
    • -
    • opts - table: Containing minlen, maxlen, valid_lengths -
    • -
    - -

    Returns:

    -
      -
    1. - number|nil: index of line where the hex value ended
    2. -
    3. - string|nil: rgb hex value
    4. -
    - - - -
    diff --git a/doc/modules/colorizer.html b/doc/modules/colorizer.html index 1d338e1..ad89e1b 100644 --- a/doc/modules/colorizer.html +++ b/doc/modules/colorizer.html @@ -44,6 +44,11 @@
  • buffer
  • color
  • matcher
  • +
  • parser.argb_hex
  • +
  • parser.hsl
  • +
  • parser.names
  • +
  • parser.rgb
  • +
  • parser.rgba_hex
  • sass
  • tailwind
  • trie
  • diff --git a/doc/modules/colorizer.matcher.html b/doc/modules/colorizer.matcher.html index 3034bb2..971193b 100644 --- a/doc/modules/colorizer.matcher.html +++ b/doc/modules/colorizer.matcher.html @@ -42,6 +42,11 @@
  • buffer
  • color
  • matcher
  • +
  • parser.argb_hex
  • +
  • parser.hsl
  • +
  • parser.names
  • +
  • parser.rgb
  • +
  • parser.rgba_hex
  • sass
  • tailwind
  • trie
  • diff --git a/doc/modules/colorizer.parser.argb_hex.html b/doc/modules/colorizer.parser.argb_hex.html new file mode 100644 index 0000000..52b4387 --- /dev/null +++ b/doc/modules/colorizer.parser.argb_hex.html @@ -0,0 +1,124 @@ + + + + + colorizer Docs + + + + +
    + +
    + +
    +
    +
    + + +
    + + + + + + +
    + +

    Module colorizer.parser.argb_hex

    +

    Helper function to parse argb

    +

    + +

    + + +

    Functions

    + + + + + +
    parser.argb_hex_parser (line, i)parse for 0xaarrggbb and return rgb hex.
    + +
    +
    + + +

    Functions

    + +
    +
    + + parser.argb_hex_parser (line, i) +
    +
    + parse for 0xaarrggbb and return rgb hex. + a format used in android apps + + +

    Parameters:

    +
      +
    • line + string: line to parse +
    • +
    • i + number: index of line from where to start parsing +
    • +
    + +

    Returns:

    +
      +
    1. + number|nil: index of line where the hex value ended
    2. +
    3. + string|nil: rgb hex value
    4. +
    + + + + +
    +
    + + +
    +
    +
    +generated by LDoc 1.4.6 +Last updated - February +
    +
    + + diff --git a/doc/modules/colorizer.parser.hsl.html b/doc/modules/colorizer.parser.hsl.html new file mode 100644 index 0000000..b42e253 --- /dev/null +++ b/doc/modules/colorizer.parser.hsl.html @@ -0,0 +1,127 @@ + + + + + colorizer Docs + + + + +
    + +
    + +
    +
    +
    + + +
    + + + + + + +
    + +

    Module colorizer.parser.hsl

    +

    Helper function to parse argb

    +

    + +

    + + +

    Functions

    + + + + + +
    parser.hsl_function_parser (line, i, opts)Parse for hsl() hsla() css function and return rgb hex.
    + +
    +
    + + +

    Functions

    + +
    +
    + + parser.hsl_function_parser (line, i, opts) +
    +
    + Parse for hsl() hsla() css function and return rgb hex. + For more info: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsl + + +

    Parameters:

    +
      +
    • line + string: Line to parse +
    • +
    • i + number: Index of line from where to start parsing +
    • +
    • opts + table: Values passed from matchers like prefix +
    • +
    + +

    Returns:

    +
      +
    1. + number|nil: Index of line where the hsla/hsl function ended
    2. +
    3. + string|nil: rgb hex value
    4. +
    + + + + +
    +
    + + +
    +
    +
    +generated by LDoc 1.4.6 +Last updated - February +
    +
    + + diff --git a/doc/modules/colorizer.parser.names.html b/doc/modules/colorizer.parser.names.html new file mode 100644 index 0000000..d826dee --- /dev/null +++ b/doc/modules/colorizer.parser.names.html @@ -0,0 +1,120 @@ + + + + + colorizer Docs + + + + +
    + +
    + +
    +
    +
    + + +
    + + + + + + +
    + +

    Module colorizer.parser.names

    +

    Helper function to parse argb

    +

    + +

    + + +

    Functions

    + + + + + +
    parser.name_parser (line, i, opts)Grab all the colour values from vim.api.nvim_get_color_map and create a lookup table.
    + +
    +
    + + +

    Functions

    + +
    +
    + + parser.name_parser (line, i, opts) +
    +
    + Grab all the colour values from vim.api.nvim_get_color_map and create a lookup table. + COLOR_MAP is used to store the colour values + + +

    Parameters:

    +
      +
    • line + string: Line to parse +
    • +
    • i + number: Index of line from where to start parsing +
    • +
    • opts + table: Currently contains whether tailwind is enabled or not +
    • +
    + + + + + +
    +
    + + +
    +
    +
    +generated by LDoc 1.4.6 +Last updated - February +
    +
    + + diff --git a/doc/modules/colorizer.parser.rgb.html b/doc/modules/colorizer.parser.rgb.html new file mode 100644 index 0000000..0e30612 --- /dev/null +++ b/doc/modules/colorizer.parser.rgb.html @@ -0,0 +1,127 @@ + + + + + colorizer Docs + + + + +
    + +
    + +
    +
    +
    + + +
    + + + + + + +
    + +

    Module colorizer.parser.rgb

    +

    Helper function to parse argb

    +

    + +

    + + +

    Functions

    + + + + + +
    parser.rgb_function_parser (line, i, opts)Parse for rgb() rgba() css function and return rgb hex.
    + +
    +
    + + +

    Functions

    + +
    +
    + + parser.rgb_function_parser (line, i, opts) +
    +
    + Parse for rgb() rgba() css function and return rgb hex. + For more info: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb + + +

    Parameters:

    +
      +
    • line + string: Line to parse +
    • +
    • i + number: Index of line from where to start parsing +
    • +
    • opts + table: Values passed from matchers like prefix +
    • +
    + +

    Returns:

    +
      +
    1. + number|nil: Index of line where the rgb/rgba function ended
    2. +
    3. + string|nil: rgb hex value
    4. +
    + + + + +
    +
    + + +
    +
    +
    +generated by LDoc 1.4.6 +Last updated - February +
    +
    + + diff --git a/doc/modules/colorizer.parser.rgba_hex.html b/doc/modules/colorizer.parser.rgba_hex.html new file mode 100644 index 0000000..3e7187e --- /dev/null +++ b/doc/modules/colorizer.parser.rgba_hex.html @@ -0,0 +1,127 @@ + + + + + colorizer Docs + + + + +
    + +
    + +
    +
    +
    + + +
    + + + + + + +
    + +

    Module colorizer.parser.rgba_hex

    +

    Helper function to parse argb

    +

    + +

    + + +

    Functions

    + + + + + +
    parser.rgba_hex_parser (line, i, opts)parse for #rrggbbaa and return rgb hex.
    + +
    +
    + + +

    Functions

    + +
    +
    + + parser.rgba_hex_parser (line, i, opts) +
    +
    + parse for #rrggbbaa and return rgb hex. + a format used in android apps + + +

    Parameters:

    +
      +
    • line + string: line to parse +
    • +
    • i + number: index of line from where to start parsing +
    • +
    • opts + table: Containing minlen, maxlen, valid_lengths +
    • +
    + +

    Returns:

    +
      +
    1. + number|nil: index of line where the hex value ended
    2. +
    3. + string|nil: rgb hex value
    4. +
    + + + + +
    +
    + + +
    +
    +
    +generated by LDoc 1.4.6 +Last updated - February +
    +
    + + diff --git a/doc/modules/colorizer.sass.html b/doc/modules/colorizer.sass.html index cf0d133..0f93f28 100644 --- a/doc/modules/colorizer.sass.html +++ b/doc/modules/colorizer.sass.html @@ -42,6 +42,11 @@
  • buffer
  • color
  • matcher
  • +
  • parser.argb_hex
  • +
  • parser.hsl
  • +
  • parser.names
  • +
  • parser.rgb
  • +
  • parser.rgba_hex
  • sass
  • tailwind
  • trie
  • diff --git a/doc/modules/colorizer.tailwind.html b/doc/modules/colorizer.tailwind.html index 346a21a..76ea36f 100644 --- a/doc/modules/colorizer.tailwind.html +++ b/doc/modules/colorizer.tailwind.html @@ -42,6 +42,11 @@
  • buffer
  • color
  • matcher
  • +
  • parser.argb_hex
  • +
  • parser.hsl
  • +
  • parser.names
  • +
  • parser.rgb
  • +
  • parser.rgba_hex
  • sass
  • tailwind
  • trie
  • diff --git a/doc/modules/colorizer.trie.html b/doc/modules/colorizer.trie.html index 9071219..ba03d80 100644 --- a/doc/modules/colorizer.trie.html +++ b/doc/modules/colorizer.trie.html @@ -38,6 +38,11 @@
  • buffer
  • color
  • matcher
  • +
  • parser.argb_hex
  • +
  • parser.hsl
  • +
  • parser.names
  • +
  • parser.rgb
  • +
  • parser.rgba_hex
  • sass
  • tailwind
  • trie
  • diff --git a/doc/modules/colorizer.utils.html b/doc/modules/colorizer.utils.html index 5ebd197..f9654af 100644 --- a/doc/modules/colorizer.utils.html +++ b/doc/modules/colorizer.utils.html @@ -42,6 +42,11 @@
  • buffer
  • color
  • matcher
  • +
  • parser.argb_hex
  • +
  • parser.hsl
  • +
  • parser.names
  • +
  • parser.rgb
  • +
  • parser.rgba_hex
  • sass
  • tailwind
  • trie
  • -- cgit v1.2.3-70-g09d2