mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
ZoneCodeGenerator: Fix basematcher adding tag to result even when not matched successfully
This commit is contained in:
parent
090efd98f0
commit
7a6df40be5
@ -53,9 +53,12 @@
|
|||||||
|
|
||||||
var result = new TokenMatchingResult(success, consumedTokens);
|
var result = new TokenMatchingResult(success, consumedTokens);
|
||||||
|
|
||||||
if (name != null && success)
|
if (success)
|
||||||
|
{
|
||||||
|
if (name != null)
|
||||||
result.AddNamedMatch(name, output);
|
result.AddNamedMatch(name, output);
|
||||||
result.AppendTag(Tag);
|
result.AppendTag(Tag);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user