NeoMutt  2020-11-20
Teaching an old dog new tricks
DOXYGEN
ColorLine Struct Reference

A regular expression and a color to highlight a line. More...

#include "color.h"

Public Member Functions

 STAILQ_ENTRY (ColorLine) entries
 Linked list. More...
 

Data Fields

regex_t regex
 Compiled regex. More...
 
int match
 Substring to match, 0 for old behaviour. More...
 
char * pattern
 Pattern to match. More...
 
struct PatternList * color_pattern
 Compiled pattern to speed up index color calculation. More...
 
uint32_t fg
 Foreground colour. More...
 
uint32_t bg
 Background colour. More...
 
int pair
 Colour pair index. More...
 
bool stop_matching: 1
 Used by the pager for body patterns, to prevent the color from being retried once it fails. More...
 

Detailed Description

A regular expression and a color to highlight a line.

Definition at line 35 of file color.h.

Member Function Documentation

◆ STAILQ_ENTRY()

ColorLine::STAILQ_ENTRY ( ColorLine  )

Linked list.

Field Documentation

◆ regex

regex_t ColorLine::regex

Compiled regex.

Definition at line 37 of file color.h.

◆ match

int ColorLine::match

Substring to match, 0 for old behaviour.

Definition at line 38 of file color.h.

◆ pattern

char* ColorLine::pattern

Pattern to match.

Definition at line 39 of file color.h.

◆ color_pattern

struct PatternList* ColorLine::color_pattern

Compiled pattern to speed up index color calculation.

Definition at line 40 of file color.h.

◆ fg

uint32_t ColorLine::fg

Foreground colour.

Definition at line 41 of file color.h.

◆ bg

uint32_t ColorLine::bg

Background colour.

Definition at line 42 of file color.h.

◆ pair

int ColorLine::pair

Colour pair index.

Definition at line 43 of file color.h.

◆ stop_matching

bool ColorLine::stop_matching

Used by the pager for body patterns, to prevent the color from being retried once it fails.

Definition at line 45 of file color.h.


The documentation for this struct was generated from the following file: