Ignore leading whitespace for VB expressions

Would it be possible to ignore any leading whitespace in a VB expression?

Right now, any expression that starts with a blank line will error out with the error:
BC30201 Expression expected.
The same doesn't occur with C# or F# expressions. My foggy memory on VB syntax thinks this would be ok and have no negative effect.

One of the things I do is use this as an XML formatter and with the XML literals, makes doing this simple. When I copy out the formatted XML, it's always copied with a leading newline (maybe that could be fixed too?). I always have to remove that.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!