mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
vim-patch:8.0.1332: enhance quickfix highlighting #10259
Problem: Highlighting in quickfix window could be better. (Axel Bender)
Solution: Use the qfSeparator highlight item. (Yegappan Lakshmanan)
93a32e2ec4
This adds `syn_name2attr` already (from previous patch 8.0.1123,
vim/vim@1b9645de3).
This commit is contained in:

committed by
Justin M. Keyes

parent
64caeb13e6
commit
1dab52f878
@@ -7341,6 +7341,18 @@ int syn_name2id(const char_u *name)
|
||||
return i + 1;
|
||||
}
|
||||
|
||||
/// Lookup a highlight group name and return its attributes.
|
||||
/// Return zero if not found.
|
||||
int syn_name2attr(char_u *name)
|
||||
{
|
||||
int id = syn_name2id(name);
|
||||
|
||||
if (id != 0) {
|
||||
return syn_id2attr(syn_get_final_id(id));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return TRUE if highlight group "name" exists.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user