Skip to content

Commit 6618af5

Browse files
committed
Added ForEachStmtContext to self-assigning identifiers (next to ForNextStmtContext)
1 parent c3b7fbd commit 6618af5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Rubberduck.Parsing/Symbols/IdentifierReferenceListener.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ public override void EnterAmbiguousIdentifier(VBAParser.AmbiguousIdentifierConte
256256

257257
var selection = context.GetSelection();
258258

259-
if (context.Parent is VBAParser.ForNextStmtContext)
259+
if (context.Parent is VBAParser.ForNextStmtContext
260+
|| context.Parent is VBAParser.ForEachStmtContext)
260261
{
261262
EnterIdentifier(context, selection, true);
262263
}

0 commit comments

Comments
 (0)