Indentation changes, more similar to vhdl-mode
, bugfixes
#9
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.
Hello,
when using
vhdl-ts-mode
I noticed some problems with indentation. This PR addresses them. I am not really sure what the intention of this mode is, and whether it should be more similar to vhdl-mode or not. There are two parts to this PR. I think one part should be merged, and the other one is probably more opinionated, and I am not sure you will want to merge it.First part (bugs)
variable_interface_declaration
is missing, leading to variable being indented improperly inprocedure
declaration, seewhen else
withelse
being on one line, and alternative assignment being on the next line, is aligned to start ofelse
, instead of start of<=
. This was reported in vhdl-ts-mode breaks indentation of conditional signal assignment and selected signal assignment statements #6.vhdl-ts-indent-offset
, sometimes leading to situations where empty line has different indent then when something ends up being on the line.Second part (opinionated changes for more similarity to vhdl-mode)
port map
andgeneric map
are on the same level as firstlabel: entity
line, instead of indented more deeply, to indicate they are structurally under that entity.else
withwhen
block is aligned one level fromassignment <=
instead of after<=
, like vhdl mode has itDemonstration
Before
After