14 #ifndef T3_HIGHLIGHT_H
15 #define T3_HIGHLIGHT_H
17 #include <t3config/config.h>
18 #include <t3highlight/highlight_api.h>
41 #define T3_HIGHLIGHT_VERSION 0
46 #define T3_ERR_INVALID_FORMAT (-96)
48 #define T3_ERR_INVALID_REGEX (-95)
50 #define T3_ERR_NO_SYNTAX (-94)
52 #define T3_ERR_UNDEFINED_USE (-93)
54 #define T3_ERR_INVALID_NAME (-92)
56 #define T3_ERR_EMPTY_START_CYCLE (-91)
58 #define T3_ERR_USE_CYCLE (-90)
64 #define T3_HIGHLIGHT_UTF8 (1<<0)
75 #define T3_HIGHLIGHT_UTF8_NOCHECK (1<<1)
77 #define T3_HIGHLIGHT_USE_PATH (1<<2)
79 #define T3_HIGHLIGHT_VERBOSE_ERROR (1<<3)
140 int (*map_style)(
void *,
const char *),
void *map_style_data,
int flags,
t3_highlight_error_t *error);
155 int (*map_style)(
void *,
const char *),
void *map_style_data,
int flags,
t3_highlight_error_t *error);
168 int (*map_style)(
void *,
const char *),
void *map_style_data,
int flags,
t3_highlight_error_t *error);
182 int (*map_style)(
void *,
const char *),
void *map_style_data,
int flags,
t3_highlight_error_t *error);
197 int (*map_style)(
void *,
const char *),
void *map_style_data,
int flags,
t3_highlight_error_t *error);