vblang icon indicating copy to clipboard operation
vblang copied to clipboard

Allow Implicit Line Continuation before 'Then' keyword

Open AnthonyDGreen opened this issue 7 years ago • 1 comments

This should be permitted

If condition1 AndAlso
   condition2 AndAlso
   condition3 AndAlso
   condition4
Then
    ' Do stuff.
End If

AnthonyDGreen avatar Jun 30 '17 18:06 AnthonyDGreen

I don't know if this was intended or not, but I would suggest that implicit line continuation should be allowed pretty much anywhere after the IF and before the THEN.

If condition1 
   AndAlso condition2 
   AndAlso condition3 
   AndAlso condition4
  ' here as well
Then
    ' Do stuff.
End If

jrmoreno1 avatar Feb 24 '22 14:02 jrmoreno1