diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-05-21 00:19:35 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-05-22 00:05:30 +0200 |
| commit | ffcdfc2012a9cbc9a104a75e8e87bcf5fa5de2e1 (patch) | |
| tree | 0089d3f4e51f3523bcacda33e1fefbcdad996953 /vis.h | |
| parent | 1d2005c82f19f2094ffb57394832754160b9bbc6 (diff) | |
| download | vis-ffcdfc2012a9cbc9a104a75e8e87bcf5fa5de2e1.tar.gz vis-ffcdfc2012a9cbc9a104a75e8e87bcf5fa5de2e1.tar.xz | |
vis: move syntax highlighting to pure Lua code
Diffstat (limited to 'vis.h')
| -rw-r--r-- | vis.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |
