ZoneCodeGenerator: Fix basematcher adding tag to result even when not matched successfully

This commit is contained in:
Jan 2019-10-27 15:38:27 +01:00
parent 090efd98f0
commit 7a6df40be5

View File

@ -53,9 +53,12 @@
var result = new TokenMatchingResult(success, consumedTokens);
if (name != null && success)
if (success)
{
if (name != null)
result.AddNamedMatch(name, output);
result.AppendTag(Tag);
}
return result;
}