aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax_defs.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-12-08 22:24:00 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-12-08 23:44:24 -0300
commit86542c6fd0677a712c6b87049a04d8e67cda3e3d (patch)
treecd4e00ca6450acdb978936305fac40108543d201 /src/nvim/syntax_defs.h
parent07e569a25dba4bf6d9743102a34666964efb45cb (diff)
downloadrneovim-86542c6fd0677a712c6b87049a04d8e67cda3e3d.tar.gz
rneovim-86542c6fd0677a712c6b87049a04d8e67cda3e3d.tar.bz2
rneovim-86542c6fd0677a712c6b87049a04d8e67cda3e3d.zip
syntax: Use RGB/GUI attribute information for "abstract_ui"
Instead of using classic cterm color numbers and attributes, treat "abstract_ui" as a GUI: Pass rgb color numbers and gui attributes when the "highlight_set" UI method is called. The terminal UI will have to translate RGB color information to an appropriate color number, and the "term"/"cterm" :highlight keys will eventually be deprecated.
Diffstat (limited to 'src/nvim/syntax_defs.h')
-rw-r--r--src/nvim/syntax_defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/syntax_defs.h b/src/nvim/syntax_defs.h
index 11e342f870..abf7ea5a7d 100644
--- a/src/nvim/syntax_defs.h
+++ b/src/nvim/syntax_defs.h
@@ -3,6 +3,8 @@
#include "nvim/regexp_defs.h"
+typedef int32_t RgbValue;
+
# define SST_MIN_ENTRIES 150 /* minimal size for state stack array */
# define SST_MAX_ENTRIES 1000 /* maximal size for state stack array */
# define SST_FIX_STATES 7 /* size of sst_stack[]. */
@@ -70,6 +72,7 @@ struct syn_state {
*/
typedef struct attr_entry {
short ae_attr; /* HL_BOLD, etc. */
+ RgbValue fg_color, bg_color;
union {
struct {
char_u *start; /* start escape sequence */