Fix match groups.

This commit is contained in:
chriseth
2017-01-12 17:52:27 +01:00
parent 7127f2fdfd
commit 58509ca3aa
+1
View File
@@ -48,6 +48,7 @@ pair<Pattern, function<Pattern()> > const* Rules::findFirstMatch(
{
if (rule.first.matches(_expr, _classes))
return &rule;
resetMatchGroups();
}
return nullptr;
}