Make sure formats like [\\]] and [\\[] work properly.
This commit is contained in:
parent
e2dab32daa
commit
713dc8f60c
|
@ -231,13 +231,13 @@ static BOOL find_next_outermost_key(LPCWSTR source, DWORD len_remaining,
|
||||||
*nested = FALSE;
|
*nested = FALSE;
|
||||||
for (i = 1; (*mark - source) + i < len_remaining && count > 0; i++)
|
for (i = 1; (*mark - source) + i < len_remaining && count > 0; i++)
|
||||||
{
|
{
|
||||||
if ((*mark)[i] == '[')
|
if ((*mark)[i] == '[' && (*mark)[i-1] != '\\')
|
||||||
{
|
{
|
||||||
count ++;
|
count ++;
|
||||||
total_count ++;
|
total_count ++;
|
||||||
*nested = TRUE;
|
*nested = TRUE;
|
||||||
}
|
}
|
||||||
else if ((*mark)[i] == ']')
|
else if ((*mark)[i] == ']' && (*mark)[i-1] != '\\')
|
||||||
{
|
{
|
||||||
count --;
|
count --;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue