Fix recursive regions matching when a recursive matches just before an end

%sh{ $test {} $test } was incorrrectly closing the %sh block at the first {
because it was immediatly followed by a }.
This commit is contained in:
Maxime Coste 2015-02-02 13:48:27 +00:00
parent c004187f32
commit b4442055e8

View File

@ -820,7 +820,7 @@ struct RegionMatches
return end_it; return end_it;
while (rec_it != recurse_matches.end() and while (rec_it != recurse_matches.end() and
rec_it->end_coord() < end_it->begin_coord()) rec_it->end_coord() <= end_it->begin_coord())
{ {
++recurse_level; ++recurse_level;
++rec_it; ++rec_it;