I have the following VB :
Public Function Main() As Integer
<declarations>
<statements>
Do While 1=1
<various statements>
Loop
<more statements>
Return 0
End Function
and the autocomplete doesn't work after the Loop statement. When I press Ctrl + Space I get a list appropriate to starting a new routine (sub, function, etc). i.e. it thinks the end of the loop is the end of the function.
This is an utter pain as the majority of the code is after this point, and I am using a DLL reference with complex objects so without autocomplete life if challenging. The code compiles and runs fine, so it isn't a logic or syntax bug.