dotnet / dotnet/vblang

[Proposal] Allow comment lines in middle of a multi-line statement

Open
#501 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
328
Forks
71
PR merge metrics
No merged PRs in 30d

Description

Today, I wrote this in a [VB.NET ASP.NET Core app](https://github.com/VBAndCs/Vazor/tree/master/WebApp1):
```
services.AddControllersWithViews().
' Enable Vazor
AddRazorRuntimeCompilation(
Sub(options) options.FileProviders.Add(
New Vazor.VazorViewProvider())
)
```

but I got syntax error, because the comment in the second line!
The only allowed syntax today is:
```
services.AddControllersWithViews(). ' Enable Vazor
AddRazorRuntimeCompilation(
Sub(options) options.FileProviders.Add(
New Vazor.VazorViewProvider())
)
```

I propose to accept comment line/lines in middle of a multi-line statement. I think it t shouldn't be that hard.

Note:
This proposals is not for VB.NET team, but for the community that will continue to evolve the language. I started today to trace VB compiler code by debugging its tests. I hope I find my way through the source so I can implement my suggestions myself.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.