21 lines
409 B
C
21 lines
409 B
C
#ifndef LINE_ED_HOOKS_HIGHLIGHT_H_
|
|
#define LINE_ED_HOOKS_HIGHLIGHT_H_
|
|
|
|
#include "../line-ed.h"
|
|
|
|
#include <ivy/lang/lex.h>
|
|
|
|
struct lex;
|
|
|
|
struct highlight_hook {
|
|
struct line_ed_hook hook_base;
|
|
struct ivy_line_source hook_src;
|
|
const char *hook_bufp;
|
|
struct lex *hook_lex;
|
|
};
|
|
|
|
extern struct highlight_hook *highlight_hook_create(void);
|
|
extern void highlight_hook_destroy(struct highlight_hook *hook);
|
|
|
|
#endif
|