|
|
@@ -16,6 +16,7 @@ The type used for defining appropriate callbacks for render_string(). |
|
|
|
+ length - number of characters that matched a highlighting rule |
|
|
|
+ attributes - arbitrary data associated with the matched rule; intended to hold color/font information for example |
|
|
|
|
|
|
|
|
|
|
|
typedef struct { |
|
|
|
char * key; |
|
|
|
attribute_callback_t callback; |
|
|
|