aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax_defs.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-02-13 12:06:08 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-02-16 23:17:39 -0300
commitd8f3458ec745cf56dc692b55cc76d8323dbbfc53 (patch)
tree8d7633afd28546693af5719537c4e75f1ba99eec /src/nvim/syntax_defs.h
parent9a2dd7c4987679106fba24fb7702a11aba6b6ccf (diff)
downloadrneovim-d8f3458ec745cf56dc692b55cc76d8323dbbfc53.tar.gz
rneovim-d8f3458ec745cf56dc692b55cc76d8323dbbfc53.tar.bz2
rneovim-d8f3458ec745cf56dc692b55cc76d8323dbbfc53.zip
syntax: Refactor to store all term and gui attributes independently
Now the attrentry_T structure will store all attributes in separate fields for cterm and rgb UIs.
Diffstat (limited to 'src/nvim/syntax_defs.h')
-rw-r--r--src/nvim/syntax_defs.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/nvim/syntax_defs.h b/src/nvim/syntax_defs.h
index abf7ea5a7d..67cf672ef2 100644
--- a/src/nvim/syntax_defs.h
+++ b/src/nvim/syntax_defs.h
@@ -67,23 +67,11 @@ struct syn_state {
* may have made the state invalid */
};
-/*
- * Structure shared between syntax.c, screen.c and gui_x11.c.
- */
+// Structure shared between syntax.c, screen.c
typedef struct attr_entry {
- short ae_attr; /* HL_BOLD, etc. */
- RgbValue fg_color, bg_color;
- union {
- struct {
- char_u *start; /* start escape sequence */
- char_u *stop; /* stop escape sequence */
- } term;
- struct {
- /* These colors need to be > 8 bits to hold 256. */
- uint16_t fg_color; /* foreground color number */
- uint16_t bg_color; /* background color number */
- } cterm;
- } ae_u;
+ short rgb_ae_attr, cterm_ae_attr; // HL_BOLD, etc.
+ RgbValue rgb_fg_color, rgb_bg_color;
+ int cterm_fg_color, cterm_bg_color;
} attrentry_T;
#endif // NVIM_SYNTAX_DEFS_H