Skip to content

Commit d0207ba

Browse files
committed
fixed a bug in the error handling code around error listeners
1 parent c2b25bb commit d0207ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

YarnSpinner.Compiler/ErrorListener.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ internal static string GetFriendlyNameForRuleContext(RuleContext context, bool w
774774
// We've reached the start of the token stream. We must be on the first line. Stop here.
775775
break;
776776
}
777-
var token = tokens.LA(-i -i);
777+
var token = tokens.LA(-1 -i);
778778
if (terminators.Contains(token))
779779
{
780780
foundToken = true;

0 commit comments

Comments
 (0)