From 6a7c7749204b256e779c245b1e999bf852ad7b64 Mon Sep 17 00:00:00 2001 From: Gianmaria Bajo Date: Fri, 10 Mar 2023 16:35:53 +0000 Subject: patch 9.0.1397: highlight for popupmenu kind and extra cannot be set Problem: Highlight for popupmenu kind and extra cannot be set. Solution: Add PmenuKind, PmenuKindSel, PmenuExtra and PmenuExtraSel highlight groups and use them. (Gianmaria Bajo, closes #12114) --- src/vim.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/vim.h') diff --git a/src/vim.h b/src/vim.h index 5193d598f8..49b781469f 100644 --- a/src/vim.h +++ b/src/vim.h @@ -1418,8 +1418,8 @@ typedef enum auto_event event_T; /* * Values for index in highlight_attr[]. - * When making changes, also update HL_FLAGS below! And update the default - * value of 'highlight' in option.c. + * When making changes, also update HL_FLAGS below! + * And update the default value of 'highlight': HIGHLIGHT_INIT in optiondefs.h */ typedef enum { @@ -1465,6 +1465,10 @@ typedef enum , HLF_SPL // SpellLocal , HLF_PNI // popup menu normal item , HLF_PSI // popup menu selected item + , HLF_PNK // popup menu normal item "kind" + , HLF_PSK // popup menu selected item "kind" + , HLF_PNX // popup menu normal item "menu" (extra text) + , HLF_PSX // popup menu selected item "menu" (extra text) , HLF_PSB // popup menu scrollbar , HLF_PST // popup menu scrollbar thumb , HLF_TP // tabpage line @@ -1485,7 +1489,8 @@ typedef enum 'n', 'a', 'b', 'N', 'G', 'O', 'r', 's', 'S', 'c', 't', 'v', 'V', \ 'w', 'W', 'f', 'F', 'A', 'C', 'D', 'T', '-', '>', \ 'B', 'P', 'R', 'L', \ - '+', '=', 'x', 'X', '*', '#', '_', '!', '.', 'o', 'q', \ + '+', '=', '[', ']', '{', '}', 'x', 'X', \ + '*', '#', '_', '!', '.', 'o', 'q', \ 'z', 'Z'} /* -- cgit v1.2.3