Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
evantypanski opened this issue Apr 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@evantypanski
Copy link
Contributor

evantypanski commented Apr 9, 2025

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.

@evantypanski evantypanski added the bug Something isn't working label Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant