From c339bb3ae6646c3dbef8e73f41c1e797ed5ec99b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 12 Oct 2015 17:09:41 +0200 Subject: vis: experimental support for lua/lpeg based syntax highlighting The lua based lexers are searched in the following order: $VIS_PATH/lexers $HOME/.vis/lexers /usr/share/vis/lexers followed by the standard lua package.path --- view.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'view.h') diff --git a/view.h b/view.h index a9f7ec9..facccb1 100644 --- a/view.h +++ b/view.h @@ -3,6 +3,7 @@ #include #include +#include #include "register.h" #include "text.h" #include "ui.h" @@ -45,7 +46,7 @@ typedef struct { size_t col; } CursorPos; -View *view_new(Text*, ViewEvent*); +View *view_new(Text*, lua_State*, ViewEvent*); void view_ui(View*, UiWin*); /* change associated text displayed in this window */ void view_reload(View*, Text*); -- cgit v1.2.3