NeoMutt  2024-10-02-7-gd3e66a
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
RegexColor Struct Reference

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

#include "regex4.h"

+ Collaboration diagram for RegexColor:

Public Member Functions

 STAILQ_ENTRY (RegexColor) entries
 Linked list.
 

Data Fields

struct AttrColor attr_color
 Colour and attributes to apply.
 
char * pattern
 Pattern to match.
 
regex_t regex
 Compiled regex.
 
int match
 Substring to match, 0 for old behaviour.
 
struct PatternList * color_pattern
 Compiled pattern to speed up index color calculation.
 
bool stop_matching: 1
 Used by the pager for body patterns, to prevent the color from being retried once it fails.
 

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

◆ attr_color

struct AttrColor RegexColor::attr_color

Colour and attributes to apply.

Definition at line 37 of file regex4.h.

◆ pattern

char* RegexColor::pattern

Pattern to match.

Definition at line 38 of file regex4.h.

◆ regex

regex_t RegexColor::regex

Compiled regex.

Definition at line 39 of file regex4.h.

◆ match

int RegexColor::match

Substring to match, 0 for old behaviour.

Definition at line 40 of file regex4.h.

◆ color_pattern

struct PatternList* RegexColor::color_pattern

Compiled pattern to speed up index color calculation.

Definition at line 41 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 43 of file regex4.h.


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