mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
ZoneCodeGenerator: Fix GroupOptional not registering Tag when being matched
This commit is contained in:
parent
cb04f5986b
commit
86f754bdd7
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user