NeoMutt  2021-10-29-220-g2b1eec
Teaching an old dog new tricks
DOXYGEN
RegexColor Struct Reference

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

#include "regex4.h"

Public Member Functions

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

Data Fields

char * pattern
 Pattern to match. More...
 
regex_t regex
 Compiled regex. More...
 
int match
 Substring to match, 0 for old behaviour. 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 regex4.h.

Member Function Documentation

◆ STAILQ_ENTRY()

RegexColor::STAILQ_ENTRY ( RegexColor  )

Linked list.

Field Documentation

◆ pattern

char* RegexColor::pattern

Pattern to match.

Definition at line 37 of file regex4.h.

◆ regex

regex_t RegexColor::regex

Compiled regex.

Definition at line 38 of file regex4.h.

◆ match

int RegexColor::match

Substring to match, 0 for old behaviour.

Definition at line 39 of file regex4.h.

◆ color_pattern

struct PatternList* RegexColor::color_pattern

Compiled pattern to speed up index color calculation.

Definition at line 40 of file regex4.h.

◆ fg

uint32_t RegexColor::fg

Foreground colour.

Definition at line 41 of file regex4.h.

◆ bg

uint32_t RegexColor::bg

Background colour.

Definition at line 42 of file regex4.h.

◆ pair

int RegexColor::pair

Colour pair index.

Definition at line 43 of file regex4.h.

◆ stop_matching

bool RegexColor::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 regex4.h.


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