Skip to content

Doc comment affects formatting of attributes #6302

Open
@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

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions