frontend: add a line editor for shell input
This commit is contained in:
20
frontend/line-ed/hooks/highlight.h
Normal file
20
frontend/line-ed/hooks/highlight.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user