Developer Documentation
HighlightingRule Class Reference

Container to describe a highlighting rule. Based on a regular expression, a relevant match # and the format. More...

#include <OpenFlipper/widgets/pythonWidget/PythonSyntaxHighlighter.hh>

Public Member Functions

 HighlightingRule (const QString &patternStr, int n, const QTextCharFormat &matchingFormat)
 

Public Attributes

QString originalRuleStr
 
QRegularExpression pattern
 
int nth
 
QTextCharFormat format
 

Detailed Description

Container to describe a highlighting rule. Based on a regular expression, a relevant match # and the format.

Definition at line 34 of file PythonSyntaxHighlighter.hh.

Constructor & Destructor Documentation

◆ HighlightingRule()

HighlightingRule::HighlightingRule ( const QString &  patternStr,
int  n,
const QTextCharFormat &  matchingFormat 
)
inline

Definition at line 37 of file PythonSyntaxHighlighter.hh.

Member Data Documentation

◆ format

QTextCharFormat HighlightingRule::format

Definition at line 48 of file PythonSyntaxHighlighter.hh.

◆ nth

int HighlightingRule::nth

Definition at line 47 of file PythonSyntaxHighlighter.hh.

◆ originalRuleStr

QString HighlightingRule::originalRuleStr

Definition at line 45 of file PythonSyntaxHighlighter.hh.

◆ pattern

QRegularExpression HighlightingRule::pattern

Definition at line 46 of file PythonSyntaxHighlighter.hh.


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