Add --alignment_group_boundary flag to control alignment group splitting#2501
Open
sjalloq wants to merge 1 commit intochipsalliance:masterfrom
Open
Add --alignment_group_boundary flag to control alignment group splitting#2501sjalloq wants to merge 1 commit intochipsalliance:masterfrom
sjalloq wants to merge 1 commit intochipsalliance:masterfrom
Conversation
|
|
Author
|
This has been an issue that has bugged me for years so I thought I should just fix it. It allows splitting by block comments such that the following statements aren't aligned. assign net1 = net2;
// ============================================================
// New Block Comment Divider
// ============================================================
assign net312327837434378347 = net3;
|
4d288ca to
940f187
Compare
Currently, alignment groups for module items, statements, and class items are not broken by blank lines or separator comments. This means statements in logically separate sections (e.g., separated by "// ----" headers) get aligned together. Add a new flag --alignment_group_boundary with four modes: none (default), blank-lines, separator-comments, blank-lines-and-separator-comments A separator comment is an EOL comment whose body consists of 4 or more consecutive identical characters (e.g., "// ----", "// ====", "/////"). Affects AlignModuleItems, AlignStatements, and AlignClassItems.
940f187 to
9872699
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, alignment groups for module items, statements, and class items are not broken by blank lines or separator comments. This means statements in logically separate sections (e.g., separated by "// ----" headers) get aligned together.
Add a new flag --alignment_group_boundary with four modes:
none (default), blank-lines, separator-comments,
blank-lines-and-separator-comments
A separator comment is an EOL comment whose body consists of 4 or more consecutive identical characters (e.g., "// ----", "// ====", "/////").
Affects AlignModuleItems, AlignStatements, and AlignClassItems.