mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-02 15:07:26 +00:00
ZoneCodeGenerator: Fix GroupOptional not registering Tag when being matched
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
protected override TokenMatchingResult PerformTest(MatchingContext context, int tokenOffset)
|
protected override TokenMatchingResult PerformTest(MatchingContext context, int tokenOffset)
|
||||||
{
|
{
|
||||||
var result = matcher.Test(context, tokenOffset);
|
var result = matcher.Test(context, tokenOffset);
|
||||||
|
result.PrependTag(Tag);
|
||||||
|
|
||||||
return !result.Successful ? new TokenMatchingResult(true, 0) : result;
|
return !result.Successful ? new TokenMatchingResult(true, 0) : result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user