mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
ZoneCodeGenerator: Fix Literals with multiple tokens only compare the first token
This commit is contained in:
@ -17,7 +17,7 @@ namespace ZoneCodeGenerator.Parsing.Matching.Matchers
|
||||
|
||||
foreach (var literal in literals)
|
||||
{
|
||||
var token = context.Lexer.PeekToken(tokenOffset);
|
||||
var token = context.Lexer.PeekToken(tokenOffset++);
|
||||
var isMatch = string.Equals(token, literal);
|
||||
|
||||
if (!isMatch) return new MatchingResult(false, 0);
|
||||
|
Reference in New Issue
Block a user