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