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

The first comments in vectors/sets/structs don't get indented properly #120

@evantypanski

Description

@evantypanski

Given some ports definition (like is in the Spicy protocol plugin template), the indentation doesn't start until the first item, so comments get unindented:

const ports = {
-	# This comment gets unindented
+# This comment gets unindented
	1234/tcp,
	# This one stays, though
	5678/tcp,
};

I would expect no change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions