IDA C++ SDK 9.2
Loading...
Searching...
No Matches
ida_syntax_highlighter_t Struct Reference

#include <ida_highlighter.hpp>

Inheritance diagram for ida_syntax_highlighter_t:
syntax_highlighter_t

Classes

struct  keywords_style_t
struct  multicmt_t
struct  plain_char_ptr_t

Public Member Functions

 ida_syntax_highlighter_t ()
void highlight_block_ex (highlighter_cbs_t *highlighter_cbs, const qstring &text)
void add_ida_syntax_highlighter_helper (ida_syntax_highlighter_helper_t *sh)
void set_open_cmt (const char *begin)
void add_multi_line_comment (const char *begin, const char *end)
keywords_style_tget_keyword_style (syntax_highlight_style _style)
void add_keyword_to_style (const char *kw, syntax_highlight_style _style)
void add_keywords (const char *kwstr, syntax_highlight_style _style)
Public Member Functions inherited from syntax_highlighter_t
 syntax_highlighter_t (block_highlighter_t *bh=nullptr)
virtual ~syntax_highlighter_t ()

Public Attributes

char open_strconst
char close_strconst
char open_chrconst
char close_chrconst
char escape_char
char preprocessor_char
Public Attributes inherited from syntax_highlighter_t
block_highlighter_thighlight_block

Protected Types

typedef qvector< keywords_style_tkeywords_t
typedef qvector< multicmt_tmulticmtvec_t

Protected Member Functions

bool pending_nonspaces_present (const char *end)
const char * parse_literal_const (highlighter_cbs_t *highlighter_cbs, const char *ptr, char literal_closer)
void flush_output (highlighter_cbs_t *highlighter_cbs, const char *ptr, syntax_highlight_style style)
void handle_cmt (highlighter_cbs_t *highlighter_cbs, int mcmt_idx, const char **ptr)
void handle_preproc (highlighter_cbs_t *highlighter_cbs, const char **ptr)

Protected Attributes

qstrvec_t keyword_memory
keywords_t keywords
qstring open_cmt
multicmtvec_t multicmts
char literal_closer
syntax_highlight_style text_color = HF_DEFAULT
syntax_highlight_style comment_color = HF_COMMENT
syntax_highlight_style string_color = HF_STRING
syntax_highlight_style preprocessor_color = HF_PREPROC
ida_syntax_highlighter_helpers_t ida_syntax_highlighter_helpers
const char * input
const char * pending
syntax_highlight_style style = HF_DEFAULT

Additional Inherited Members

Public Types inherited from syntax_highlighter_t
typedef void idaapi block_highlighter_t(void *context, highlighter_cbs_t *highlighter_cbs, const qstring &text)
 Function for extlang syntax highlighting.

Member Typedef Documentation

◆ keywords_t

◆ multicmtvec_t

Constructor & Destructor Documentation

◆ ida_syntax_highlighter_t()

ida_syntax_highlighter_t::ida_syntax_highlighter_t ( )
inline

Member Function Documentation

◆ pending_nonspaces_present()

bool ida_syntax_highlighter_t::pending_nonspaces_present ( const char * end)
inlineprotected

◆ parse_literal_const()

const char * ida_syntax_highlighter_t::parse_literal_const ( highlighter_cbs_t * highlighter_cbs,
const char * ptr,
char literal_closer )
protected

◆ flush_output()

void ida_syntax_highlighter_t::flush_output ( highlighter_cbs_t * highlighter_cbs,
const char * ptr,
syntax_highlight_style style )
protected

◆ handle_cmt()

void ida_syntax_highlighter_t::handle_cmt ( highlighter_cbs_t * highlighter_cbs,
int mcmt_idx,
const char ** ptr )
protected

◆ handle_preproc()

void ida_syntax_highlighter_t::handle_preproc ( highlighter_cbs_t * highlighter_cbs,
const char ** ptr )
protected

◆ highlight_block_ex()

void ida_syntax_highlighter_t::highlight_block_ex ( highlighter_cbs_t * highlighter_cbs,
const qstring & text )

◆ add_ida_syntax_highlighter_helper()

void ida_syntax_highlighter_t::add_ida_syntax_highlighter_helper ( ida_syntax_highlighter_helper_t * sh)
inline

◆ set_open_cmt()

void ida_syntax_highlighter_t::set_open_cmt ( const char * begin)
inline

◆ add_multi_line_comment()

void ida_syntax_highlighter_t::add_multi_line_comment ( const char * begin,
const char * end )
inline

◆ get_keyword_style()

keywords_style_t * ida_syntax_highlighter_t::get_keyword_style ( syntax_highlight_style _style)
inline

◆ add_keyword_to_style()

void ida_syntax_highlighter_t::add_keyword_to_style ( const char * kw,
syntax_highlight_style _style )
inline

◆ add_keywords()

void ida_syntax_highlighter_t::add_keywords ( const char * kwstr,
syntax_highlight_style _style )
inline

Member Data Documentation

◆ keyword_memory

qstrvec_t ida_syntax_highlighter_t::keyword_memory
protected

◆ keywords

keywords_t ida_syntax_highlighter_t::keywords
protected

◆ open_cmt

qstring ida_syntax_highlighter_t::open_cmt
protected

◆ multicmts

multicmtvec_t ida_syntax_highlighter_t::multicmts
protected

◆ literal_closer

char ida_syntax_highlighter_t::literal_closer
protected

◆ text_color

syntax_highlight_style ida_syntax_highlighter_t::text_color = HF_DEFAULT
protected

◆ comment_color

syntax_highlight_style ida_syntax_highlighter_t::comment_color = HF_COMMENT
protected

◆ string_color

syntax_highlight_style ida_syntax_highlighter_t::string_color = HF_STRING
protected

◆ preprocessor_color

syntax_highlight_style ida_syntax_highlighter_t::preprocessor_color = HF_PREPROC
protected

◆ ida_syntax_highlighter_helpers

ida_syntax_highlighter_helpers_t ida_syntax_highlighter_t::ida_syntax_highlighter_helpers
protected

◆ input

const char* ida_syntax_highlighter_t::input
protected

◆ pending

const char* ida_syntax_highlighter_t::pending
protected

◆ style

syntax_highlight_style ida_syntax_highlighter_t::style = HF_DEFAULT
protected

◆ open_strconst

char ida_syntax_highlighter_t::open_strconst

◆ close_strconst

char ida_syntax_highlighter_t::close_strconst

◆ open_chrconst

char ida_syntax_highlighter_t::open_chrconst

◆ close_chrconst

char ida_syntax_highlighter_t::close_chrconst

◆ escape_char

char ida_syntax_highlighter_t::escape_char

◆ preprocessor_char

char ida_syntax_highlighter_t::preprocessor_char

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