WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Doc comment affects formatting of attributes #6302

@cknitt

Description

@cknitt
/** Doc comment */
@a @b
external f: unit => unit = "f"

/* Normal comment */
@a @b
external f: unit => unit = "f"

/**
Doc comment Doc comment Doc comment Doc comment Doc comment 
Doc comment Doc comment Doc comment Doc comment Doc comment 
*/
@a @b
external f: unit => unit = "f"

/*
Normal comment Normal comment Normal comment Normal comment Normal comment 
Normal comment Normal comment Normal comment Normal comment Normal comment 
*/
@a @b
external f: unit => unit = "f"

gets reformatted to

/** Doc comment */ @a @b
external f: unit => unit = "f"

/* Normal comment */
@a @b
external f: unit => unit = "f"

/**
Doc comment Doc comment Doc comment Doc comment Doc comment 
Doc comment Doc comment Doc comment Doc comment Doc comment 
*/
@a
@b
external f: unit => unit = "f"

/*
Normal comment Normal comment Normal comment Normal comment Normal comment 
Normal comment Normal comment Normal comment Normal comment Normal comment 
*/
@a @b
external f: unit => unit = "f"

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions