aboutsummaryrefslogtreecommitdiff
path: root/vis-core.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-05-21 00:19:35 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-05-22 00:05:30 +0200
commitffcdfc2012a9cbc9a104a75e8e87bcf5fa5de2e1 (patch)
tree0089d3f4e51f3523bcacda33e1fefbcdad996953 /vis-core.h
parent1d2005c82f19f2094ffb57394832754160b9bbc6 (diff)
downloadvis-ffcdfc2012a9cbc9a104a75e8e87bcf5fa5de2e1.tar.gz
vis-ffcdfc2012a9cbc9a104a75e8e87bcf5fa5de2e1.tar.xz
vis: move syntax highlighting to pure Lua code
Diffstat (limited to 'vis-core.h')
-rw-r--r--vis-core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vis-core.h b/vis-core.h
index 6d3b35f..6d463df 100644
--- a/vis-core.h
+++ b/vis-core.h
@@ -3,6 +3,7 @@
#include <setjmp.h>
#include "vis.h"
+#include "vis-lua.h"
#include "register.h"
#include "text.h"
#include "text-regex.h"
@@ -132,6 +133,8 @@ struct Win {
Mode modes[VIS_MODE_INVALID]; /* overlay mods used for per window key bindings */
Win *parent; /* window which was active when showing the command prompt */
Mode *parent_mode; /* mode which was active when showing the command prompt */
+ ViewEvent event; /* callbacks from view.[ch] */
+ char *lexer_name; /* corresponds to filename in lexers/ subdirectory */
Win *prev, *next; /* neighbouring windows */
};