v icon indicating copy to clipboard operation
v copied to clipboard

Comments inside of sum type decl breaks vdoc comment parsing

Open emily33901 opened this issue 5 years ago • 2 comments

V version: 8f23accc4eae8df81d12f2f95cfab7943584b96c OS: msvc

What did you do? v doc callback.v

exerpt from callback.v:

// Callback represents all the possible callbacks
pub type Callback = 
	// SteamClient
	ConnectedCallback | DisconnectedCallback |

	// SteamUser
	LoggedOnCallback | LoggedOffCallback

What did you expect to see? No error

What did you see instead? Unexpected top level statement

@spytheman commented that this is because it only expects comments between top level statements and not inside of them - which this exerpt does have so it complains.

emily33901 avatar Jul 21 '20 09:07 emily33901

Hi @emily33901, can you confirm an error with the latest V?

On Linux I have an error

internal_memory:1:17: error: invalid character ``

ArtemkaKun avatar Feb 08 '22 18:02 ArtemkaKun

Still an issue.

medvednikov avatar Jul 10 '22 17:07 medvednikov