mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.1798: The 'syntax' option has no completion.
Problem: The 'syntax' option has no completion. Solution: Add syntax option completion. closes: #12900 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
committed by
Christian Brabandt
parent
f97f6bbf56
commit
6dfdff3f27
@@ -7374,6 +7374,14 @@ set_context_in_set_cmd(
|
||||
|
||||
xp->xp_pattern = p + 1;
|
||||
|
||||
#ifdef FEAT_SYN_HL
|
||||
if (options[opt_idx].var == (char_u *)&p_syn)
|
||||
{
|
||||
xp->xp_context = EXPAND_OWNSYNTAX;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (flags & P_EXPAND)
|
||||
{
|
||||
p = options[opt_idx].var;
|
||||
|
Reference in New Issue
Block a user