dotnet / dotnet/vblang

Implicit Line-Continuation Comments

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

Description

I've been thinking *(dangerous I know)* if which could preserve the fact a comment is being used after an `Implicit Line-Continuation`.
Then after parsing the Comment's `End Of Line` we as if there was no comment.
* We could place the comment on the next line.
* Thus allowing a primitive form of multi-line comments.

```vbnet
Function Foo(
arg0 As Integer, ' Implicit-Line-Continuation With Comment
' Implicit-Line-Continuation With Comment
arg1 As String, '
arg2 As Integer? '
'
) As T '

End Function
```
```
Comma <- Implicit Line Continuation <- NewLine <- Comment <- Comment <- Continuation of the line
```
ie it follows the trail back to see what next to parse.

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.