@@ -318,8 +318,7 @@ parse_lines({bufnr}, {lines}, {line_start}, {options})
318
318
Parameters: ~
319
319
{bufnr} - number: Buffer number (0 for current)
320
320
{lines} - table: Table of lines to parse
321
- {line_start} - number: This is the buffer line number, from where to
322
- start highlighting
321
+ {line_start} - number: Buffer line number to start highlighting
323
322
{options} - table: Passed in `colorizer.setup` , Only uses
324
323
`user_default_options`
325
324
@@ -788,7 +787,7 @@ parser({line}, {i}, {opts}) *colorizer.parser.rgba_hex.parser*
788
787
{opts} - table Options containing:
789
788
- `minlen` (number): Minimum length of the color string
790
789
- `maxlen` (number): Maximum length of the color string
791
- - `valid_lengths` (table): Set of valid lengths (e.g., `{4, 7, 9 }`)
790
+ - `valid_lengths` (table): Set of valid lengths (e.g., `{3, 4, 6, 8 }`)
792
791
793
792
returns:~
794
793
number or nil The end index of the parsed hex color within the line, or
@@ -1056,6 +1055,8 @@ Provides utility functions for color handling and file operations.
1056
1055
LUA API *colorizer.utils-lua-api*
1057
1056
1058
1057
Functions: ~
1058
+ | rgb_to_hex | - Returns HEX format from RGB values
1059
+
1059
1060
| byte_is_alphanumeric | - Checks if a byte represents an alphanumeric
1060
1061
character.
1061
1062
@@ -1075,14 +1076,24 @@ Functions: ~
1075
1076
| bufme | - Validates and returns a buffer number.
1076
1077
1077
1078
1079
+ rgb_to_hex({r} , {g} , {b} ) *colorizer.utils.rgb_to_hex*
1080
+ Returns HEX format from RGB values
1081
+
1082
+ Parameters: ~
1083
+ {r} - number: Red value
1084
+ {g} - number: Green value
1085
+ {b} - number: Blue value
1086
+
1087
+
1088
+
1078
1089
byte_is_alphanumeric({byte} ) *colorizer.utils.byte_is_alphanumeric*
1079
1090
Checks if a byte represents an alphanumeric character.
1080
1091
1081
1092
Parameters: ~
1082
1093
{byte} - number The byte to check.
1083
1094
1084
1095
returns:~
1085
- boolean `true` if the byte is alphanumeric, otherwise `false` .
1096
+ boolean: `true` if the byte is alphanumeric, otherwise `false` .
1086
1097
1087
1098
1088
1099
@@ -1093,7 +1104,7 @@ byte_is_hex({byte}) *colorizer.utils.byte_is_hex*
1093
1104
{byte} - number The byte to check.
1094
1105
1095
1106
returns:~
1096
- boolean `true` if the byte is hexadecimal, otherwise `false` .
1107
+ boolean: `true` if the byte is hexadecimal, otherwise `false` .
1097
1108
1098
1109
1099
1110
@@ -1105,7 +1116,7 @@ byte_is_valid_colorchar({byte}) *colorizer.utils.byte_is_valid_colorchar*
1105
1116
{byte} - number The byte to check.
1106
1117
1107
1118
returns:~
1108
- boolean `true` if the byte is valid, otherwise `false` .
1119
+ boolean: `true` if the byte is valid, otherwise `false` .
1109
1120
1110
1121
1111
1122
@@ -1139,7 +1150,7 @@ parse_hex({byte}) *colorizer.utils.parse_hex*
1139
1150
{byte} - number The byte to parse.
1140
1151
1141
1152
returns:~
1142
- number The parsed hexadecimal value of the byte.
1153
+ number: The parsed hexadecimal value of the byte.
1143
1154
1144
1155
1145
1156
@@ -1166,7 +1177,7 @@ bufme({bufnr}) *colorizer.utils.bufme*
1166
1177
{bufnr} - number|nil: The buffer number to validate.
1167
1178
1168
1179
returns:~
1169
- number The validated buffer number.
1180
+ number: The validated buffer number.
1170
1181
1171
1182
1172
1183
0 commit comments