mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 08:05:45 +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);
|
||||
|
||||
if (name != null && success)
|
||||
result.AddNamedMatch(name, output);
|
||||
result.AppendTag(Tag);
|
||||
if (success)
|
||||
{
|
||||
if (name != null)
|
||||
result.AddNamedMatch(name, output);
|
||||
result.AppendTag(Tag);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user