aboutsummaryrefslogtreecommitdiff
path: root/ui.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 /ui.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 'ui.h')
-rw-r--r--ui.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui.h b/ui.h
index 8c94d51..656f5a8 100644
--- a/ui.h
+++ b/ui.h
@@ -23,7 +23,14 @@ enum UiOption {
UI_OPTION_SYMBOL_EOF = 1 << 6,
};
-#define UI_STYLES_MAX 64
+enum UiStyles {
+ UI_STYLE_LEXER_MAX = 64,
+ UI_STYLE_DEFAULT,
+ UI_STYLE_CURSOR,
+ UI_STYLE_SELECTION,
+ UI_STYLE_LINENUMBER,
+ UI_STYLE_MAX,
+};
#include "text.h"
#include "view.h"