mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-31 23:01:57 +00:00
ZoneCodeGenerator: Fix Literals with multiple tokens only compare the first token
This commit is contained in:
1 parent
06585fb776
commit
cb04f5986b
1 file changed
+1
-1
@@ -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