Problem: The syntax highlight group is defined based on the RGB code used, which causes problems if 2 colors use the same RGB (e.g. if you redefine xterm ANSI colors in .Xresources). It can create the following (Note the colors 16, 21 and 51):
It can be reproduced by modifying the ANSI colors of the terminal.
This PR makes the highlight independent from the rgb code used, as long as it is an RGB code.
Problem: The syntax highlight group is defined based on the RGB code used, which causes problems if 2 colors use the same RGB (e.g. if you redefine xterm ANSI colors in
.Xresources
). It can create the following (Note the colors 16, 21 and 51):It can be reproduced by modifying the ANSI colors of the terminal.
This PR makes the highlight independent from the rgb code used, as long as it is an RGB code.
Result afterwards: