From ffcdfc2012a9cbc9a104a75e8e87bcf5fa5de2e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 21 May 2016 00:19:35 +0200 Subject: vis: move syntax highlighting to pure Lua code --- vis.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vis.h') 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); -- cgit v1.2.3