Fix match groups.

This commit is contained in:
chriseth 2017-01-10 16:35:18 +01:00
parent 7127f2fdfd
commit 58509ca3aa

View File

@ -48,6 +48,7 @@ pair<Pattern, function<Pattern()> > const* Rules::findFirstMatch(
{
if (rule.first.matches(_expr, _classes))
return &rule;
resetMatchGroups();
}
return nullptr;
}