Skip to content

Doc comment affects formatting of attributes #6302

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions