aboutsummaryrefslogtreecommitdiff
path: root/vis.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.h
parent1d2005c82f19f2094ffb57394832754160b9bbc6 (diff)
downloadvis-ffcdfc2012a9cbc9a104a75e8e87bcf5fa5de2e1.tar.gz
vis-ffcdfc2012a9cbc9a104a75e8e87bcf5fa5de2e1.tar.xz
vis: move syntax highlighting to pure Lua code
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/vis.h b/vis.h
index 32c1612..5e80ce8 100644
--- a/vis.h
+++ b/vis.h
@@ -33,6 +33,8 @@ typedef struct {
void (*file_close)(Vis*, File*);
void (*win_open)(Vis*, Win*);
void (*win_close)(Vis*, Win*);
+ void (*win_highlight)(Vis*, Win*);
+ bool (*win_syntax)(Vis*, Win*, const char *syntax);
} VisEvent;
typedef union { /* various types of arguments passed to key action functions */
@@ -98,6 +100,10 @@ void vis_window_prev(Vis*);
void vis_window_focus(Win*);
/* swap location of two windows */
void vis_window_swap(Win*, Win*);
+
+const char *vis_window_syntax_get(Win*);
+bool vis_window_syntax_set(Win*, const char *name);
+
/* display a user prompt with a certain title and default text */
void vis_prompt_show(Vis*, const char *title);