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 --- vis-core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vis-core.h') diff --git a/vis-core.h b/vis-core.h index ceb1311..1333eab 100644 --- a/vis-core.h +++ b/vis-core.h @@ -156,6 +156,7 @@ struct Vis { volatile sig_atomic_t sigbus; /* one of the memory mapped region became unavailable (SIGBUS) */ sigjmp_buf sigbus_jmpbuf; /* used to jump back to a known good state in the mainloop after (SIGBUS) */ Map *actions; /* registered editor actions / special keys commands */ + lua_State *lua; /* lua context used for syntax highligthing */ }; /** stuff used by multiple of the vis-* files */ -- cgit v1.2.3