frontend: add a line editor for shell input

This commit is contained in:
2024-11-18 09:53:55 +00:00
parent f44a3364b3
commit 4fc1a6ade8
22 changed files with 2137 additions and 0 deletions

View 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