23#ifndef MUTT_COLOR_REGEX4_H
24#define MUTT_COLOR_REGEX4_H
Color and attribute parsing.
ColorId
List of all coloured objects.
Convenience wrapper for the library headers.
#define STAILQ_HEAD(name, type)
struct RegexColorList * regex_colors_get_list(enum ColorId cid)
Return the RegexColorList for a colour id.
int regex_colors_parse_status_list(enum ColorId cid, const char *pat, struct AttrColor *ac, int match, struct Buffer *err)
Parse a Regex 'color status' command.
bool regex_colors_parse_color_list(enum ColorId cid, const char *pat, struct AttrColor *ac, int *rc, struct Buffer *err)
Parse a Regex 'color' command.
void regex_colors_init(void)
Initialise the Regex colours.
void regex_color_free(struct RegexColorList *list, struct RegexColor **ptr)
Free a Regex colour.
bool regex_colors_parse_uncolor(enum ColorId cid, const char *pat, bool uncolor)
Parse a Regex 'uncolor' command.
void regex_colors_reset(void)
Reset the Regex colours.
void regex_colors_cleanup(void)
Cleanup the Regex colours.
struct RegexColor * regex_color_new(void)
Create a new RegexColor.
void regex_color_list_clear(struct RegexColorList *rcl)
Free the contents of a RegexColorList.
void regex_color_clear(struct RegexColor *rcol)
Free the contents of a Regex colour.
A curses colour and its attributes.
String manipulation buffer.
A regular expression and a color to highlight a line.
regex_t regex
Compiled regex.
struct PatternList * color_pattern
Compiled pattern to speed up index color calculation.
struct AttrColor attr_color
Colour and attributes to apply.
char * pattern
Pattern to match.
bool stop_matching
Used by the pager for body patterns, to prevent the color from being retried once it fails.
int match
Substring to match, 0 for old behaviour.
STAILQ_ENTRY(RegexColor) entries
Linked list.