Skip to content

mistransform into invalid lua when reformatting type union with inline comments #378

@matthargett

Description

@matthargett
export type KindEnum =
	"Name" |
	-- Document
	"Document"
	| "OperationDefinition"
	| "VariableDefinition"
	| "SelectionSet"
	| "Field"
	| "Argument" |
	-- Fragments
	"FragmentSpread"
	| "InlineFragment"
	| "FragmentDefinition"

it should put the leading | on the next non-comment line, but instead puts it on the next comment line:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions