mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.2761: using "syn include" does not work properly
Problem: Using "syn include" does not work properly. Solution: Don't add current_syn_inc_tag to topgrp. (Jaehwang Jerry Jung, closes #8104)
This commit is contained in:
13
src/syntax.c
13
src/syntax.c
@@ -5990,12 +5990,17 @@ get_id_list(
|
||||
break;
|
||||
}
|
||||
if (name[1] == 'A')
|
||||
id = SYNID_ALLBUT;
|
||||
id = SYNID_ALLBUT + current_syn_inc_tag;
|
||||
else if (name[1] == 'T')
|
||||
id = SYNID_TOP;
|
||||
{
|
||||
if (curwin->w_s->b_syn_topgrp >= SYNID_CLUSTER)
|
||||
id = curwin->w_s->b_syn_topgrp;
|
||||
else
|
||||
id = SYNID_TOP + current_syn_inc_tag;
|
||||
}
|
||||
else
|
||||
id = SYNID_CONTAINED;
|
||||
id += current_syn_inc_tag;
|
||||
id = SYNID_CONTAINED + current_syn_inc_tag;
|
||||
|
||||
}
|
||||
else if (name[1] == '@')
|
||||
{
|
||||
|
Reference in New Issue
Block a user