aboutsummaryrefslogtreecommitdiff
path: root/vis-core.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-12 17:09:41 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-11-08 13:37:23 +0100
commitc339bb3ae6646c3dbef8e73f41c1e797ed5ec99b (patch)
treeb27016384ad5cad67377a318f8f130fb40c3aab5 /vis-core.h
parent5f5699fb3a93f2a478f3888236f7c25bc7975fbb (diff)
downloadvis-c339bb3ae6646c3dbef8e73f41c1e797ed5ec99b.tar.gz
vis-c339bb3ae6646c3dbef8e73f41c1e797ed5ec99b.tar.xz
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
Diffstat (limited to 'vis-core.h')
-rw-r--r--vis-core.h1
1 files changed, 1 insertions, 0 deletions
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 */